Welcome to WebmasterWorld Guest from 54.234.63.220

Forum Moderators: open

Message Too Old, No Replies

Confusing: Writing Javascript calls from JS based upon AJAX data

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

Junior Member

10+ Year Member

joined:May 23, 2003
posts: 163
votes: 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!
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members