Jump to content

Issues with javascript loaded through ajax


HomerTheDragoon

Recommended Posts

I've been using ajax here and there trying to dabble in it and get a better understanding of it. However, I've ran into a bit of a wall and there might be a simple workaround that I am not aware of.

 

Problem:

When I retrieve data when performing an ajax query and my php file returns the html to be inserted into a div that the javascript included does not seem to be working.

 

The specific javascript resource I'm using is located below.

http://dynamicdrive.com/dynamicindex1/anylinkcss.htm

 

Let me know if i need to clarify anything or if you have any questions. Hope someone can help me.

well if i run a simple javascript test such as onclick="alert('test')" on a url it works. However, my link menu does not seem to be working when it is returned via ajax method. Hmm, Anyone else? I may not fully understand the poster above or he does not fully understand my situation.

I do not see an edit button :/ anyways what i mean by javascript not working is javascript functions called via events. Like Onclick. Hard coded events seem to work as i wrote above, however trying to run functions that are declared elsewhere is troublesome.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.