|
 |
asptoday_discuss thread: Submitting form data without a button in vbscript
Message #1 by "Norman Herring" <Norman@x...> on Mon, 22 Apr 2002 10:49:33
|
|
This is probably the wrong forum but I am having trouble with a couple of
pages. I have to show and hide layers in a page and allow users to pick
options from a 'catalog'. Depending upon their choices I then display the
results in another layer. As their choices can be multi-layered (multi-
levelled) I change the contents of hidden form fields using VB Script. I
then want to action the form from the same piece of code using something
like: document.myform.submit() only nothing happens.
In the script I have already declared, set and used a variable: vForm to
access and change fields of the ilk:
vform.myfield.value=myvariable where vform is: document.myform.
I reasonable example of what we are trying to achieve is something similar
to Encarta97 with respect to its articles.
Regards
Norman
Message #2 by "Dmitry Zakharov" <brook74@h...> on Tue, 23 Apr 2002 15:05:55
|
|
That should work. But i'd recommend ya to put your contents on several
different DIVs and change their visibility without any submittance at all.
I checked this approach with relativelly a big data, it works without
delay.
Also check if you put your controls exact WITHIN your form. And use
JScript, looks like a bit more stabil.
Cheers.
> This is probably the wrong forum but I am having trouble with a couple
of
p> ages. I have to show and hide layers in a page and allow users to
pick
o> ptions from a 'catalog'. Depending upon their choices I then display
the
r> esults in another layer. As their choices can be multi-layered (multi-
l> evelled) I change the contents of hidden form fields using VB Script.
I
t> hen want to action the form from the same piece of code using something
l> ike: document.myform.submit() only nothing happens.
> In the script I have already declared, set and used a variable: vForm to
a> ccess and change fields of the ilk:
> vform.myfield.value=myvariable where vform is: document.myform.
> I reasonable example of what we are trying to achieve is something
similar
t> o Encarta97 with respect to its articles.
> Regards
> Norman
|
|
 |