How to load html content from database returned by CGI?


I have a web application. The main html page has two frames: frameA and frameB. After a user clicks a link (javascript) in frameA,the result (a html page) from CGI searching a database returns back to frameB.

Now I put “dhtmlXTabBar” into frameB and would like to put the result from my CGI:" /bop-cgi/xbop?.." into the tab. I have tried two ways as attached. But no luck. All failed. Thanks for your help.

The first way returns the error message:

“Error type: LoadXML Description: Incorrect XML”.

I am not sure what is wrong with the XML (sorry I don’t use XML very much).


var xmlstr1 = ’<?xml version="1.0"?> Google 2groups’

tabbar=new dhtmlXTabBar(“a_tabbar”,“top”);


     // tabbar.loadXML("/xbop/wisco/tabs5.xml");




I also tried it in the other way, it works but the result page is sent to a pop-up page instead of the tab page.

The response page was sent to window.frames[‘frameB’].location. Again, how to send the response page into the tab (id = ‘b3’)?

The javascript code is as follows:



<?xml version="1.0"?>

Google 1groups




I am not sure what is wrong with the XML (sorry I don’t use XML very much).
The problem is in & chars inside url, they must be replaced with & to be processed correctly

>>The javascript code is as follows:

By default the iframe created by tabbar is nameless , you can get iframe window object by tabbar.tabWindow(id)

    tabbar.tabWindow(‘b3’).name=“b3”; //set name for window object, so it may be used for navigation