You are here: Re: PHP/JavaScript Hybrid Scripting « All PHP « IT news, forums, messages
Re: PHP/JavaScript Hybrid Scripting

Posted by the good guy on 06/05/05 01:04

i think i have found the answer - using location.href instead.

thanks!


"the good guy" <good@thinking> wrote in message
news:42a22435$1@news.starhub.net.sg...
> 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!!!
>
>
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация