Forum Moderators: open

Message Too Old, No Replies

reload the javascript

reload the javascript

         

gb_dev

12:23 am on Aug 19, 2007 (gmt 0)

10+ Year Member



I have a div that reloads content with ajax, in this div I have a few script tags that contain js objects and references to them.

On first page load they all work fine.

However when I refresh the div with new content (or even the same content) the js doesn't work, (IE says unspecified error, firefox says nothing)

I believe it's because the browser doesn't re-parse the JS.

Is there a workaround for this?

stojadinovicp

11:29 am on Aug 20, 2007 (gmt 0)

10+ Year Member



Some code would be helpful.

I don't quite get what you mean by "js doesn't work". It all depends on exactly what you are trying to do.

Maybe I'm wrong :)

Fotiman

3:29 pm on Aug 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yeah, some code would definitely help here. Also, my advice would be to get the Firebug extension for Firefox. It's got a great JavaScript debugger that might help you find the problem.