Javascript & ASP Dynamic Change Forms.

I have a form, where it contains 4 text input fields, and one dropdown list.
Depending on the user choices on the dropdown list i want to automaticly write the results in the 4 text input fields.

The catch is this values come from the database.

Basicly the drop down list contains :
.Address 1
.Address 2
.Address 3

And when the user picks the Address 1 i want to display in the other 4 text inputs the address 1, when it picks the Address 2 i want to display the address 2.

My logic on this is put all the address available for that user into an array, and in some way create a java script where onChange of the dropdown list, send the values of the array and then appear in the 4 input box.

Please can you point me in the correct direction ? Some links to examples or just your logic on doing this?

View Replies


ADVERTISEMENT

URL For Javascript Forms

I have made this form, displays the user info using javascript and ASP

<script language="JavaScript">
function GetInfo(form)
{
form.submit();
}
</script>

<form name="request1" action="finduser.asp" method="post">
<tr>
<td nowrap><font size="3" face="Arial, Helvetica, sans-serif">
<input type="hidden" name="id" value="111111">
<a href="javascript:GetInfo(document.request1)">
user Name 1
</a>

assume that my domain is www.domain.com.what the absolute URL would be ?Like www.domain.com/finduser.asp?id=111111 ??? that doesn't work.

View Replies View Related

ASP And Javascript + Forms

I am trying to create a form with lets say 4 fields...

field1: CustomerId
field2: CustomerName
field3: CustomerPhone
field4: AdditionalInfo

Now when the first time the form is loaded i want field2, field3 and field4 disabled and only field1 to be enable.Now after the user enters the CustomerId, i want to do database look up(need for ASP comes here) and populate the field2 and field3 and enable all the fields...so that the user can add AdditionalInfo.

I am not completely aware of how to mix both ASP and javascript for this...can this be done on one form because we need to look up database after the user enter the CustomerId and populate the other fields.

View Replies View Related

Change Text Value In Javascript

I would like to know if I can change the text value of an item in javascript ie:

<script language='javascript'>
function restore_BG(the_Id) {
if (the_Id == 'Arts') {
document.getElementById(the_Id).??? //what code needs to be here to change 'Hallo' to 'Bye' for eg.
}
}
</script>
<tr onmouseover="javascript:restore_BG('Arts')">Hallo</tr>

View Replies View Related

Change Session Value With Javascript

I need to change session value with javascript and below is my code:

Code:

<script language="javascript">
function onSelect(type){
if(type == '1'){
<%Session("userSession")="1"%>
}
else{
<%Session("userSession")="0"%>
}
window.location = "index_edt1.asp";
}</script>

View Replies View Related

Dynamic Forms

I am trying to develop a form, which has one value. Depending on what numeric value is inputted in this field that then makes that number of forms appear on the same page. these forms will all have the same fields. For example, if someone types '5' in the form field then when submit is pressed, 5 other forms appear on the page.

View Replies View Related

Dynamic Forms

I'm trying to call up just two fields from a database and place them in an array then have a drop down selection that contains the values of the first column. When an option from the list is selected I'd like the corosponding value to be displayed in a label on the same page.

View Replies View Related

Store Javascript Document.forms[0].value

Would it be possible to store javascript document.forms[0].value to ASP session as global variable? If it is not possible, how can I pass the javascript document.forms[0].value to ASP/vbscript function? I need to pass the javascript value to ASP/vbscript function because I have to store the javascript value into database.

I can't use Request.Form for getting field value. Because there is a submit button in the same form for calling email function in another ASP page.

View Replies View Related

Create Dynamic Forms Using Xml

i need to create a dynamic form using xml

this is what i am doing

Response.Write "<ROOT>"
For Each Field In rstCampaign.Fields
If UCase(Field.name) <> "KEY" Then
Response.Write "<FIELDINFO><FIELD>" & UCase
(Field.name) & "</FIELD></FIELDINFO>"
End If
Next
Response.Write "</ROOT>"

in the browser i am getting just the field names.

the output i want should look like something

<?xml version="1.0"?>
-<ROOT>
-<FIELDINFO>
<FIELD>NAME</FIELD>
<FIELDINFO>
</ROOT>

WHAT DO I DO

View Replies View Related

Javascript To Enable Or Disable Controls In ASP Forms

I am trying to write javascript which will enable or disable a control on client side. I am writing a sample code here in VB but it will not work on client side, I need same kind of code in Java:

Function SetControl(ByVal ControlName As Control, ByVal strAction As integer)
If strAction = 0 Then
ControlName.Enabled = True
Else
ControlName.Enabled = False
End If
End Function

this code will not work, it is just an example and I need this kind of script to place on the top of my page which I can use on client side.

View Replies View Related

Update Dynamic Asp Forms To Sql Database

I have created a form dynamically which displays questions and a selection of possible answers. These questions can come in many forms ie radio buttons, select box etc this is controlled by the entry in the database. My problem is how to update the database with the results entered. I am confused as they all have the same name for question and selection and there can be up to 10 questions. Code:

View Replies View Related

How To Pass Dynamic List/menu In Forms?

I have a form called form1.asp which has 10 dynamic list menus. This is the code for one of them. In this form I have a recordset. Code:

View Replies View Related

When Change The Directory Then Date Format Will Change

I have virtual directory where I run test.asp page with only this code inside:

<%Response.Write now()%>

As a result, if I go into the IE and browse for the test.asp page, I get :
1/22/2004 14:18:04

If I copy this page on some other(existing) virtual directory, I get as a
result 22.1.2004 14:19:06

If I create a new virtual directory and I copy the page there, I get :
1/22/2004 14:18:04

Seems like that IIS takes english date format even if my regional setting is
:
d.M.yyyy and I would like that date on the page is always like this:
22.1.2004 14:19:06

Where I can change this setting?

View Replies View Related

Dynamic Calendar, Need To Create Dynamic Array....

I code that creates a calendar for each month and then it displays events from that month that are stored in a db. I need to loop through my recordset and display all the events, but I can't quite figure out how to do it. I am thinking I need to do an array. But I am not really sure.... any ideas. Here is where you can view the calendar. Code:

View Replies View Related

Dynamic Dynamic Text

Ok, I have a Javascript ASP and in it I have a dynamic repeating table with certain attributes to people. If one of these attributes is old or invalid, i want to change the color of the text (and maybe make it flash, blink, change size, something) so that it's easy to read.

View Replies View Related

Forms

I am trying to write a simple script that will allow me to have someone complete a form and depending on which location they choose an email will be sent to a specific person.

I have a page that validates and sends and email to me correctly, now I am trying to simply add a case statement that will allow me to change the recipient to the individual it needs to go to. What am I doing wrong? Is there another way of doing this?

View Replies View Related

Forms

Basicly I would like to know how to transfer data entered on a form one one page, to another - for example a signup:
Page one - Contains initial form
Page two - other details form ] both pages emailed through the same form.

View Replies View Related

ASP And Forms

I am trying to take that is submitted in a form and put it into a querystring. I have a text field with the name "company_name" and has the value of <%= cCompany%> when submitted I want to take the value of the text field and send it to another page called submit.asp. then from the submit page I will append it into a table. I can append to the table fine but when I pass the value its blank. I have tried Request.Form(company_name) and Response.Write(cCompany). None of these seem to work the variable is always blank when I submit it. I can use javascript to get the value, which works correctly but cant dont think I can pass a javascript variable into a querystring.

View Replies View Related

Forms

how come the second one has the forms lined under eachother
when the first one looks like it does?
How do i make the "boxes" in a straight line under eachother?

View Replies View Related

Forms With In Forms?

I’m working on an Invoice page. The user may edit some of the vars on the page. Then The user will want to re calculate the totals. Then after seeing the re calculated totals then I will want to submit this info to the next page where the data will be put into a DB.

The question is how do I do this without using 2 forms, It looks like you can not put a form with in a form. Yet it looks like that’s the only way to be able to pass the vars iEither to the page where were calculate the vars, or the other page where we submit the data to the DB.

View Replies View Related

ASP And Forms

i have

printerdropdown = printerdropdown & "<option value=" & rsPrinter("id") & ">" & rsPrinter("id") & " " & rsPrinter("name") & " ( " & rsPrinter("location") & " )</option>"

and want to pass two variables across my forum by selecting just the one.
i.e. rather then just passing rsPrinter("id") id also liek to pass rsPrinter("ccid")

But dont know how to without making it joined when i cann it on the next page via request.form("printerid")

View Replies View Related

Forms

Is it possible to call ASP functions from event handlers? I am trying to find a way to have a form call an ASP function, if there is a better way let me know.

View Replies View Related

Asp.net Forms

Is it possible to create a form that will authenicate against a 2003 domain?

View Replies View Related

ASP Forms

A client of mine has a couple of simple contact forms on their web site and they have asked if I (their web guy) could put together an ASP Form for them as their current form is out-dated and the radio buttons don't work right.

Not only that but, they do not even have a re-direct page setup so when a prospective customer completes the form and hits "submit" the form they just submitted stays in their browser window.

I have put together html forms but, I was wondering if I could get some help with creating an ASP Form for my client with disrupting the format & layout of their current Forms?

I have checked out some ASP tutorial sites but, they really do not give you the full picture in creating a "working" ASP Form.

View Replies View Related

Forms

how do you get the infromation from a form and put it into a database using sql .

View Replies View Related

Forms

I am trying to create a page with a drop-down select upon it. When the user clicks on a selection I want a new frame to appear with a new URL (associated with the selection) appearing in it.

previously when I have used select I have passed the value to the new page, but this time I want to go to a different page depending on the selection.

View Replies View Related

Forms

I have a very large form that clients will enter data into. When they submit the form I would like a page to come up where they can opt to confirm the form or go back and edit the form. I know this is possible is there a way to automate this so I dont have to retype the whole form again putting all the data in manual.

View Replies View Related

Forms

I need the form to be emailed to me once the form is complete. the problem I'm having is when the SUBMIT button is selected I receive a HTTP error 403.1. My web server admin isn't sure what is causing the problem. Is ASP the best way to go?

View Replies View Related

Forms Under SSL

I need to collect course registrations, with cc info, via an ASP registration form that would operate under SSL. The order info would be stored in a database that resides outside of the public web directory.

If I write a password protected utility that runs under SSL that allows the person processing orders to view/print records in this database under SSL so they can be manually processed, and after printing delete the cc number in the db, realistically, how secure is this? Host won't let me use PGP.

They don't want to use Paypal, and can't get an online merchant account because they're considered a high risk business (travel). What other options do I have?

View Replies View Related

Forms And .asp

im creating an application form for an existing site. The pages are all .asp but my form is .php. I have never explored asp before and know very very little about it. Not sure of the easiest way to create this form within these pages.

View Replies View Related

Forms

I have a form with 6 multiline text boxes each accepting data to be stored in a memo field. the form accept as much date as can be typed, but refuses to send data after
a certain limit (havent actually counted the # characters).

Is there a limit to the number of characters a form can send, or is it some other design problem.

View Replies View Related

Forms

Basically I have a form, where I have 6 option boxes, say Option box 1 has 3 options in it, being A,B,C. Is the a script around than when a user selects an option them form gets reloaded with the same option boxes, but between the first two option boxes a Text box appears with a certain label, this labels is altered depenging on the users selection. Code:

View Replies View Related

ASP Forms

I have built some ASP forms using Dreamweaver MX. I do not know much about ASP, so here is where I need help. The forms are writing to the databse with no problem.

how to get an email sent to the user confirming submission and to the admin, letting them know that the form has been filled out. Im sure it is not to complex to achieve this, but I am just not sure where to begin.

View Replies View Related







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