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. Code:

View Replies


ADVERTISEMENT

Javascript Form Validation - Form Action To Another Page

In my prototype asp page (with no javascript and no password validation, I have a registration form with the following action:

<form name="form" method="post" action="RegDetails.asp">

This works fine, the form details are collected by RegDetails.asp

I am attempting to include javascript server side validation for the pasword, which obviously requires password and password2 fields (to be verified). I have used the script available at:

http://javascript.internet.com/forms/val-pass.html

It works fine in a new blank page with the form action:

<form name=myForm onSubmit="return validatePwd()">

The final stage in this javascript demo form displays an alert box:

else {
alert('Nice job.');
return true;


When I change the first line of my original form to:

<form name=myForm onSubmit="return validatePwd()">

how do I get my original action of - action="RegDetails.asp" instead of this alert box?

View Replies View Related

Action Form

I have a form with 3 combobox whitin a asp page called data.asp, whose
action form is itself; the first combobox drives the behaviour of the other
two.The onchange event of the first combobox is related to a javascript function
in which I call the submit method for the form, whose action form is itself.
This works fine.
The problem is that if I want to save the changes done by the user (clicking
the OK button) I need to set the action of the form to another page, for
example save.asp.
The question is: how to do this?
I had written a function inside the onclick method of the OK button that is
similar to the following one

document.MyForm.action = "save.asp";
document.MyForm.submit();

View Replies View Related

Form Action

how I can create two different form actions.I'm currently creating a On-Line Order System for our company. I've created a page that displays what they have ordered and the option to update the number of item that would like on there order. so I need to create two different for actions.

What I looking to have is one button that would submit, one button that would update any changes? Two different action.the update button will call proorderbyline.asp the submit will call submitbyline.asp .

View Replies View Related

Form Action

I have a form that appears in a popupwindow. I found a javascript code that allows me to return to the opener window onClick and it closes the popwindow. The problem is I tried to implement the code into my Form Action and I can't get it to work.

This is the original code:

onClick="return targetopener(this, true)

This is what I'm trying to do:

<form action='return targetopener(<%Response.Write("checkboxtrial2.asp?Model=" & Recordset("model") & "")%>, true)' name="formOptions" method="post">

View Replies View Related

Hidden Form Action

Is there a way with ASP or Java to hide the form action part of a form? I have someone that has found the location of a script by looking at the source of one of my forms.

They run some type of script that trys to post bogus info from 6:00 in the morning till 12:00 in the afternoon. Although it gets denied due to wrong input by the user, it sends administrative emails that are annoying (hundreds). If the user only saw the client side (below), they could not do it. Is there a way? Code:

View Replies View Related

<form... Action="

Is it possible to have a form with TWO submit buttons that calls TWO DIFFERENT ACTIONS?
For example, at the end of the form, when SUBMIT1 is pressed, it goes to PAGE1.asp. if SUBMIT2 is pressed, it goes to PAGE2.asp. and whichever one it goes to, all form field values are sent to it?

View Replies View Related

Changing The Action On A Form Before Submitting

I want a form to submit to a different page depending on what selection has been made in a dropdown option box. However something is going wrong my code looks as follows: Code:

View Replies View Related

Form Post Action Options

I have a form with several submit buttons. Each one is different. For instance, one may require the next action window to be a pop up requesting more data. Another may require it to be normal. And of course I need the request data from the form. I tried not specifying the action on the form and put it on the the submit button via the OnClick but the request data was always behind and isn't current until after the submit.

I guess an easy way to think about it is say you have a tool bar and depending on which button you click it fires a different asp file but the current form data.

View Replies View Related

Call Subroutines Via A FORM Action

Can I have this: Code:

<!-- #include file="myFunc.asp" -->
<form name="myform" method="post" action="<% function1(); %>" >
..form stuff
</form>

I tried it but it was as if the page was trying to process the function before the page rendered.

View Replies View Related

Google Pagerank Programatically

Is there any way to determine a website's Google page rank programatically? I can see the pagerank using Google's tool bar when I visit a website but does Google have hooks into this feature?

View Replies View Related

Export Dbf File To MS Access Programatically (asp)

1. I want to import a dbf file to access through ASP Programm. When i import a dbf file with filename greater than 8 chr, it gives an Server error saying File Not Found,Maker sure if the path is correct or filename is spelt correct. what should be done do import a dbf file with a longer name.

2. In the dbf file i want 3 fields to export to MS Access table. for eg : - Name, Address,City.

How can i make sure if all the field Names (Columns) ie: Name, Address and city is present in the dbf file programatically. for eg : if There is Only 2 fields in the dbf file while importing to Access rather than giving an server error message, it should display my customised Error .

View Replies View Related

Setting A Form Value

I'm trying to use CDO with ASP. How do I set the value the user types in to be a variable that I can use?One specific of this is I want to have a text input for the user's email address. The value the user types in will be stored as a variable (hopefully, if this is possible). I assume it would be something like this:Code:

myMail.From=" " & email & " "

View Replies View Related

Setting A Form Field Value Using Cookies

I have a form on a page which I need to auto set certain fields from values stored in a Cookie.

<SCRIPT LANGUAGE="vbscript">
RegisterForm.Prefix.value = Request.Cookies("store")("id1")
</SCRIPT>

That is how it is in my file yet it just appears empty but I know there is valid data in the cookie as I printed it on screen using:

<%
Response.Write(Request.Cookies("store")("id1"))
%>

So I figured maybe it was something to do with the script tags so I tried using the <% %> tags instead and I got an error saying something like Microsoft VBScript runtime object required.

View Replies View Related

Setting The Value Of A Form From A Parent Screen

I have a screen, screenA, from which I call another screen, screenB, with a form on it. ScreenA has an ID that is captured in a variable called strShortName. (That variable is defined in another file called into ScreenA via an include.) I want to write that name as the value in a hidden field in the form on screenB. How can I do that?

View Replies View Related

Setting Required Fields On A Form

I have a form with several fields - I have a radio button Yes/No

I have Field1, Field2, Field3, Field4 and Field5

If the radio button is Yes then I want Field1, Field2 and Field3 to be required - the other fields do not have to be required.

I'm not sure how to set them to be required - I know that I would have an if statement that if the button was yes then do something, but I'm not sure what to do?

View Replies View Related

ASP Equivalent Of CFParam - Setting A Value Of A Form Variable

I'd like to do something similar to CFParam, but in ASP - basically, I have a form variable ("Type") which may or may not be passed from the referring page. Some referring pages have an input field called "Type", whilst others do not.

I'm actually a CF developer, but keen to learn ASP. My current code at the top of the script is : Code:

View Replies View Related

Redirecting To A Webpage Within A Form With Action Tag Set To A Different Webpage

I am using a form. This has the action tag set to another page. But within this form I am using a button, which when clicked should take me to a different page.

View Replies View Related

HTA In Netscape

As some people here I've been thinking into converting some of my
applications to HTA, but will they work for the Netscape folks?

View Replies View Related

Netscape Problem / Asp

A site that i developed with asp seems to work perfectly in internet explorer - however there is a problem with netscape 6.2 + 7 where 2 table Columns are being pushed over to the right - the strange thing is when i use the back button on the browser and go back to the page it seems fine.

i was just wondering if anyone knows how to fix this problem + if its easily fixed.

View Replies View Related

Unicode Through IE Or Netscape

I have a web application designed to allow non-english characters to be entered in through a form, held in Access and displayed on another page.Each of my pages have the following meta tag:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

My problem is this: if I go to the data entry page and enter Unicode text in Netscape, the text displays ok -- in Netscape, not in IE. Conversely, when I enter Unicode text in IE, the text displays ok -- in IE, not in Netscape.I have been testing it by copying and pasting text from the Unicode.org page such as this one for Arabic:

http://unicode.org/standard/translations/arabic.html

why Unicode is being treated differently here?

View Replies View Related

Erm Netscape Doesn't Like My Css

I have stored all my css classes etc in an asp file, or should I say in my favorite html editor, when it asks me where to save my css, I name it as css.asp.

Now everything works totally fine in IE, but when I went to test my first few pages in netscape ( testing my javascript functions ) none of the backgrounds would appear, and all the text was different. Code:

View Replies View Related

Intetrnet Explorer And Netscape

I am starting to write a web application that will be viewed in both IE and Netscape. Does anyone know of any issues I should be aware of from the start before I start coding?

View Replies View Related

Download File Problem With Netscape

While forcing the download from the server, when the download prompt box shows up for location selection and file name, asp is added as extention to the original file name. e.g., sample.csv.asp

i am doing following here before downloading Code:

View Replies View Related

Error Message In Netscape, Firefox, Not IE

When I use Microsoft Internet Explorer I dont get any error messages, but when I use Netscape 7.2 or Firefox 1.0 I get the following error message
error '80020009'

Delete_Auto.asp, line 24

This is line 24:

IF Lcase(rs2("EmailAddress")) <> Lcase(Session("Email")) then%>

All of my other code still seems to execute, but cant get rid of the error message? Any help would be appreciated.

View Replies View Related

Aspx Programs Not Parsed Correctly In Netscape

I noticed that when I process my aspx web pages in Netscape that the page is not interpreted correctly. Text boxes that are supposed to have no border, have borders, the font for arial is one size larger than what it is supposed to be, etc. Doe
Netscape plan to fully support the Net Framework system

View Replies View Related

Action .asp From HTM

I'm trying to connect to a sql server to write a record , but am getting no results.
See the attched file

View Replies View Related

Action Successfull Or Not

im trying to get used to asp, as im abit of a php users really. anyway my problem is ive made a database connection and made an update work. only thing is im wondering how one would test if the update was successful so can display to user that it was.

my query ends as

Code:

adoConn.Execute strQuery


so is there away to test if it was successful?.. so i can do if it was var = success else car = error

View Replies View Related

Forms Action

I have an ASP page with some form elements on it, as well as an inline frame
called 'body'.

Depending on element is selected when the form is submitted different ASP
pages appear in the inline frame.

<form Name=aSelect method=Get action=Test.asp target=body>

<Input type="radio" name="Radio" value=0)

Using this the line passed to the inline frame = Test.asp?Radio=0

I want to add a second inline frame to the page and have a different
page displayed in this. The page to be displayed needs to reference the
selection made in the form. Something like Otherpage.asp?Radio=0

View Replies View Related

Automatic Action

is it possiable in run some automatic checkups on the server every X time or every time (with no reaction with the user). I need to run all the time checkups on the sql database and check values of some column.

View Replies View Related

Perform An Action

Is there any way that I can for example, send an email After a file has been downloaded? Currently, it is setup so when they click to download a file...it sends an email...I am trying to figure out a way to have the email sent only have the download has completed.

View Replies View Related

Sending Action

I have a system that i designed a while ago that is an online diary system. The way it works is that the users are given the option to click on any day of the month on the main diary screen. This then opens a second browser window using javscript to show the user all of the appointments in this day. All action are then done in this new window.

The proplem that i have is that once the action has been done, it is not highlighted on the main diary screen untill the page is refreshed. Is there any way that i can send a refresh comand back to the original brower screen from within the new javascript opened brower? I have a close window button on the js window so i didn't know if there was some way of adding a command to do it.

View Replies View Related

POST Action

I have a form with dropdown boxes and a "Submit" button.These dropdown boxes get populated dynamically with user interaction, like this:

<form method="POST" name="form1" action="MyPage.asp">
<p><select size="1" name="Dropdown1" onchange=form1.submit()> 

The "Submit" button is included within the same form.Is there a way to find out which item made the POST action.If it's the Submit button.i want to do this.If it's the dropdown boxes.then i want to do a different thing.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved