homepage Welcome to WebmasterWorld Guest from 54.211.190.232
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Get imgAltText and Path in Javascript
Need an example Javascript
jayson77




msg:4495380
 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


 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved