Re: Parse-ing Strings



"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


.



Relevant Pages

  • Re: PopUp Window from Codebehind
    ... Why does my code for a pop-up window from my app not get blocked by IE SP2 ... (No exceptions have been made in IE's Pop-up blocker settings either) ... String, ByVal features As String) As String ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Send email with optional message from combo box?
    ... i understand hot wo esetup a rowsource for a combo, ... I meant how would i go about getting the combo to pop-up?. ... Dim SendTo As String, MySubject As String, MyMessage As String ...
    (microsoft.public.access.formscoding)
  • Re: Pop-up windows, good or bad?
    ... set to create a pop-up window with a google map giving directions to ... I've now got the maps to open in the same ...
    (alt.html)
  • Re: Pop-up windows, good or bad?
    ... I originally had the addresses set to create a pop-up window with a google map giving directions to the venue etc. ... The clients say they prefer the original method, yet with the proliferation of pop-up blockers etc this may cause problems in the future. ... I also note that the general concensus of opinion is that unwanted pop-ups are bad, so should I continue with pop-up maps, but ecxplicitly state "this link will open a pop-up window" or words to that effect. ...
    (alt.html)
  • Re: How does this simple function hang up? (Update)
    ... right off that the PurifyTelnum function has at least one dumb error - ... running in its own thread there is no pop-up. ... Private Function PurifyTelnum(ByVal telnum As String) As String ...
    (microsoft.public.dotnet.languages.vb)

Quantcast