Adding Values To A Dynamic Jump Menu

I've writen the code below which displays a drop down select menu and can be displayed by writing the variable 'sjobs'. The code works fine as it is and the menu is populated with the requested info from the database ok. The problem I'm having is adding url links to the menu values. Code:

View Replies


ADVERTISEMENT

Set <selected> Of Jump Menu

how would I go about setting the <selected> attribute of a jump menu to one representing the current page? background info: i have a template-based site employing a jump menu as the navigation, but for usability's sake it needs to not reset back to the first option in the menu, but rather hang on to the current page as the 'selected' option. example of similar HTML showing the hard-coded 'selected' option I need to change: Code:

<form name="form">
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<option value="page1.asp" selected>page1</option>
<option value="page2.asp">page2</option>
</select>
<input type="button" name="Button1" value="Go" onClick="MM_jumpMenuGo('menu1','parent',0)">
</form>

View Replies View Related

Jump Menu Difficulties

I put jump menu with a dynamic value of username field in my ASP JS... i want to display the field information every time i click or select the certain username.

View Replies View Related

Select Jump Menu With No Javascripts

Can I create a select jump menu with using javascript to enable users with scripting turned on to use a page?

View Replies View Related

Adding CSS Style To An ASP 2.0 Menu

how to add a css style to a menu in asp 2.0?

View Replies View Related

Adding A New Entry To A List Menu Based On A Database

Let's say I have a dynamic list/menu, which gets its values from a
database table, for example a list of contact people where the value is
an ID number and the label is the name. However, if the value the user
wants is not in the list I would like to place a hyperlink which
will...

(1) open a small window, with an ASP form to allow the user to add a
new entry

(2) save the entry to the database

(3) add that value to the list/menu in the parent window and make it
the selected option

(4) close the small window and return to the original window.

I can handle the code for 1,2 and 4, but 3 is what I'm not sure about.
I don't like the idea of forcing the user to leave the current screen,
go to some other form, add the entry they need to the lookup table,
then come back; this seems like a logical approach, but just wondering
how to make it work.

This seems like a common enough situation; anyone have any code samples
or suggestions about how to do this?

View Replies View Related

Asp Dynamic Menu

I have been searching for tutorials everywhere on how I could make a menu that is multi levels but that can be updated dynamically through asp...so basically when I add a link in the database it will update the menu...now I know how to pretty much pull links from the database for a basic menu...but lets say there is a link called about us and under about us there is more options to choose from.

How would i code this so the menu would know which ones were parents and which ones where childs? And does anyone know of a good tutorial, or of an example. and basically I want this because I would like to create a content manager...but I don't understand how the menu would work when pulling data from a database.

View Replies View Related

Dynamic Menu

if you guys have managed to do a asp-function that prints out
a full menu using SOThink menu builder.

the example http://www.sothink.com/product/dhtm...aspdb/aspdb.php
is very unclear to me atm.....

things as stm_bp("p0",[0,4,0,0,3,1,0,0,100,"",-2...... ) and
stm_bpx("p1","p0",[1,4,0,-1,.....)

now how to know what numbers shall be printed out?I would be thankful if anyone showed a proper parent-child database example
that works.

View Replies View Related

Menu Dynamic

I have a serious question here. Two websites: www.morepoweracing.com and neil.morepowerracing.com.

I am trying to build a menu system which is dynamic, and the live site, www.morepoweracing.com is what is going on right now. The test site is neil.morepowerracing.com and I am trying to make my menu dynamic so it feeds off the sql database. Secondly, I need to have a .5 second delay just like windows XP, becuase when your mouse is scrolling over from one button to the other, it tends to dissappear the menu you are looking at. Also, all severs are in house, so if you need me to copy the code down

View Replies View Related

Dynamic Menu

How could I make a menu have many sub-menus, note that the menu and sub-menus items come from database.

Ex: a menu have items like:

Products | Auctions | Orders

the menu items above all come from a table in a DataBase,and if On Mouse Over or On Click events happens for any item,the specific submenu for this item appear which is
also come from database.Do anyone know how could i do this?

View Replies View Related

CSS Dynamic Menu

I am building up a web application which should have a two level dynamic (ASP) css menu. My problem is that I do not know how I could make id="active" to show on pages that are on certain folder. I should be able to do this because I have to use following code on sub menu: Code:

<% if Request.ServerVariables("URL") = "/yourpage.asp" then
response.write "id=""active""
end if %>

View Replies View Related

Dynamic Drop Down Menu

I want to create two drop down menu. one is for the Main Category and second is for Sub Category. Both value should be come from the database.

when i choose the Main cat. say business then it should load sub cat of business in second drop down menu but is should be done without refreshing the page.

View Replies View Related

Dynamic Menu Build

I need to get my name value "MenuSubCat" to act as athird level menu. This is a dynamic menu and it only does Code:

View Replies View Related

Dynamic List Menu

I could not solve for the past 3 days. I am try to build a website using ASP and VBscript. I am still a newbie to it.Let's get to the problem. What I am trying to do is to have multiple dropdown list. Each list menu ( except the 1st) dependes on the choice made in the one above.

I am using dreamweaver, it did generate a the form and everything and I was able to filter the results. The problem is that I don't know HOW TO REFRESH THE LIST. In other words, I can't figure out how to change the list menu options when the choices above change. I have tried to find some tutorial about it, but all I found was with JavaScript and I don't wanna mix VBS with JS.

View Replies View Related

Dynamic List Menu

Does anyone know how to make it so that when someone clicks on certain menu item on one list it automatically updates a second list with values.For example,if i click the Make of a car in one list, i want the second list to automatically update with the relative Models.

I've seen it done on various sites such as www.autotrader.co.uk but can't think how its done. So far i'm populating the first list dynamically with a database but don't know what the next step is to get the second one to do it.

View Replies View Related

Dynamic Menu/List

I currently have an "Add customer" page on my site. On this page you can choose multiple "brands" from a list box. (These brands are dynamic and come from a seperate table in my db). These brands are split up into an array and each added as a row to a database table.

Now I am working on a "Modify customer" page. It has all the same fields as my Add page except that the fields are already filled in with information from the db. I can't seem to figure out how to have my list box have multiple items selected when you first come to the page.

View Replies View Related

Dynamic Menu Best Easy Methods

The database is used for referencing filename, there located folder, id, order shown, but also there are some fields say "location_1" up to "location_4" which have a 0 , 1 or 2 in them. 0 means that file not needed for that section. 1 means needed for that section, and 2 means mandantory (must be seen before exit).

firstly selecting a location from a html radio box, drop down menu (not decided yet) will return whats needed so not showing pages what aint needed and wasting time.

Here it is though in order on the left i wish it to build a menu, but more advanced than plain links would be good. drop down like windows explorer etc. Code:

View Replies View Related

Dynamic Dropdown Menu Order

I have a dynamic drop down menu created from an Access 97 database. The munu contains numbered indexes. Is there a way to have Index 10 displayed after Index 9 instead of after Index 1.

View Replies View Related

Dynamic Dependent Dropdown Menu

i have three dependent dropdown list.when select city in first box then 2nd list will show all company for selected city. 3rd will show all jobs of co. any suggestion?

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

Change Dropdown Menu Values

I have 2 drop down menus with data populated dynamically from a database.

Category

Subcategory

If i select an appropriate category the subcategory should change instantly to show the subcategories relating to the selected category. But i can't use a form submit, because before the forms are other textboxes with other values that i don't want to wipe on a page refresh.

I need to somehow preload the categories and their related subcategories. I've been trawling through examples, most are harcoded combobox values which won't work for me.

View Replies View Related

Adding Up Values

i have a page that enters numbers stored in different values e.g monday tuesday wednesday thursday friday into a database. is it possible in asp to add those values up and store the added up value in a seperate field in the database
bascially
total =monday+tuesday+wednesday+thursday+friday
How would i do that in asp.

View Replies View Related

Adding Values Together

i am trying to add to values togher but each time i try it dont work.

for example

when i try to add 7 and 3 i get 73 and not i want what is 10

i am using the below code

money=RS2("bank")
RS2("bank")=money + pay
response.Write("money="&rs2("bank"))

The DB code is fine as it is recording and pulling the data of te Database but i cant add them up only togher.

View Replies View Related

Dynamic Linking Of Menu/lists/radio Buttons?

Basically, I have 2 separate drop-down lists, we'll call them List1 and List2.

Say List1 contains:

Fruits
Months
Sex

Now, I would like all 2 lists to be on the same page. A user would proceed to select something from List1, say "Fruits". Upon clicking on the drop down list for List2, the list items should automatically be updated to predefined items, say "Apples", "Oranges" and "Pears".

if the user changes his mind and goes back to select "Months" from List1, List2 should immediately display stuff pertaining to List1 items, say "January", "February", "March" etc etc....

View Replies View Related

Re-Selecting Values In Multi-select Menu

I use a multi-select menu in an ASP so the user can pick several values.

<select multiple name="lbErrorType" size="12">

However, after I have saved the records to the DB, and the user comes back
to edit a prior record, I re-populate the multiple select box and do a
"<option selected>" for each record that is saved to the DB.

<option selected>

But only the last value is selected !?!?

How do I get the select menu to select ALL the appropriate values ?

View Replies View Related

Adding Checkbox Values

I am trying to create a 'build a quote' page in which a user can checkoff checkboxes and have the total add up once the submit button is clicked. An example of the code I am using is

<form action="add.asp" method="POST">
option 1 value is 5<input name=""check"" type="checkbox" value="5"><br>
option 2 value is 9<input name=""check"" type="checkbox" value="9"><br>
option 3 value is 1<input name=""check"" type="checkbox" value="1"><br>
option 4 value is 2<input name=""check"" type="checkbox" value="2"><BR><BR>
<input name=""Submit"" type="submit"> <input type="reset" value="Reset">
</form>
<hr>
<%
arrB = Request.Form("check")
arrA = split(Request.Form("check"), ", ")
If arrB<>"" then
For each x in arrA
total = x
next
response.write(total)
end if
%>

View Replies View Related

Adding Values In A Column

I was hoping that someone could help me in getting the sum of a column(item_amount). The table is populated through a repeating loop with information pulled from a database. Code:

View Replies View Related

Adding Values In A Column

I have searched the forums and can't seem to find out how to do this. I have a set of values in a column in a database, I want to add all those values up then display them.

View Replies View Related

Adding Checkbox Values

I have 2 pages - form.asp and result.asp. in form.asp, i have multiple checkboxes with varying values, like:

<html>
<body>
<form action="result.asp" method="get" name="form">
Name1: <input type="checkbox" name="1" value="5">
Name2: <input type="checkbox" name="12" value="7">
Name3: <input type="checkbox" name="12" value="9">
Name4: <input type="checkbox" name="12" value="11">
<input type="submit" name="submit">
</form>
</html>

I seek to capture these values and add them up in the result.asp page. e.g. if name1 and name3 are selected, i want the total of 14 to be shown up in result.asp page. I need help here for the asp code for the above. Or, may be some advice on how the above can be accomplished.

View Replies View Related

Adding Up Values From A Database

I am trying to add entries in a database together and place the summed value into a text box. Like a total ordered type function for an ecommerce site. I have a field called ArmChairs in my database and based on how many people buy them, I want to know how many I need to have shipped.

I am really struggling with this last bit and would be really appreciative if someone has some code examples.

View Replies View Related

Adding Values From Records

I want to add intQuantity of all records that have the same prodID. I have tried all sort of variations but I don't seem to get it. I would imagine that it must be simple, that's why I can't get it.

SELECT SUM ( intQuantity) AS ItemTotal
FROM tblOrders
WHERE prodID = ? no clue

Or can I do that in ASP? doing something like (my example doen't work)

<%= (rsOrders("intQuantity") + rsOrders("intQuantity")) %>

in the mean time I'll be looking around for an answer to my lack of know how.

View Replies View Related

Adding Index Number To A Dynamic Array

I've probably done this before, but for the life of me I can't remember how
I did it. I need to move values from a DB table into an array to be used
for other queries. The number of records will vary, so I need to make the
array dynamic. Can someone remind me how I can increment the index when I
write a new record? Code:

View Replies View Related

Adding Values From A Submitted Form

I am trying to total the value of some form fields I am referecing the form
field with an inner loop, I am having a little trouble because the amount of
fields returned is always different, how can I roll-up the total of the form
fields (request.form("subtotal_"& i)) to get one final figure? Code:

View Replies View Related







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