Re: php rawurldecode from javascripts' escape()
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: php rawurldecode from javascripts' escape()

From: Chung Leong <chernyshevsky@hotmail.com>
Date: Sun Oct 30 2005 - 19:31:23 CET

swayze wrote:
> thanks for the replies. I'll try using encodeURIComponent() and hope
> for the best. However, if this does not solve my problem, this form on
> the fly, what did you have in mind? (Please bear with me. I'm originaly
> a .net programmer :-S )

Well, you would have a form with a hidden fields. Set the target of the
form to the frame you want, set the fields to the correct values, then
call submit() to send it. If the method is GET, then it's equivalent to
doing a location = <url>.

> I've considered updating the right frame
> only using javascript, but found that building complex table structures
> only using javascript and DOM with tds able to respond to javascript
> events a little too challenging.

It's not that hard really. The trick is to not try to construct the
page programmatically. Instead, build the HTML of the page as through
you'd on the server side, then do document.open(),
document.write(html), and document.close().
Received on Mon Nov 21 02:53:08 2005