Re: Parse-ing Strings
- From: "Martin Eyles" <martin.eyles@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 16 Jan 2006 10:12:17 -0000
"intrader" <intrader@xxxxxxx> wrote in message
news:pan.2006.01.12.18.10.41.382487@xxxxxxxxxx
> On Thu, 12 Jan 2006 16:06:40 +0000, Martin Eyles wrote:
>
> Looks like you are transmitting a JavaScript object literal. This protocol
> has been named JSON. You may find in open source forums code to split this
> effectively. Note that is similar to splitting a name/value string (as
> Form or QueryString have); so code in CPAN for doing this can also be
> found there.
> Now, since you already have some sort of Javascript object literal, why
> don't you use JSscript to decode this? First enclose the hole thin in {},
> then change your ':' to ":\'" and your ',' to, you get the idea. Then
> instantiate the object in JScript and there you have it all nicely
> separated.
I think you have mis-understood what I am trying to do.
What is happening is that the user fills in a form in a pop-up window.
Javascript on the client side makes the string, and passes it from a pop-up
to a hidden input in the main window's form. The main window then closes the
pop-up and performs a post-back. Finally, the VB.net code on the server
decodes the string, and uses it as input to an SQL query, returning the
results with the posted page.
I think that the other answers are already covering what I am looking for on
this, but thanks for the info anyway,
Martin
.
- References:
- Parse-ing Strings
- From: Martin Eyles
- Re: Parse-ing Strings
- From: intrader
- Parse-ing Strings
- Prev by Date: Compilation debug=false in web.config gives errors in application
- Next by Date: RE: Cookieless Authentication and Relative HTML References
- Previous by thread: Re: Parse-ing Strings
- Next by thread: Error - System.Data.OleDb.OleDbException: Could not use ''; file already in use. - please help
- Index(es):
Relevant Pages
|