If You Select An Item Then It Display Related Informations

I need to be able to have a drop down box wih several options, and what option you choose depends on what the next drop down ox has.

For example, a drop down box with countries: England, Wales, Scotland.

If you select England, you get the box below it saying Liverpool, Manchester.

View Replies


ADVERTISEMENT

Two List Item Related Togther?

I have two list item one for country nd other for cities

how can I change cities list item value crosponding to the country list item value changes ??

View Replies View Related

Select Control Related

var oldLen = objListAppAnalysis.options.length;

alert(oldLen);

var i;
for (i=0;i<oldLen;i++)
{
objListAppAnalysis.options.remove[i];
}

var newlen = objListAppAnalysis.options.length;

alert(newlen).

View Replies View Related

Display Related Access Field

I have a timesheet application I'm working on. The user fills in a form which sends data to an Access db. On the results page I need to display the values from 2 fields; i.e if the user selects "Report Writing" from a drop down list, I need the data contained in another column called 'Codes' to display as well.

View Replies View Related

Select Item Tag

i have a list form object on my page:

<select name="item" size="5" multiple="multiple" id="item">
<option>something here</option>
<option>something here</option>
<option>something here</option>
<option>something here</option>
<option>something here</option>
<option>something here</option>
<option>something here</option>
<option>something here</option>
<option>something here</option>
</select>

but i cant find anywhere about how to get at these elements when the forms been submitted. for example, if a few of the items have been select, it returns a commar delineated line, but how can i get at, say the 3rd item selected or find out how many items were selected?

View Replies View Related

Add Item To Select

how can i add item/s to a dropdown from another page. i am currently using window.opener to initial the link between the 2 different pages. i have 2 pages, main and sub page.
when i clicked on a button at the main page, it will pop out the sub page. when i clicked on the add button at the sub page, it will add the item into the dropdown list at the main page on the fly.

View Replies View Related

Select An Item

How do I make an item the selected one based of the info I get from a querystring.

ie:
1 - I pass in a query string containing the color "blue"

2 - I have a drop box that has 30 colors in it (inserted manually)

3 - How do I code to have blue the selected one?

View Replies View Related

Select Item In Drop Down Menu

I am trying to find out how to select an item from a drop down menu after a query is executed. My drop down has 4 options, and what I am trying to do is if the record stored in the database is "option2" I need the drop down menu to have option2 is selected.

View Replies View Related

Splitting Multi Select Item Into Arrays

I know that I can use instr(input,1) etc. but my attempts so far are of little use.

View Replies View Related

How Do I Retrieve The Value/text Of The Selected Item In A Select/dropdown Box?

I have an .asp page containing a form with (multiple) select/dropdown boxes. The page is submitted to itself.

Is there any way of retrieving the selected values (i.e. the text) in the select boxes server-side?

I'm looking for something like Request.Form("Select1").Value.

View Replies View Related

Display A Secure Item

Is there a way to display a Secure / Non-secure item from a ASp web page.Does anyone have any idea what i could type in in the URl or anywhere in the page to break it.

View Replies View Related

Send Informations

I Want to send email but i couldnot make plz help send both asp and html form
cdonts,aspmailer,aspmail

View Replies View Related

Response.Redirect Informations

all I want is that when someone fills out the form that after he clicks submit it goes to a page with all the details he filled out.When I think about it it the answer must be so trivial, but I just don't know why I cant get it to work.

View Replies View Related

Display Drop Down Options Based On The Selected Item From Another Drop Down

The code that I have has 2 drop down boxes dd1 (visible) and dd2 (hidden). Based on the option selected in dd1, dd2 should be visible and populate options. I think I can have OnChange script but how could I return the value and put it in the SQL query (see variable in red in thecode)? Code:

View Replies View Related

Select And Display

I would like to select from drop down menu and depending on the selection display 1-3 radio buttons next to the selection box. I have tried some different code and nothing is working. What is the best way to do this?

View Replies View Related

Update Page Display With <select> Box?

Is it possible using ASP to update the page display by selecting a record from a <select> box, then, search the db for the record selected and update the same page with the content of that record? Code:

View Replies View Related

How To Get Data From The User In One Page And Display Related Data In A New Page

how do i get data from a user on one page and display the result on the other page
actually i have written a prgoram that displays a set of checkboxes and based on the checkboxes selected the related data is displayed .but the problem is the data is displayed on the same page below the list of check boxes. Code:

View Replies View Related

ASP Related

i ve a problem thats regarding the data retrieval from database.I m storing data in the microsoft access database by writing query in the asp page..and the number of characters is exceeding 255.so the datatype that i ve chosen is memo...
but now when i want to retrieve the data on another page by writing query i cannot retrieve the whole data it is truncating and i can get only 255 characters

View Replies View Related

Row Id Related

i have a table with sno, userid, name, age, level

where level means the type of grade a person has like A,B it may even be Numbers on a scale of 1 to 5

the sno is declared as a rowid datatype
if i want to update any record i have to give the existing userid ( primary key ) and even update the primary key if there are no duplicates (obviously)

so when the userid is entered i am selecting the rowid where userid = request("")
and storing that rowid value in a variable to perform update operation in the next few steps

i am getting a type mismatch when i am doing the assignment

is there somethin wrong in the code ( that i need to check again ) or that sort of assignment cant be done
( i am still tryin to get it right as i write this thread )

i have one more ques: does the rowid value remain constant that is when i do a delete operation on one row and then subsequently a update operation on another row in the same table will the rowid's get mixed up and mess up my data.

View Replies View Related

OnSubmit Related

Is there a way to perform multiple actions on a SUBMIT with ASP?
Example, I have a submit button that when it is pressed, it performs an action where information is stored in the database using a stored procedure. Can I also write out a flat file of the information saved separately or something parallel without hendering the original submit? I would want to do these two requests at the same time on the submit. Is it possible? Can someone give me some guidance on this?

View Replies View Related

Querystring Related

I am making request to my asp page as

http://localhost/test/test.asp?id=mike

this works great query string value is retrived as "mike"

whereas when I give the URL like this

http://localhost/test/test.asp?id=%aaa

I dont get id value = %aaa

instead I get some garbage value...

is there some kind of encoding required when % is involved in querystring...

View Replies View Related

Related Items

currently i have an online shopping website that display 12 categories of different items of up to 12 types. well my boss wants related items to be displayed in each of the different items . i am not sure how to start this. is there any special code for it. please advise.you may visit www.mellon.com.sg/shop to view .

View Replies View Related

Cookie Related

I have 2 web sites hosted on 2 different machies (pages are in classic asp). when the user accesses http://Machine1/testapp then a cookie is written say

Response.Cookies("user")="Alex"

Whe the user acceses http://Machine2/testapp then a cookie is written as

Response.Cookies("user")="Alex"

before machine2 writes a cookie I need to check if the browser already hase Machine1 cookie, if yes then dont write if no then only write. I know the different hostnames generate different cookies....but is there any way for machine2 code to check client browser cookie for machine1.

View Replies View Related

Email Related Splitting

This is the code I have so far:

I take the email address and split at the "@" symbol. Then I split at the "." sign to get the firstname and lastname.

Most of the times, the email address is of the format:

FirstName.LastName@company.com

However at times, the email address can be just firstname@company.com

At such instances the code fails, how do I check for the instance of . before I split it again?

View Replies View Related

Displaying Related Items

Access db, one table, 12 or so fields (id, item_name, category, manufacture, price, description etc.)... (ecomm site).

When displaying the details of a particular item I want to display "related items" below it. All I do now is pull info depending on the item id then display the size, dimensions, description, photo etc.

Lets say the item is a Large Blue Widget, i want to display related items... say "Large Widget Covers" or/and "Large Widget Accessories"... you get the idea... cross selling

So, I am looking for ideas on how to simplify the display of related items.

View Replies View Related

Two ASP Related Questions - SSI And Links

I am designing a Web site with about 500 - 600 pages of festivals on it and would like opinions on two ASP subjects. I have designed about 20 pages or so as of now. These are the contact us, FAQ, about us pages and such. I also have a template to go by for each festival's page. But I have two problems I need fixed before I start to replicate.

(1) SSI and styles - There are four sections to each page. I use SSI (ASP virtual version) for the top, bottom and a small section of featured festivals (which is above the bottom) on each page. Between the top and featured festivals is the actual page. This way I can change a link on the top or bottom and it is fixed on all pages.

But, I have an enormous amount of styles listed (all styles on four pages) in the code from each page's fonts. Each page's styles are called something different. For example, the festival page itself has the styles as normal, ".style1." But the styles on the top the links, which once again is an ASP include, would be called ".style1top." I used that approach because .style1 on the festival page and top links could be different.

It works, but I have dirty code and I want the site to be as Google friendly as possible. I have thought about adding all the styles to a page and using it as an ASP include on all pages, but that would have way too many styles each page and be even dirtier. What is the best practice for this? Code:

View Replies View Related

Database Related Problem

I have a database related problem:

Syntax error (missing operator) in query expression ''087,'1075654'

This is a mobile number I entered in a form. 087 is the cusMobilePrefix,
1075654 is the cusMobileNumber

why is there a double quotation mark at the beginning of the number and none at the end?
I dont get it. If i leave the ' in i get a data type error and if i leave them out i get the above error. Below is my ASP file: Code:

View Replies View Related

Strange OS Related Asp Problem

When adding i am checking if that name already exists in the DB and if so i am poping up the message that name already existing.

It is working perfectly in my win2000prof and i have tested in both in my localhost and ftp servers and in both places it is working as i ahve expected.

But when the same application is opened in winxp i have a strange problem coming. When i add a new list , then it checks for the name and what happens is every time i add a new one and even if there is no matching record or matching name avialable for that record, javascript popups saying "Favourite List Name Already Exists" and the strangest part is the insert part also working. That is both if and else part are working together. I am getting this problem only in XP. Code:

View Replies View Related

Date Related ASP Question

Do you think it's posible to DISABLE a checkbox and the value associated with it, based on the DATE apearing in one of the columns in my database? Example,

I will loop through a list of series of products from my database, and I will put an automatic checkbox infront of any row in my form. I want ASP to automaticly disable the checkbox (can't be clicked on) if the date associated with it is older than 3 years.

View Replies View Related

Problem Related To ASP Inc File

I have a page(.inc file) that contains connection to db; how can I make this page inaccessible to public.

View Replies View Related

Querystring Related To Forum

while using <form method=GET> whats the max length we can send in the input fields?
i heard that max querystring length is 2048 characters.while using forum with POST method its nearly one lakh characters.since GET method is treated as querystring, does it restricts the huge data?

View Replies View Related

Updating Related Tables Via Webform

I have a MS Access database composed of a few related tables. I'm trying to link this with a website so that new data may be entered remotely via the website. I am using MS Frontpage, which has a simple wizard for this, but the wizard does not allow for updating multiple tables from the one web form. I have started learning ASP and VB, but all the books don't really discuss adding records to several related tables at one go. How do I do this?

Conceptually, I understand that you can't have a new record in the child table without a corresponding record in the parent record. It there a way of submitting several forms to the same record by 'indicating' which parent record each field is linked to? Is there a simple scripting code ? Any help or suggestion will be greatly appreciated, or just point me to where I might find the information I need?

View Replies View Related

Automatic Time Related Function

What i'm looking for is an asp function which automatically runs every day at e.g. 12:00 AM and then updates a database. So no user or external event is involved to trigger the function. It operates stand alone. Hope there are some code examples available.

View Replies View Related







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