473,804 Members | 3,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="frmsubmit F" id="frmsubmitF " onsubmit="retur n wheretogo();"
action="../noscript.htm" method="post">

function wheretogo()
{

if (eval("document .frmsubmitF.cal lfunc.checked") == true)
{
alert("Calling ASP Function");
frmsubmitF.acti on = "converttempfun ction.asp";

........

It seems that Netscape doesn't recognize the < frmsubmitF.acti on =
"converttempfun ction.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 1584
See microsoft.publi c.scripting.jsc ript 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="frmsubmit F" id="frmsubmitF " onsubmit="retur n wheretogo();"
action="../noscript.htm" method="post">

function wheretogo()
{

if (eval("document .frmsubmitF.cal lfunc.checked") == true)
{
alert("Calling ASP Function");
frmsubmitF.acti on = "converttempfun ction.asp";

.......

It seems that Netscape doesn't recognize the < frmsubmitF.acti on =
"converttempfun ction.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.javas cript 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**********@n etscape.net> wrote in message
news:%2******** *******@TK2MSFT NGP09.phx.gbl.. .
See microsoft.publi c.scripting.jsc ript 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="frmsubmit F" id="frmsubmitF " onsubmit="retur n wheretogo();"
action="../noscript.htm" method="post">

function wheretogo()
{

if (eval("document .frmsubmitF.cal lfunc.checked") == true)
{
alert("Calling ASP Function");
frmsubmitF.acti on = "converttempfun ction.asp";

.......

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

Jul 19 '05 #3
>> Was on comp.lang.javas cript 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
7774
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" action="/test.php"> <input type =submit name="add"> form elements but also <a href="#" onClick=document.myForm.submit()>edit</a>
7
2992
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 that will check the value of the imput tag to make sure it ends with .jpg, .jpeg. this works fine on the jubmit button using onclick="myHandler(this)"
1
3793
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 HTML form to. the actual form-parsing page resides on a server that's uneditable to me since it sits on an inaccessible server. my problem is more irritating than anything; everything double-submits.. when you submit the form, I've forced a...
3
4276
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 button="submit" name="submit" value="submit">
14
2232
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 radiobuttons with values 'Via Email' and 'Printed Brochure'.
17
61448
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 programmatically issue a JavaScript statement which causes the browser to act just like the user clicked on a link in my page. And if that link has an onClick JS event defined, I'd want that onClick event to execute too, exactly the same as if the user...
1
7495
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, the vertical scrollbar on the left side will be moved down a little bit but if the page is loaded with Internet explorer, the scrollbar remains at the top of the scroll area.
2
2100
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 name="_ct99:Content:UsrName" type="text" id="_ct99_Content_UsrName" /> <input name="_ct99:Content:Pwd" type="password" id="_ct99_Content_Pwd" /> <input type="submit" name="_ct99:Content:btnLogon" value="Logon"
0
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9575
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10564
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10320
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10308
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9134
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5645
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3806
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2981
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.