Ajax Talk - Asynchronous javascript and xml discussion board
 FAQ   Search    Usergroups      Register   Profile   Check your messages   Log in 
Signup now to enjoy a range of free membership advantages !!
Ajax Talk - Moderators Wanted
Javascript in Ajax injected page not working!

 
Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> AJAX general discussion
View previous topic :: View next topic  
Author Message
Billy
New one
New one


Joined: 14 Jan 2008
Posts: 2

PostPosted: Mon Jan 14, 2008 11:58 pm    Post subject: Javascript in Ajax injected page not working! Reply with quote

Hi,

The home page of my website has a navigation menu which injects html pages (Home.htm, About.htm, Contact.htm etc) into a div called content <div id='content'>. This allows me to load the header, banner and navigation menu once and then dynamically insert the appropriate content when the user clicks a link.

One of these content pages has a little bit of text and it also calls a javascript function to display a slideshow of images. When I open that html page on its own (when its not injected by Ajax) I see the text and the javascript slideshow works fine. However when that page is injected into the content div the text appears but the javascript doesn't work.

The javascript is in an external .js file which is referenced in both the home page and the content page.

Does javascript work when its loaded in this way? Any idea what I am doing wrong?

This has been killing me for two days!

Billy.[/b]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> AJAX general discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
 Advertisements
 XML & Copyright Notice 
    


Powered by phpBB © 2001, 2005 phpBB Group

What is according to Wikipedia: Ajax Web2.0 XML E4X


Link to our site:

  


del.icio.us digg spurl wists simpy newsvine blinklist furl blogmarks yahoo! myweb smarking ma.gnolia segnalo reddit fark technorati cosmos


Normal Bookmark


Partner Button Links:
Codecrunch.com: Webmaster Tutorials    One Ajax


Partner Text Links:
quomon | web20log | ajaxmatters | tableless | 456bereastreet | music charts | gift ideas | competitions | free xbox 360 | link trade ?


Credits:
it consultancy & project management lead generation zoekmachine optimalisatie steal these buttons seo expert