HomerTheDragoon Posted June 23, 2009 Share Posted June 23, 2009 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. Quote Link to comment Share on other sites More sharing options...
corbin Posted June 23, 2009 Share Posted June 23, 2009 The AJAX object does not parse JavaScript. Either eval() it, return the content differently or use a library like jQuery to handle it. Quote Link to comment Share on other sites More sharing options...
HomerTheDragoon Posted June 23, 2009 Author Share Posted June 23, 2009 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. Quote Link to comment Share on other sites More sharing options...
HomerTheDragoon Posted June 24, 2009 Author Share Posted June 24, 2009 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.