PDA

View Full Version : Question about an AJAX and Wordpress problem



BlackShadow
November 9th, 2007, 01:03 PM
Hey all,

So here's a general breakdown of my problem.
I have a site that's got a flash header. The home page has a news blog on it and i'm wanting to use AJAX to load in each page so the flash header doesn't have to reload upon every button click. So the issue is that on the home page with the blog, i'm using Feedburner to pull the RSS feed from Wordpress. When AJAX loads in this page (home.php), the feed won't load because it's a line of javascript that loads it into the page. So the feed won't show up on the page at all...

Is there a work-around or anything i can add to fix this?
Greatly appreciated to anyone who can help me out.
Thanks!

borrob
November 12th, 2007, 04:25 AM
As far as i know it's not possible ( exept when using ASP ) to add scripts to a loaded page. So if you want your code to work you'll have to put your javascript in the main page. I presume that the ajax code is executed after the page is loaded.
If anyone has an idea how to do this ( adding javascript after the page is loaded ) then i would be very gratefull for tips....