Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Get imgAltText and Path in Javascript

Need an example Javascript

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

New User

5+ Year Member

joined:Sept 15, 2012
posts: 1
votes: 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