<!doctype html public "-//w3c//dtd html 3.2//en">

<html>
<head>

<title>JSPASS2</title>
<meta name="keywords" content="">
<meta name="Generator" content="HTMLpad">

</head>
<body bgcolor="ffffff">

<br>
When you fill out this form,
<FORM METHOD="LINK" ACTION="jspass2.html">
<b>Whatever goes in here shows up in the address...</b><br>
<INPUT TYPE="text" NAME="LastName" SIZE="10"><BR>
<INPUT TYPE="submit" VALUE="Click and See">
</FORM>


<br>The button below is to be incorporated in the finished code as HIDDEN.
This input is necessary for string to text conversion of the url in the
address bar...
<br>
<FORM NAME="joe">
<INPUT TYPE="button" NAME="burns" SIZE="35">
</FORM>



This script sends the value to the button...
<br>
<br>var locate = window.location
<br>document.joe.burns.value = locate
<br>var text = document.joe.burns.value
<br>
<SCRIPT LANGUAGE="javascript">

var locate = window.location
document.joe.burns.value = locate

var text = document.joe.burns.value
</SCRIPT>
<br>
<br>

The script below sets up a function that evaluates the buttons label for
it's value beyond the = sign.
<br>
The document.write invocation, directly beneath this text, is unnecessary
though helpful as a measure of visual verification.
<br>
<br>function delineate2(str){
<br>point = str.lastIndexOf("=");
<br>return(str.substring(point+1,str.length));
<br>}
<br>document.write("The value at the end of the url is " +delineate2(text));
<br>
<br>
<SCRIPT LANGUAGE="javascript">

function delineate2(str){

point = str.lastIndexOf("=");

return(str.substring(point+1,str.length));
}
document.write("The value at the end of the url is " +delineate2(text));
</SCRIPT>
<br>
<br>




This is the form that is to be adjusted IF the url has kelley as it's
closing value...
<br>
As it is, the form gets filled out regardless of what's in the url which is
the PROBLEM and so CONTRARY to the IF statement in the script below...
<br>
<FORM NAME="theform">
<select NAME="selbox">
<option value=>above backorda!
<option value="backorder">backorda!
<option>below backorda!
</select>
<input type=text size=50 name=comments>
</FORM>
<br>
<br>


This is the script that determines, by invocation of the delineate()
function, see above, WHAT was at the end of the url, AND is now the value of
the joe.burns button...and whose placement there is SUPPOSED to result in the
population of 'theform' with specifics ONLY IF kelley is at the end of the
url... As it is, feel free to test, no matter what is in the url, no matter
what is in the joe burns button, no matter what is the result of the
delineate(text) function the form is filled out as a backorda, The if
statement is right now, and unexplainably so for me in any case, nonfunct...
What's in the IF statement happens regardless of whether the parameter the if
statement checks is the proper setting to adjust the form or not... The else
statement does nothing, I just put it in there as a test. I've actually set
the else statement to populate the form differently and that didn't work
either...Also the script has been tested with the document.theform.selbox and
comments values right in the IF statement... This so rather than the
bakord() function now there set.
<br>
<br>var zork = delineate2(text)
<br>function bakord(){
<br>document.theform.selbox.value = "backorder";
<br>document.theform.comments.value = "Please notify me when this item is in
stock!";
<br>}
<br>if ("zork == kelley")
<br>{
<br>bakord();
<br>}
<br>else
<br>{
<br>donothing();
<br>}
<br>

<SCRIPT LANGUAGE="javascript">
var zork = delineate2(text)
function bakord(){
document.theform.selbox.value = "backorder";
document.theform.comments.value = "Please notify me when this item is in
stock!";
}
if ("zork == kelley")
{
bakord();
}
else
{
donothing();
}
</SCRIPT>

PLEASE HELP!
<br>
I've also put the bakord() function in a seperate script as a test...
<br>
Please refrain from making suggestions without TESTING for resolve. I've
spent too much time reading nonsensical suggestions on this to dally further.
<br>
Feel free to copy the source to your harddrive and play with this script if
you're so motivated. You can acquire the full unmodified text of this
message at <a
href=http://www.geocities.com/dankelley2035/fshawscript/variablepassviaurl.html>http://www.geocities.com/dankelley2035/fshawscript/variablepassviaurl.html</a>
<br>
<br>
Many Thanks,
<br>
Dan

</body>
</html>

Re: Java variable pass via url, failing on an if statement... by Steve

Steve
Fri Jun 03 13:57:22 CDT 2005

Remove all of the <br> tags from the script.

When you copy and paste script from a web page into your page in FrontPage ""always"" paste it into
Notepad first, and then copy it from Notepad and paste it into your page in html view.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer

"Frank H. Shaw" <FrankHShaw@discussions.microsoft.com> wrote in message
news:F481DFCA-A40B-4498-8696-1E6674FF1317@microsoft.com...
> <!doctype html public "-//w3c//dtd html 3.2//en">
>
> <html>
> <head>
>
> <title>JSPASS2</title>
> <meta name="keywords" content="">
> <meta name="Generator" content="HTMLpad">
>
> </head>
> <body bgcolor="ffffff">
>
> <br>
> When you fill out this form,
> <FORM METHOD="LINK" ACTION="jspass2.html">
> <b>Whatever goes in here shows up in the address...</b><br>
> <INPUT TYPE="text" NAME="LastName" SIZE="10"><BR>
> <INPUT TYPE="submit" VALUE="Click and See">
> </FORM>
>
>
> <br>The button below is to be incorporated in the finished code as HIDDEN.
> This input is necessary for string to text conversion of the url in the
> address bar...
> <br>
> <FORM NAME="joe">
> <INPUT TYPE="button" NAME="burns" SIZE="35">
> </FORM>
>
>
>
> This script sends the value to the button...
> <br>
> <br>var locate = window.location
> <br>document.joe.burns.value = locate
> <br>var text = document.joe.burns.value
> <br>
> <SCRIPT LANGUAGE="javascript">
>
> var locate = window.location
> document.joe.burns.value = locate
>
> var text = document.joe.burns.value
> </SCRIPT>
> <br>
> <br>
>
> The script below sets up a function that evaluates the buttons label for
> it's value beyond the = sign.
> <br>
> The document.write invocation, directly beneath this text, is unnecessary
> though helpful as a measure of visual verification.
> <br>
> <br>function delineate2(str){
> <br>point = str.lastIndexOf("=");
> <br>return(str.substring(point+1,str.length));
> <br>}
> <br>document.write("The value at the end of the url is " +delineate2(text));
> <br>
> <br>
> <SCRIPT LANGUAGE="javascript">
>
> function delineate2(str){
>
> point = str.lastIndexOf("=");
>
> return(str.substring(point+1,str.length));
> }
> document.write("The value at the end of the url is " +delineate2(text));
> </SCRIPT>
> <br>
> <br>
>
>
>
>
> This is the form that is to be adjusted IF the url has kelley as it's
> closing value...
> <br>
> As it is, the form gets filled out regardless of what's in the url which is
> the PROBLEM and so CONTRARY to the IF statement in the script below...
> <br>
> <FORM NAME="theform">
> <select NAME="selbox">
> <option value=>above backorda!
> <option value="backorder">backorda!
> <option>below backorda!
> </select>
> <input type=text size=50 name=comments>
> </FORM>
> <br>
> <br>
>
>
> This is the script that determines, by invocation of the delineate()
> function, see above, WHAT was at the end of the url, AND is now the value of
> the joe.burns button...and whose placement there is SUPPOSED to result in the
> population of 'theform' with specifics ONLY IF kelley is at the end of the
> url... As it is, feel free to test, no matter what is in the url, no matter
> what is in the joe burns button, no matter what is the result of the
> delineate(text) function the form is filled out as a backorda, The if
> statement is right now, and unexplainably so for me in any case, nonfunct...
> What's in the IF statement happens regardless of whether the parameter the if
> statement checks is the proper setting to adjust the form or not... The else
> statement does nothing, I just put it in there as a test. I've actually set
> the else statement to populate the form differently and that didn't work
> either...Also the script has been tested with the document.theform.selbox and
> comments values right in the IF statement... This so rather than the
> bakord() function now there set.
> <br>
> <br>var zork = delineate2(text)
> <br>function bakord(){
> <br>document.theform.selbox.value = "backorder";
> <br>document.theform.comments.value = "Please notify me when this item is in
> stock!";
> <br>}
> <br>if ("zork == kelley")
> <br>{
> <br>bakord();
> <br>}
> <br>else
> <br>{
> <br>donothing();
> <br>}
> <br>
>
> <SCRIPT LANGUAGE="javascript">
> var zork = delineate2(text)
> function bakord(){
> document.theform.selbox.value = "backorder";
> document.theform.comments.value = "Please notify me when this item is in
> stock!";
> }
> if ("zork == kelley")
> {
> bakord();
> }
> else
> {
> donothing();
> }
> </SCRIPT>
>
> PLEASE HELP!
> <br>
> I've also put the bakord() function in a seperate script as a test...
> <br>
> Please refrain from making suggestions without TESTING for resolve. I've
> spent too much time reading nonsensical suggestions on this to dally further.
> <br>
> Feel free to copy the source to your harddrive and play with this script if
> you're so motivated. You can acquire the full unmodified text of this
> message at <a
>
href=http://www.geocities.com/dankelley2035/fshawscript/variablepassviaurl.html>http://www.geocities
.com/dankelley2035/fshawscript/variablepassviaurl.html</a>
> <br>
> <br>
> Many Thanks,
> <br>
> Dan
>
> </body>
> </html>



Re: Java variable pass via url, failing on an if statement... by FrankHShaw

FrankHShaw
Fri Jun 03 16:59:24 CDT 2005

http://www.geocities.com/dankelley2035/fshawscript/variablepassviaurl.html

The above url has a thorough description of the issue within a page that is
semifunctional, apart from the issue.

Thanks for your help,
Dan

"Steve Easton" wrote:

> Remove all of the <br> tags from the script.
>
> When you copy and paste script from a web page into your page in FrontPage ""always"" paste it into
> Notepad first, and then copy it from Notepad and paste it into your page in html view.
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> ........................with a computer
>
> "Frank H. Shaw" <FrankHShaw@discussions.microsoft.com> wrote in message
> news:F481DFCA-A40B-4498-8696-1E6674FF1317@microsoft.com...
> > <!doctype html public "-//w3c//dtd html 3.2//en">
> >
> > <html>
> > <head>
> >
> > <title>JSPASS2</title>
> > <meta name="keywords" content="">
> > <meta name="Generator" content="HTMLpad">
> >
> > </head>
> > <body bgcolor="ffffff">
> >
> > <br>
> > When you fill out this form,
> > <FORM METHOD="LINK" ACTION="jspass2.html">
> > <b>Whatever goes in here shows up in the address...</b><br>
> > <INPUT TYPE="text" NAME="LastName" SIZE="10"><BR>
> > <INPUT TYPE="submit" VALUE="Click and See">
> > </FORM>
> >
> >
> > <br>The button below is to be incorporated in the finished code as HIDDEN.
> > This input is necessary for string to text conversion of the url in the
> > address bar...
> > <br>
> > <FORM NAME="joe">
> > <INPUT TYPE="button" NAME="burns" SIZE="35">
> > </FORM>
> >
> >
> >
> > This script sends the value to the button...
> > <br>
> > <br>var locate = window.location
> > <br>document.joe.burns.value = locate
> > <br>var text = document.joe.burns.value
> > <br>
> > <SCRIPT LANGUAGE="javascript">
> >
> > var locate = window.location
> > document.joe.burns.value = locate
> >
> > var text = document.joe.burns.value
> > </SCRIPT>
> > <br>
> > <br>
> >
> > The script below sets up a function that evaluates the buttons label for
> > it's value beyond the = sign.
> > <br>
> > The document.write invocation, directly beneath this text, is unnecessary
> > though helpful as a measure of visual verification.
> > <br>
> > <br>function delineate2(str){
> > <br>point = str.lastIndexOf("=");
> > <br>return(str.substring(point+1,str.length));
> > <br>}
> > <br>document.write("The value at the end of the url is " +delineate2(text));
> > <br>
> > <br>
> > <SCRIPT LANGUAGE="javascript">
> >
> > function delineate2(str){
> >
> > point = str.lastIndexOf("=");
> >
> > return(str.substring(point+1,str.length));
> > }
> > document.write("The value at the end of the url is " +delineate2(text));
> > </SCRIPT>
> > <br>
> > <br>
> >
> >
> >
> >
> > This is the form that is to be adjusted IF the url has kelley as it's
> > closing value...
> > <br>
> > As it is, the form gets filled out regardless of what's in the url which is
> > the PROBLEM and so CONTRARY to the IF statement in the script below...
> > <br>
> > <FORM NAME="theform">
> > <select NAME="selbox">
> > <option value=>above backorda!
> > <option value="backorder">backorda!
> > <option>below backorda!
> > </select>
> > <input type=text size=50 name=comments>
> > </FORM>
> > <br>
> > <br>
> >
> >
> > This is the script that determines, by invocation of the delineate()
> > function, see above, WHAT was at the end of the url, AND is now the value of
> > the joe.burns button...and whose placement there is SUPPOSED to result in the
> > population of 'theform' with specifics ONLY IF kelley is at the end of the
> > url... As it is, feel free to test, no matter what is in the url, no matter
> > what is in the joe burns button, no matter what is the result of the
> > delineate(text) function the form is filled out as a backorda, The if
> > statement is right now, and unexplainably so for me in any case, nonfunct...
> > What's in the IF statement happens regardless of whether the parameter the if
> > statement checks is the proper setting to adjust the form or not... The else
> > statement does nothing, I just put it in there as a test. I've actually set
> > the else statement to populate the form differently and that didn't work
> > either...Also the script has been tested with the document.theform.selbox and
> > comments values right in the IF statement... This so rather than the
> > bakord() function now there set.
> > <br>
> > <br>var zork = delineate2(text)
> > <br>function bakord(){
> > <br>document.theform.selbox.value = "backorder";
> > <br>document.theform.comments.value = "Please notify me when this item is in
> > stock!";
> > <br>}
> > <br>if ("zork == kelley")
> > <br>{
> > <br>bakord();
> > <br>}
> > <br>else
> > <br>{
> > <br>donothing();
> > <br>}
> > <br>
> >
> > <SCRIPT LANGUAGE="javascript">
> > var zork = delineate2(text)
> > function bakord(){
> > document.theform.selbox.value = "backorder";
> > document.theform.comments.value = "Please notify me when this item is in
> > stock!";
> > }
> > if ("zork == kelley")
> > {
> > bakord();
> > }
> > else
> > {
> > donothing();
> > }
> > </SCRIPT>
> >
> > PLEASE HELP!
> > <br>
> > I've also put the bakord() function in a seperate script as a test...
> > <br>
> > Please refrain from making suggestions without TESTING for resolve. I've
> > spent too much time reading nonsensical suggestions on this to dally further.
> > <br>
> > Feel free to copy the source to your harddrive and play with this script if
> > you're so motivated. You can acquire the full unmodified text of this
> > message at <a
> >
> href=http://www.geocities.com/dankelley2035/fshawscript/variablepassviaurl.html>http://www.geocities
> ..com/dankelley2035/fshawscript/variablepassviaurl.html</a>
> > <br>
> > <br>
> > Many Thanks,
> > <br>
> > Dan
> >
> > </body>
> > </html>
>
>
>

Re: Java variable pass via url, failing on an if statement... by Steve

Steve
Fri Jun 03 21:12:39 CDT 2005

When the page opened at the link posted, I got 3 javascript run time errors.
You might want to look for a different script.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer

"Frank H. Shaw" <FrankHShaw@discussions.microsoft.com> wrote in message
news:E36FCEAC-C02B-434B-A3B2-50980908928E@microsoft.com...
> http://www.geocities.com/dankelley2035/fshawscript/variablepassviaurl.html
>
> The above url has a thorough description of the issue within a page that is
> semifunctional, apart from the issue.
>
> Thanks for your help,
> Dan
>
> "Steve Easton" wrote:
>
> > Remove all of the <br> tags from the script.
> >
> > When you copy and paste script from a web page into your page in FrontPage ""always"" paste it
into
> > Notepad first, and then copy it from Notepad and paste it into your page in html view.
> >
> > --
> > Steve Easton
> > Microsoft MVP FrontPage
> > 95isalive
> > This site is best viewed............
> > ........................with a computer
> >
> > "Frank H. Shaw" <FrankHShaw@discussions.microsoft.com> wrote in message
> > news:F481DFCA-A40B-4498-8696-1E6674FF1317@microsoft.com...
> > > <!doctype html public "-//w3c//dtd html 3.2//en">
> > >
> > > <html>
> > > <head>
> > >
> > > <title>JSPASS2</title>
> > > <meta name="keywords" content="">
> > > <meta name="Generator" content="HTMLpad">
> > >
> > > </head>
> > > <body bgcolor="ffffff">
> > >
> > > <br>
> > > When you fill out this form,
> > > <FORM METHOD="LINK" ACTION="jspass2.html">
> > > <b>Whatever goes in here shows up in the address...</b><br>
> > > <INPUT TYPE="text" NAME="LastName" SIZE="10"><BR>
> > > <INPUT TYPE="submit" VALUE="Click and See">
> > > </FORM>
> > >
> > >
> > > <br>The button below is to be incorporated in the finished code as HIDDEN.
> > > This input is necessary for string to text conversion of the url in the
> > > address bar...
> > > <br>
> > > <FORM NAME="joe">
> > > <INPUT TYPE="button" NAME="burns" SIZE="35">
> > > </FORM>
> > >
> > >
> > >
> > > This script sends the value to the button...
> > > <br>
> > > <br>var locate = window.location
> > > <br>document.joe.burns.value = locate
> > > <br>var text = document.joe.burns.value
> > > <br>
> > > <SCRIPT LANGUAGE="javascript">
> > >
> > > var locate = window.location
> > > document.joe.burns.value = locate
> > >
> > > var text = document.joe.burns.value
> > > </SCRIPT>
> > > <br>
> > > <br>
> > >
> > > The script below sets up a function that evaluates the buttons label for
> > > it's value beyond the = sign.
> > > <br>
> > > The document.write invocation, directly beneath this text, is unnecessary
> > > though helpful as a measure of visual verification.
> > > <br>
> > > <br>function delineate2(str){
> > > <br>point = str.lastIndexOf("=");
> > > <br>return(str.substring(point+1,str.length));
> > > <br>}
> > > <br>document.write("The value at the end of the url is " +delineate2(text));
> > > <br>
> > > <br>
> > > <SCRIPT LANGUAGE="javascript">
> > >
> > > function delineate2(str){
> > >
> > > point = str.lastIndexOf("=");
> > >
> > > return(str.substring(point+1,str.length));
> > > }
> > > document.write("The value at the end of the url is " +delineate2(text));
> > > </SCRIPT>
> > > <br>
> > > <br>
> > >
> > >
> > >
> > >
> > > This is the form that is to be adjusted IF the url has kelley as it's
> > > closing value...
> > > <br>
> > > As it is, the form gets filled out regardless of what's in the url which is
> > > the PROBLEM and so CONTRARY to the IF statement in the script below...
> > > <br>
> > > <FORM NAME="theform">
> > > <select NAME="selbox">
> > > <option value=>above backorda!
> > > <option value="backorder">backorda!
> > > <option>below backorda!
> > > </select>
> > > <input type=text size=50 name=comments>
> > > </FORM>
> > > <br>
> > > <br>
> > >
> > >
> > > This is the script that determines, by invocation of the delineate()
> > > function, see above, WHAT was at the end of the url, AND is now the value of
> > > the joe.burns button...and whose placement there is SUPPOSED to result in the
> > > population of 'theform' with specifics ONLY IF kelley is at the end of the
> > > url... As it is, feel free to test, no matter what is in the url, no matter
> > > what is in the joe burns button, no matter what is the result of the
> > > delineate(text) function the form is filled out as a backorda, The if
> > > statement is right now, and unexplainably so for me in any case, nonfunct...
> > > What's in the IF statement happens regardless of whether the parameter the if
> > > statement checks is the proper setting to adjust the form or not... The else
> > > statement does nothing, I just put it in there as a test. I've actually set
> > > the else statement to populate the form differently and that didn't work
> > > either...Also the script has been tested with the document.theform.selbox and
> > > comments values right in the IF statement... This so rather than the
> > > bakord() function now there set.
> > > <br>
> > > <br>var zork = delineate2(text)
> > > <br>function bakord(){
> > > <br>document.theform.selbox.value = "backorder";
> > > <br>document.theform.comments.value = "Please notify me when this item is in
> > > stock!";
> > > <br>}
> > > <br>if ("zork == kelley")
> > > <br>{
> > > <br>bakord();
> > > <br>}
> > > <br>else
> > > <br>{
> > > <br>donothing();
> > > <br>}
> > > <br>
> > >
> > > <SCRIPT LANGUAGE="javascript">
> > > var zork = delineate2(text)
> > > function bakord(){
> > > document.theform.selbox.value = "backorder";
> > > document.theform.comments.value = "Please notify me when this item is in
> > > stock!";
> > > }
> > > if ("zork == kelley")
> > > {
> > > bakord();
> > > }
> > > else
> > > {
> > > donothing();
> > > }
> > > </SCRIPT>
> > >
> > > PLEASE HELP!
> > > <br>
> > > I've also put the bakord() function in a seperate script as a test...
> > > <br>
> > > Please refrain from making suggestions without TESTING for resolve. I've
> > > spent too much time reading nonsensical suggestions on this to dally further.
> > > <br>
> > > Feel free to copy the source to your harddrive and play with this script if
> > > you're so motivated. You can acquire the full unmodified text of this
> > > message at <a
> > >
> >
href=http://www.geocities.com/dankelley2035/fshawscript/variablepassviaurl.html>http://www.geocities
> > ..com/dankelley2035/fshawscript/variablepassviaurl.html</a>
> > > <br>
> > > <br>
> > > Many Thanks,
> > > <br>
> > > Dan
> > >
> > > </body>
> > > </html>
> >
> >
> >



Re: Java variable pass via url, failing on an if statement... by FrankHShaw

FrankHShaw
Fri Jun 03 21:38:02 CDT 2005

Click on this link

http://www.geocities.com/dankelley2035/fshawscript/variablepassviaurl.html

"Steve Easton" wrote:

> When the page opened at the link posted, I got 3 javascript run time errors.
> You might want to look for a different script.
>
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> ........................with a computer
>
> "Frank H. Shaw" <FrankHShaw@discussions.microsoft.com> wrote in message
> news:E36FCEAC-C02B-434B-A3B2-50980908928E@microsoft.com...
> > http://www.geocities.com/dankelley2035/fshawscript/variablepassviaurl.html
> >
> > The above url has a thorough description of the issue within a page that is
> > semifunctional, apart from the issue.
> >
> > Thanks for your help,
> > Dan
> >
> > "Steve Easton" wrote:
> >
> > > Remove all of the <br> tags from the script.
> > >
> > > When you copy and paste script from a web page into your page in FrontPage ""always"" paste it
> into
> > > Notepad first, and then copy it from Notepad and paste it into your page in html view.
> > >
> > > --
> > > Steve Easton
> > > Microsoft MVP FrontPage
> > > 95isalive
> > > This site is best viewed............
> > > ........................with a computer
> > >
> > > "Frank H. Shaw" <FrankHShaw@discussions.microsoft.com> wrote in message
> > > news:F481DFCA-A40B-4498-8696-1E6674FF1317@microsoft.com...
> > > > <!doctype html public "-//w3c//dtd html 3.2//en">
> > > >
> > > > <html>
> > > > <head>
> > > >
> > > > <title>JSPASS2</title>
> > > > <meta name="keywords" content="">
> > > > <meta name="Generator" content="HTMLpad">
> > > >
> > > > </head>
> > > > <body bgcolor="ffffff">
> > > >
> > > > <br>
> > > > When you fill out this form,
> > > > <FORM METHOD="LINK" ACTION="jspass2.html">
> > > > <b>Whatever goes in here shows up in the address...</b><br>
> > > > <INPUT TYPE="text" NAME="LastName" SIZE="10"><BR>
> > > > <INPUT TYPE="submit" VALUE="Click and See">
> > > > </FORM>
> > > >
> > > >
> > > > <br>The button below is to be incorporated in the finished code as HIDDEN.
> > > > This input is necessary for string to text conversion of the url in the
> > > > address bar...
> > > > <br>
> > > > <FORM NAME="joe">
> > > > <INPUT TYPE="button" NAME="burns" SIZE="35">
> > > > </FORM>
> > > >
> > > >
> > > >
> > > > This script sends the value to the button...
> > > > <br>
> > > > <br>var locate = window.location
> > > > <br>document.joe.burns.value = locate
> > > > <br>var text = document.joe.burns.value
> > > > <br>
> > > > <SCRIPT LANGUAGE="javascript">
> > > >
> > > > var locate = window.location
> > > > document.joe.burns.value = locate
> > > >
> > > > var text = document.joe.burns.value
> > > > </SCRIPT>
> > > > <br>
> > > > <br>
> > > >
> > > > The script below sets up a function that evaluates the buttons label for
> > > > it's value beyond the = sign.
> > > > <br>
> > > > The document.write invocation, directly beneath this text, is unnecessary
> > > > though helpful as a measure of visual verification.
> > > > <br>
> > > > <br>function delineate2(str){
> > > > <br>point = str.lastIndexOf("=");
> > > > <br>return(str.substring(point+1,str.length));
> > > > <br>}
> > > > <br>document.write("The value at the end of the url is " +delineate2(text));
> > > > <br>
> > > > <br>
> > > > <SCRIPT LANGUAGE="javascript">
> > > >
> > > > function delineate2(str){
> > > >
> > > > point = str.lastIndexOf("=");
> > > >
> > > > return(str.substring(point+1,str.length));
> > > > }
> > > > document.write("The value at the end of the url is " +delineate2(text));
> > > > </SCRIPT>
> > > > <br>
> > > > <br>
> > > >
> > > >
> > > >
> > > >
> > > > This is the form that is to be adjusted IF the url has kelley as it's
> > > > closing value...
> > > > <br>
> > > > As it is, the form gets filled out regardless of what's in the url which is
> > > > the PROBLEM and so CONTRARY to the IF statement in the script below...
> > > > <br>
> > > > <FORM NAME="theform">
> > > > <select NAME="selbox">
> > > > <option value=>above backorda!
> > > > <option value="backorder">backorda!
> > > > <option>below backorda!
> > > > </select>
> > > > <input type=text size=50 name=comments>
> > > > </FORM>
> > > > <br>
> > > > <br>
> > > >
> > > >
> > > > This is the script that determines, by invocation of the delineate()
> > > > function, see above, WHAT was at the end of the url, AND is now the value of
> > > > the joe.burns button...and whose placement there is SUPPOSED to result in the
> > > > population of 'theform' with specifics ONLY IF kelley is at the end of the
> > > > url... As it is, feel free to test, no matter what is in the url, no matter
> > > > what is in the joe burns button, no matter what is the result of the
> > > > delineate(text) function the form is filled out as a backorda, The if
> > > > statement is right now, and unexplainably so for me in any case, nonfunct...
> > > > What's in the IF statement happens regardless of whether the parameter the if
> > > > statement checks is the proper setting to adjust the form or not... The else
> > > > statement does nothing, I just put it in there as a test. I've actually set
> > > > the else statement to populate the form differently and that didn't work
> > > > either...Also the script has been tested with the document.theform.selbox and
> > > > comments values right in the IF statement... This so rather than the
> > > > bakord() function now there set.
> > > > <br>
> > > > <br>var zork = delineate2(text)
> > > > <br>function bakord(){
> > > > <br>document.theform.selbox.value = "backorder";
> > > > <br>document.theform.comments.value = "Please notify me when this item is in
> > > > stock!";
> > > > <br>}
> > > > <br>if ("zork == kelley")
> > > > <br>{
> > > > <br>bakord();
> > > > <br>}
> > > > <br>else
> > > > <br>{
> > > > <br>donothing();
> > > > <br>}
> > > > <br>
> > > >
> > > > <SCRIPT LANGUAGE="javascript">
> > > > var zork = delineate2(text)
> > > > function bakord(){
> > > > document.theform.selbox.value = "backorder";
> > > > document.theform.comments.value = "Please notify me when this item is in
> > > > stock!";
> > > > }
> > > > if ("zork == kelley")
> > > > {
> > > > bakord();
> > > > }
> > > > else
> > > > {
> > > > donothing();
> > > > }
> > > > </SCRIPT>
> > > >
> > > > PLEASE HELP!
> > > > <br>
> > > > I've also put the bakord() function in a seperate script as a test...
> > > > <br>
> > > > Please refrain from making suggestions without TESTING for resolve. I've
> > > > spent too much time reading nonsensical suggestions on this to dally further.
> > > > <br>
> > > > Feel free to copy the source to your harddrive and play with this script if
> > > > you're so motivated. You can acquire the full unmodified text of this
> > > > message at <a
> > > >
> > >
> href=http://www.geocities.com/dankelley2035/fshawscript/variablepassviaurl.html>http://www.geocities
> > > ..com/dankelley2035/fshawscript/variablepassviaurl.html</a>
> > > > <br>
> > > > <br>
> > > > Many Thanks,
> > > > <br>
> > > > Dan
> > > >
> > > > </body>
> > > > </html>
> > >
> > >
> > >
>
>
>

Re: Java variable pass via url, failing on an if statement... by FrankHShaw

FrankHShaw
Sun Jun 05 19:37:01 CDT 2005

I had left the name of the file on your desktop referenced in the html,
instead of the name I designated the online file... Woops, so I made that
alteration and the online form/query is operable now.


"Frank H. Shaw" wrote:

> Click on this link
>
> http://www.geocities.com/dankelley2035/fshawscript/variablepassviaurl.html
>
> "Steve Easton" wrote:
>
> > When the page opened at the link posted, I got 3 javascript run time errors.
> > You might want to look for a different script.
> >
> >
> > --
> > Steve Easton
> > Microsoft MVP FrontPage
> > 95isalive
> > This site is best viewed............
> > ........................with a computer
> >
> > "Frank H. Shaw" <FrankHShaw@discussions.microsoft.com> wrote in message
> > news:E36FCEAC-C02B-434B-A3B2-50980908928E@microsoft.com...
> > > http://www.geocities.com/dankelley2035/fshawscript/variablepassviaurl.html
> > >
> > > The above url has a thorough description of the issue within a page that is
> > > semifunctional, apart from the issue.
> > >
> > > Thanks for your help,
> > > Dan
> > >
> > > "Steve Easton" wrote:
> > >
> > > > Remove all of the <br> tags from the script.
> > > >
> > > > When you copy and paste script from a web page into your page in FrontPage ""always"" paste it
> > into
> > > > Notepad first, and then copy it from Notepad and paste it into your page in html view.
> > > >
> > > > --
> > > > Steve Easton
> > > > Microsoft MVP FrontPage
> > > > 95isalive
> > > > This site is best viewed............
> > > > ........................with a computer
> > > >
> > > > "Frank H. Shaw" <FrankHShaw@discussions.microsoft.com> wrote in message
> > > > news:F481DFCA-A40B-4498-8696-1E6674FF1317@microsoft.com...
> > > > > <!doctype html public "-//w3c//dtd html 3.2//en">
> > > > >
> > > > > <html>
> > > > > <head>
> > > > >
> > > > > <title>JSPASS2</title>
> > > > > <meta name="keywords" content="">
> > > > > <meta name="Generator" content="HTMLpad">
> > > > >
> > > > > </head>
> > > > > <body bgcolor="ffffff">
> > > > >
> > > > > <br>
> > > > > When you fill out this form,
> > > > > <FORM METHOD="LINK" ACTION="jspass2.html">
> > > > > <b>Whatever goes in here shows up in the address...</b><br>
> > > > > <INPUT TYPE="text" NAME="LastName" SIZE="10"><BR>
> > > > > <INPUT TYPE="submit" VALUE="Click and See">
> > > > > </FORM>
> > > > >
> > > > >
> > > > > <br>The button below is to be incorporated in the finished code as HIDDEN.
> > > > > This input is necessary for string to text conversion of the url in the
> > > > > address bar...
> > > > > <br>
> > > > > <FORM NAME="joe">
> > > > > <INPUT TYPE="button" NAME="burns" SIZE="35">
> > > > > </FORM>
> > > > >
> > > > >
> > > > >
> > > > > This script sends the value to the button...
> > > > > <br>
> > > > > <br>var locate = window.location
> > > > > <br>document.joe.burns.value = locate
> > > > > <br>var text = document.joe.burns.value
> > > > > <br>
> > > > > <SCRIPT LANGUAGE="javascript">
> > > > >
> > > > > var locate = window.location
> > > > > document.joe.burns.value = locate
> > > > >
> > > > > var text = document.joe.burns.value
> > > > > </SCRIPT>
> > > > > <br>
> > > > > <br>
> > > > >
> > > > > The script below sets up a function that evaluates the buttons label for
> > > > > it's value beyond the = sign.
> > > > > <br>
> > > > > The document.write invocation, directly beneath this text, is unnecessary
> > > > > though helpful as a measure of visual verification.
> > > > > <br>
> > > > > <br>function delineate2(str){
> > > > > <br>point = str.lastIndexOf("=");
> > > > > <br>return(str.substring(point+1,str.length));
> > > > > <br>}
> > > > > <br>document.write("The value at the end of the url is " +delineate2(text));
> > > > > <br>
> > > > > <br>
> > > > > <SCRIPT LANGUAGE="javascript">
> > > > >
> > > > > function delineate2(str){
> > > > >
> > > > > point = str.lastIndexOf("=");
> > > > >
> > > > > return(str.substring(point+1,str.length));
> > > > > }
> > > > > document.write("The value at the end of the url is " +delineate2(text));
> > > > > </SCRIPT>
> > > > > <br>
> > > > > <br>
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > This is the form that is to be adjusted IF the url has kelley as it's
> > > > > closing value...
> > > > > <br>
> > > > > As it is, the form gets filled out regardless of what's in the url which is
> > > > > the PROBLEM and so CONTRARY to the IF statement in the script below...
> > > > > <br>
> > > > > <FORM NAME="theform">
> > > > > <select NAME="selbox">
> > > > > <option value=>above backorda!
> > > > > <option value="backorder">backorda!
> > > > > <option>below backorda!
> > > > > </select>
> > > > > <input type=text size=50 name=comments>
> > > > > </FORM>
> > > > > <br>
> > > > > <br>
> > > > >
> > > > >
> > > > > This is the script that determines, by invocation of the delineate()
> > > > > function, see above, WHAT was at the end of the url, AND is now the value of
> > > > > the joe.burns button...and whose placement there is SUPPOSED to result in the
> > > > > population of 'theform' with specifics ONLY IF kelley is at the end of the
> > > > > url... As it is, feel free to test, no matter what is in the url, no matter
> > > > > what is in the joe burns button, no matter what is the result of the
> > > > > delineate(text) function the form is filled out as a backorda, The if
> > > > > statement is right now, and unexplainably so for me in any case, nonfunct...
> > > > > What's in the IF statement happens regardless of whether the parameter the if
> > > > > statement checks is the proper setting to adjust the form or not... The else
> > > > > statement does nothing, I just put it in there as a test. I've actually set
> > > > > the else statement to populate the form differently and that didn't work
> > > > > either...Also the script has been tested with the document.theform.selbox and
> > > > > comments values right in the IF statement... This so rather than the
> > > > > bakord() function now there set.
> > > > > <br>
> > > > > <br>var zork = delineate2(text)
> > > > > <br>function bakord(){
> > > > > <br>document.theform.selbox.value = "backorder";
> > > > > <br>document.theform.comments.value = "Please notify me when this item is in
> > > > > stock!";
> > > > > <br>}
> > > > > <br>if ("zork == kelley")
> > > > > <br>{
> > > > > <br>bakord();
> > > > > <br>}
> > > > > <br>else
> > > > > <br>{
> > > > > <br>donothing();
> > > > > <br>}
> > > > > <br>
> > > > >
> > > > > <SCRIPT LANGUAGE="javascript">
> > > > > var zork = delineate2(text)
> > > > > function bakord(){
> > > > > document.theform.selbox.value = "backorder";
> > > > > document.theform.comments.value = "Please notify me when this item is in
> > > > > stock!";
> > > > > }
> > > > > if ("zork == kelley")
> > > > > {
> > > > > bakord();
> > > > > }
> > > > > else
> > > > > {
> > > > > donothing();
> > > > > }
> > > > > </SCRIPT>
> > > > >
> > > > > PLEASE HELP!
> > > > > <br>
> > > > > I've also put the bakord() function in a seperate script as a test...
> > > > > <br>
> > > > > Please refrain from making suggestions without TESTING for resolve. I've
> > > > > spent too much time reading nonsensical suggestions on this to dally further.
> > > > > <br>
> > > > > Feel free to copy the source to your harddrive and play with this script if
> > > > > you're so motivated. You can acquire the full unmodified text of this
> > > > > message at <a
> > > > >
> > > >
> > href=http://www.geocities.com/dankelley2035/fshawscript/variablepassviaurl.html>http://www.geocities
> > > > ..com/dankelley2035/fshawscript/variablepassviaurl.html</a>
> > > > > <br>
> > > > > <br>
> > > > > Many Thanks,
> > > > > <br>
> > > > > Dan
> > > > >
> > > > > </body>
> > > > > </html>
> > > >
> > > >
> > > >
> >
> >
> >