I'm not sure we can actually do that, but I'll check. The problem is we are serving our ads via PHP, meaning PHP is writing the JavaScript setup code to the page. I haven't been able to figure out away to refresh the variable call by hooking it on the Ajax start and Ajax complete hooks. That would be ideal, if I could do that way.
So what I've been trying to do, in lieu of that, is dynamically write the JavaScript function that calls the ad, by using JavaScript onclick of the edit and quick reply submit buttons. So I'm writing one JavaScript function to the page with another, using innerHTML, because it's easier than using the DOM methods in this instance.
--------------- Added [DATE]1196354702[/DATE] at [TIME]1196354702[/TIME] ---------------
RedTyger, I looked over that plugin you graciously attached. Am I correct that it adds a link to a remote JavaScript located in the client script directory, and calls it on page load?
|