PDA

View Full Version : Ajax Pagination script and flash



Ali16805
12-13-2007, 05:11 PM
1) Script Title:Ajax Pagination script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxpaginate/index.htm

3) Describe problem: I am using the above script to load external pages and works great, I have one major problem and pretty much tried anything but didn't fix the problem.
The problem is when I load a page that has either embedded flash or loaded by javascript the flash contents don't load! I changed the path but no use, anyone has any ideas? please help me.

thanks

ddadmin
12-14-2007, 08:27 AM
Content loaded using Ajax has certain limitations, because that content is basically being dumped onto the page, versus the usual synchronous loading. This means if your external content contains JavaScript, that code will usually not fire without further intervention from you. With pure Flash defined using pure HTML (not JavaScript), it should still play even if fetched via Ajax (though I'm not 100% sure). Is your Flash file called using just HTML, or dynamically via JavaScript as well?

Ali16805
12-14-2007, 05:16 PM
Thanks for your reply, yes the contents are called by javascript. But I noticed it will work fine when I embed the flash but I am sure this will limit my ability to implement more complex flash object.

thanks

ddadmin
12-15-2007, 09:04 AM
Typically the most robust way to dynamically include contents from another page and have everything work is using IFRAME. One script you can look at that supports this is Ajax Tabs Content (http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/) (demo #3), though obviously it's a different script from Ajax Pagination script.