473,326 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Programatically setting form.action for Netscape?

Have a school project in which I have to use an ASP page to process data
from a form submitted by a user. Have to do this 3 ways - Using a Function,
a Sub Procedure, and a Class. Simple enough.

I decided to see if I could get them all to work from 1 submittal page using
an option group of radio buttons, and JavaScripting to send me to the
correct page (just as a personal learning experience). Got this working
also - but only in IE.

Following is some of my code:

<form name="frmsubmitF" id="frmsubmitF" onsubmit="return wheretogo();"
action="../noscript.htm" method="post">

function wheretogo()
{

if (eval("document.frmsubmitF.callfunc.checked") == true)
{
alert("Calling ASP Function");
frmsubmitF.action = "converttempfunction.asp";

........

It seems that Netscape doesn't recognize the < frmsubmitF.action =
"converttempfunction.asp"; >
Is there another way to do this that other browsers will recognize?

--

/ Sean the Mc /
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)
Jul 19 '05 #1
3 1562
See microsoft.public.scripting.jscript for my response. Keep in mind
that you're mixing ASP and Client-side JavaScript, ASP of course runs on
the server.

David H

What-a-Tool wrote:
Have a school project in which I have to use an ASP page to process data
from a form submitted by a user. Have to do this 3 ways - Using a Function,
a Sub Procedure, and a Class. Simple enough.

I decided to see if I could get them all to work from 1 submittal page using
an option group of radio buttons, and JavaScripting to send me to the
correct page (just as a personal learning experience). Got this working
also - but only in IE.

Following is some of my code:

<form name="frmsubmitF" id="frmsubmitF" onsubmit="return wheretogo();"
action="../noscript.htm" method="post">

function wheretogo()
{

if (eval("document.frmsubmitF.callfunc.checked") == true)
{
alert("Calling ASP Function");
frmsubmitF.action = "converttempfunction.asp";

.......

It seems that Netscape doesn't recognize the < frmsubmitF.action =
"converttempfunction.asp"; >
Is there another way to do this that other browsers will recognize?


Jul 19 '05 #2
Thanks - been trying to figure out were to go with this.

Was on comp.lang.javascript and was told I didn't belong there so I thought
I'd try here.

--

/ Sean the Mc /
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

"David C. Holley" <Da**********@netscape.net> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
See microsoft.public.scripting.jscript for my response. Keep in mind
that you're mixing ASP and Client-side JavaScript, ASP of course runs on
the server.

David H

What-a-Tool wrote:
Have a school project in which I have to use an ASP page to process data
from a form submitted by a user. Have to do this 3 ways - Using a Function, a Sub Procedure, and a Class. Simple enough.

I decided to see if I could get them all to work from 1 submittal page using an option group of radio buttons, and JavaScripting to send me to the
correct page (just as a personal learning experience). Got this working
also - but only in IE.

Following is some of my code:

<form name="frmsubmitF" id="frmsubmitF" onsubmit="return wheretogo();"
action="../noscript.htm" method="post">

function wheretogo()
{

if (eval("document.frmsubmitF.callfunc.checked") == true)
{
alert("Calling ASP Function");
frmsubmitF.action = "converttempfunction.asp";

.......

It seems that Netscape doesn't recognize the < frmsubmitF.action = "converttempfunction.asp"; >
Is there another way to do this that other browsers will recognize?

Jul 19 '05 #3
>> Was on comp.lang.javascript and was told I didn't belong there so I
thought
I'd try here.


After reading the latest reply there(comp.lang.javascript ), I realize I may
have misunderstood
If anybody from that group reads this, sorry.
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Marc | last post by:
Hello, I have a self - submitting form with multiple submits and I want to detect after the submit which button is pressed. Code example: <form name="example" method="post"...
7
by: greg brant | last post by:
i have a form made up of 2 file inputs and a submit button.. the imputs are to upload images, namley jpeg's for a e-greatings thing im working on. this only works with jpegs so i have a script...
1
by: Display Name | last post by:
the customer I'm developing a site for uses a canned form-parsing page that allows her to have an email subscription opt-in page add emails to a list she can manage using a link that you point your...
3
by: Christian | last post by:
Hello, I was wondering if it is possible to create in one form 2 destination for example <form method="post" action="test.html"> <textarea name="content"> Test </textarea> <inbut...
14
by: Oleg | last post by:
Hello there: I've been trying to create two different sets of required fields in one form and to use a radiobutton as sort of a switcher between these sets. In my HTML form there are two...
17
by: Mike Gratee | last post by:
Is it possible to use JavaScript to cause the browser to click a link on a page and have the browser act exactly like the user had clicked on the link directly? In other words, I need to...
1
by: alvinpoon | last post by:
Hello, I have a problem setting the scrollbar position of a div region on a webpage which is posted at http://www.geocities.com/virtuosity999/Logon.htm If the page is loaded with Netscape,...
2
by: Grey Alien | last post by:
I am trying to programatically POST an ASP form, to allow me to log on to a site programatically. <form name="aspnetForm" method="post" action="Default.aspx" id="aspnetForm"> <input...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.