Aragorn450 wrote: > I'm assuming there is something special I need to do to get the > JavaScript to properly load once the code gets inserted because I'm > fairly sure people do this all the time (get new code inserted and then > run JavaScript on that code)?
If you're inserting the HTML snipped generated directly with innerHTML, then yes, you'll need to manually eval() the JavaScript in the <script> block. You *could* regex out the body of the tag and then evaluate it client-side, but it's really not the best way to do things. A better way to do this is to pull the graph data, ticks, and dimensions for the graph in JSON format, then pass them to a JavaScript function that inserts them into the document as appropriate. You're already practically generating JSON anyway, so this should be easy enough. (See the JSON-related functions in MochiKit.Async.) --Tom --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
