|
Posted by the good guy on 06/05/05 00:56
Hi,
I'm designing a program that utilized ActiveWidget Grids. This Grids are
based on JavaScript. And this grid is embedded in a frame-based GUI.
Suppose that there are two frames - TOPFRAME and BOTTOMFRAME. TOPFRAME has
the Grid and when someone click on any data of TOPFRAME Grid, it should use
PHP to extract data from the database and display the info on the
BOTTOMFRAME.
For the Grid, here is the "click" code which has no problem.
---
obj.setAction("click", function(src){
window.status = src.getProperty("item/text");
top.content.document.write("<b>hello</b>");
});
---
For the Grid, here is the "click" code which has no problem too (using PHP)
and display "hello" in the BOTTOMFRAME.
---
obj.setAction("click", function(src){
window.status = src.getProperty("item/text");
top.content.document.write("<? echo 'hello' ?>");
});
---
But when I tried this, it couldn't work.
---
obj.setAction("click", function(src){
window.status = src.getProperty("item/text");
top.content.document.write("<? header('Location: http://www.abc.com') ?>");
});
---
It tries to load the site at TOPFRAME.
How do you think I should approach this problem? Please help.
Thanks to everyone!!!
[Back to original message]
|