PDA

View Full Version : AjaxContent and AjaxTabsContent issue when put together



vikovesh
08-10-2007, 07:51 PM
1) Script Title:
AjaxContent and AjaxTabsContent

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


3) Describe problem:
I have front page with leftside menu and rightside content. (index.html :) )
By clicking on menu item I'm using ajaxcontent script to load external page (itemlist.html) onto rightside content - works perfect.
I added ajaxtabscontent to itemlist.html (demo from yoursite)- works fine by itself.
As soon as I load itemlist.html to index.html:
a) external pages for ajaxtabscontent are loaded on new page(not within tabs)
b) hangs when clicking on <Select 3rd tab of "maintab"> link (demo again)
c) loses style and formating (regular dot link instead of tabs) for IE7 (fine with Opera and Firefox)
(check it on www.umnex.com, then CPU=>AMD)

Long story short: how to use both this perfect scripts within the same page??

Thank you for your help!

Again, looks like problem with ajaxpage(); function. Both scripts uses this function within *js script but with different parameters.
Help, please!

nhankla
09-06-2007, 01:38 PM
Hello vikovesh
I ran into the same problem and have solve it by change all of the duplicate function names.
Now it works like a charm they were

function ajaxpage >> function ajaxpagecontent
function loadpage>> function loadpagecontent
function loadobjs >> function loadobjscontent

better late than never :)