Re: Formatting strings - more complex!
Nige wrote:[color=blue]
> In comp.lang.javas cript, Thomas 'PointedEars' Lahn wrote:[color=green][color=darkred]
>>> As I said in my other post (which I sent without giving full details,
>>> sorry), I can't send the CGI data to the next page.[/color]
>>Could you please explain why you assume this is the case?[/color]
>
> I've since discovered that I *can* send the date to the page, by
> following the url with a ? then the server created date string.[/color]
Yes, that is called a HTTP GET request which
is also the default for submitting a form.
[color=blue]
> My only problem now is how to extract this from the document.locati on
> property (it is there). I've tried code the parse the string to write
> the last 8 digits, and code to find the "?" and write the remainder.[/color]
That has nothing to do with CGI as you have told before!
However, I have written a prototype that can be useful here:
Note that the documentation is a bit out of date (see the source code in the
..js file.) `TValue' was changed to `Value', `TSearchStr' to `SearchString',
and enhanced.js is now deprecated; use string.js instead. (Please also
excuse that I wrote `class' in the comments in those days -- it'll be
changed :-)).
PointedEars
Nige wrote:[color=blue]
> In comp.lang.javas cript, Thomas 'PointedEars' Lahn wrote:[color=green][color=darkred]
>>> As I said in my other post (which I sent without giving full details,
>>> sorry), I can't send the CGI data to the next page.[/color]
>>Could you please explain why you assume this is the case?[/color]
>
> I've since discovered that I *can* send the date to the page, by
> following the url with a ? then the server created date string.[/color]
Yes, that is called a HTTP GET request which
is also the default for submitting a form.
[color=blue]
> My only problem now is how to extract this from the document.locati on
> property (it is there). I've tried code the parse the string to write
> the last 8 digits, and code to find the "?" and write the remainder.[/color]
That has nothing to do with CGI as you have told before!
However, I have written a prototype that can be useful here:
Note that the documentation is a bit out of date (see the source code in the
..js file.) `TValue' was changed to `Value', `TSearchStr' to `SearchString',
and enhanced.js is now deprecated; use string.js instead. (Please also
excuse that I wrote `class' in the comments in those days -- it'll be
changed :-)).
PointedEars
Comment