Selecting Tables From A Drop Down Box With No Fixed Position On Screen?

i am designing a search engine, you select the search options from five choices in a drop down box, each option reveals a table, but the tables have fixed positions on the html page.

i need it so that if only one option is picked to search and it is the last option on the drop down list, that it will appear at the top of the page? i dont have a clue what type of function to write to do this or what techniques will be involved!

View Replies


ADVERTISEMENT

Selecting Tables From A Drop Down Box

i have a drop down box that selects tables on my asp page, but using the hidden attribute, they have fixed positions on the screen. this a search engine and i need it so that if they only search two options that them two options will be at the top of the screen?

View Replies View Related

Selecting Fixed Number Of Records From Database

I have an articles_tbl . How do i create a select statement which only brings back the latest 3 records added to this table (the database has a field called 'date_added') so the information of when they were added is present.

I was just wondering how to bring back only THREE records and showing them, instead of bringing back the entire table content and then showing three out of them..

View Replies View Related

Selecting 2 Access Tables

Select data from 2 tables at the same time but there is no relationship between them. This is what i want but i dont know how to join them.Here is what i was trying.Code:

sqlstr = "SELECT * FROM persinfo,positions WHERE personid.personid = '"& session("personid") &"'"
rs.Open sqlstr,conn,0,2

sqlstr1 = "SELECT * FROM positions WHERE jobidid = '"& session("jobid") &"'"
rs.Open sqlstr1,conn,0,2

View Replies View Related

Selecting Drop Down Options

I am trying to set up a component that will allow events that are date sensitive. From this date to that date. What I am trying to do is use drop down menus for selecting the dates, and I am having a hard time finding out how to build these drop downs so when someone is editing an event, the existing dates are pre-selected in the drop downs. But I need to seperate year, month and day for both and then have it change the value of the correct option to selected.What is the easiest way to do this?

View Replies View Related

Selecting Multiple Tables Using SELECT Statment Problem

I am Trying to use the SQL SELECT Statment to open records from multiple tables into one recordset.

I know the basic syntax of the Select statment but I wanted to know if its possible to recive the table name from the feild or the record that I am readinf from the recordset in any given moment.

To make things more clear, my example:

-Open a connection

SQL = "SELECT * FROM TABLE1,TABLE2 WHERE TABLE1.UserID=" & uid & " And TABLE2.UserID=" & uid

rs.open sql,conn,3,3

while not rs.EOF

-read from record

rs.movenext
wend
rs.close
conn.close

now, in the part that I read from the record, is their any way I can know if that record is from table1 or table2?

View Replies View Related

Drop Tables

I'd like to know if there exists a query to erase/drop tables from an access table (on a asp script) older than X creation date.

View Replies View Related

Filter 2nd Drop Down List Value From DIFFERENT Tables

I have coded 2 drop down lists. For ur info, currently my 2nd drop down list's content is being retrieved from one single table in database only. What if I would like to make the content of my 2nd drop down list to be populated with data from 2 different tables?

What i mean here is that, the selected value in 1st drop down list will determine data from which table to be loaded into the 2nd drop down list. Earlier I'ved coded my SQL statement as:

SQL = "SELECT x.language_ID, x.language_name, y.msg_category " &_
"FROM Language x INNER JOIN outMessageENContent y " &_
"ON x.language_ID = y.language_ID"

where data for 1st drop down list is loaded from table x and data for 2nd drop down list is loaded from table y.

My 1st drop down list only has 2 values., which are 'English' and 'Chinese'.Now I would like to make it as, if user select 'English', then my 2nd drop down list will refer to that particular 'English' table, while selecting 'Chinese' will allow 'Chinese' table's data to be loaded into my 2nd drop down list.

So what shall I change in order to filter the 2nd drop down list's content according to the selection from 1st drop down list? Shall I modify my SQL statements?

View Replies View Related

Drop Tables By Creation Date

if there exists a query to erase/drop tables from an access table (on a asp script) older than X creation date.

View Replies View Related

How To Populate "chapter" Table Fieldname (MSAccess 2000) By Selecting Book From Drop

I have 2 dropdowns (or listboxes). 1 is for list of books called "book_title". I use a different recordType for value. Code:

View Replies View Related

Show Fixed Decimals

How do I show a double with 2 decimal places in vbscript? Also is there a way to show a string that is holding a number with two decimal places or does it need to be converted to doulbe first and then converted back to string after manipulating the double?

View Replies View Related

Create Fixed Section

I am a C#-Coder and now I have the duty to rewrite a ASP-Website and add some functionality. The problem is that I have never seen ASP before and I don't have the time to learn everything necessary to complete my work.

It's a very simple problem and would be really great if someone could tell me what to do or show me a small code-example. I think "learning by reading code" is the best way to get new information

I have an ASP-Website with a very long list (out of a SQL-Query). If I scroll down the page I can't see the list-header any more <- THATs my problem. What I need is an ASP-Website with a fixed section that can't be moved and below a common, scrollable website.
The header of my SQL-Query should be in this fixed section and the datasets should be in the scrollable section.

View Replies View Related

Display Fixed Decimal Digits

I have variable, say "total". It can be an integer or floating number.

No matter what value it stores (5 or 5.1 or 5.24), when I display it, is
there a way I can make it display it with fixed 2 decimal digits, like 5.00?

View Replies View Related

Array Is Fixed Or Temporarily Locked

I posted a similar problem a while ago but never found a solution. I am passing an integer value (called NoElements)from a html form (which gets created using javascript) to an asp page. The value of NoElements is used to create an asp array of that size. At first I was confronted with the following error:

Expected integer constant

I then was advised to initialise the array (to say 100) and then do a ReDim Preserve. I now get this error message:

This array is fixed or temporarily locked? What should (or at least I thought) be a simple porcedure is making my life a nightmare.

View Replies View Related

Fixed! Form Values Being Cut Off - Strange!

i'm getting an instance of a form field value being cut off when input into a MS SQL db. i can't figure out where it's doing it. the field datatype is set to VARCHAR with a size of 100. the data is being cut at 30 characters. here is the form field: Code:

View Replies View Related

ASP Error : This Array Is Fixed Or Temporarily Locked

i got this error when trying to looping through an array

Quote: Microsoft VBScript runtime error '800a000a'

This array is fixed or temporarily locked


Here are my code:

View Replies View Related

Creating Fixed Width Text Files

i know how to create text files using ASP, but is there any way to create fixed width text file using ASP? i need to have the data lined up in the same location at each row.

View Replies View Related

Extract 'days' From Now Till Future Fixed Date

How would one extract the number of (days) from (today) and a (future fixed
date)- eg: February 12, 2003. ....where today will always be Date().

Thus:

02/12/04 - Date(now) = 27 days.

Can anyone help me here?

View Replies View Related

Creating Dynamic Tables In Dreamweaver To Display Tables

I know how to create dynamic tables in dreamweaver to display fields and records in a table of a database, but in my case I need to create a dynamic table that lists all the tables in the database, then to click on the one i want 2 edit the data in there.

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

How Can I Get The 5th Position Of A Field?

I'm querying a table and the column has 6 positions. I need to check if the 5th position is a 2,3,6 or 7. If so I want to set a variable = "Y". Can someone help me out with this?

View Replies View Related

Using Position: Absolute.

I am using position feature for images...although its placing the image on the HTML file using the top left corner of the image. Anybody know how to make it use the center of the image?

<img src="image.gif" style="position: absolute; left: 54; top: 34">

View Replies View Related

Starting Position

I have a access db and I want to pull some info out of it with VBScript. How can I specify a starting record?For example, I want to start at the 15th record and pull everything beyond that out.

View Replies View Related

Cursor In Position

When a page is opened is there a way to set focus of the cursor to a named input. I want the cursor to be in the input box when the page is opened.

View Replies View Related

Letter At Certain Position

After I read in a value from a table i need to read in the last letter of the value and check if it has an "s" as its last letter, so that i can display either ' or 's.

Does anyone know how code to view the last letter of the value or move the variable into javascript so that I can manipulate it from their?

View Replies View Related

Position Within Page....

I've just gone to Google and there's a link saying "add world cup live
scores..."

I clicked on that link and there are a whole lot of boxes containing content
that I can pick up and drag around, changing their relative position on the
screen.

Fantastic - but how do they do this (were can I read up on this?)

View Replies View Related

Getting Select Position

I have been working on this site for the last couple of weeks and i am now in the process of testing and have found a problem.

Basically it is on my jscript function. I have written that if the value is >= 2000 do something else do something else, which is fine with the exception that the value isn't always going to go up in 1000's (sometimes it will be 1-10 others 500-5000 others 1000 - 10000[these values are generated within select tags]).

Basically i am wanting to know is there any way that i can use the select tag to work out the position from within the tag. For example if the position >= 2nd in list do this else do something else.

View Replies View Related

Set A Panel's Position

I have put serveral panel controls within a page, each of them matching to a action defined by buttons, so I want to fix all panels in one place( they already have same size, but different left, top values), how can I do it (in code, if I do it in desgn, is there a way to put the panels in different "layers" so the contained controls will not interupt with each other)?

View Replies View Related

Position Of An Element

I use an array of elements and I want to know the position of a given element in my array
I know the filter function that allows to determine if the element i look for is in the array but this function doesn't allow me to know its position.

View Replies View Related

Occurence And Position

how do i find the occurence and position of a variable in a csv string. e.g. how do i find "hello" in hi,who,where,how,hello,greetings,xmas,etc. The starting position and if it occurs ? I tried using instr but cant seem to get it right.

View Replies View Related

Getting Webpage Position To Work

I am having a prob with getting for example, ASP Free Forums > Programming > etc, to display properly. I can get it to work sort of but need to be able to read in a value and be able to change it before its displayed.

It works on the first page but when going to other pages it doesn't. Also when going back to the original page, topic.asp where it works, from view topic the formatting disapears which is a mystery to me. Here is the code that gets it to work on the topic.asp page:section = Trim(Request("Section")) Code:

View Replies View Related

Getting Index Details (eg #position) From Url

The code below takes the script name of a page (which is always an asp file) and substitutes the asp extension with html and then inserts the file in the <frame> tag.

This code works file for a url such as www.somesite.com/file.asp But if the url includes an index eg www.somesite.com/file.asp#position1 how do I get the #position1 added to the file name that is used in the <frame> tag? Is there a server variable for # info? Code:

View Replies View Related

Vector Position Delete

How can I delete an specific position within a vector?I have a list of e-mails to be sent but there's duplicated values which I'd like to remove.I added a function that locates the duplicates and tells the vector position I can find them, but don't have a clue how to remove them.

View Replies View Related







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