Welcome to WebmasterWorld Guest from 107.20.18.131

Forum Moderators: open

Message Too Old, No Replies

Get imgAltText and Path in Javascript

Need an example Javascript

     

jayson77

12:23 am on Sep 15, 2012 (gmt 0)




This is my response

<createstkyUserResponse xmlns="http://xyz.com/abc"><stky imagePath="Bicycle/mc20/bicycle.jpg" imageAltText="Bicycle 123"/>

the image list I get it from this div

imageList += '<div class="myclass"><img class="stky" src="data:image/png;base64,' + $(this).text() + '"></div>';
i need the imageAltText and path

tried this way not working

var imageAttr=image.attr("id");
var myAttr=imageAttr.split("-");
applicationObj.imagePath = myAttr[0];
applicationObj.imageAltText = myAttr[1];

Please need a help will be appriciated

 

Featured Threads

Hot Threads This Week

Hot Threads This Month