homepage Welcome to WebmasterWorld Guest from 50.16.166.175
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library : Charter : Moderators: whoisgregg

JavaScript and AJAX Forum

    
Confusing: Writing Javascript calls from JS based upon AJAX data
Seattle_SEM




msg:4263773
 6:22 pm on Feb 7, 2011 (gmt 0)

Am I crazy for trying this? I'm trying to create an onClick handler for an anchor, while looping through a JSON array which provides the data that the function requires.

Like this:

newcontent += "<a href='#' onClick='CreateShareDialog('" + CategoryDisplayName + "', '" + CategoryShare_Picture + "';')>hey</a>";

Is there a better way to do this?
Thanks!

 

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
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved