Disabling A Text Box/list Box After A Selectio Has Been Made.

I have a .asp page that has a text box and a list box. The user enters criteria into ONE of the boxes.

What i would like is that when the user makes a selection from the list box (sql populated) the text box is disabled, and when a user enters a character into the text box, the list box is disabled (not including spaces)

This is a bit cosmetic, but what is the best way of doing this? Some client side code presumably, Javascript? Code:

View Replies


ADVERTISEMENT

Disabling Text Fields

i have a form that has a multiple fields,when a user chooses an option from option seleect then it should disable some part of the form and i have no idea how to do that.

View Replies View Related

Disabling Edits To A Text Field

I am using text fields to display data from a table in access in an ASP file, i am using text fields because if i used anything else, like labels the info was not updated to the table correctly.

Does anyone know how to input of edits to a text field so that the user can view the data in it but cannot remove or change it?

View Replies View Related

Made Some Samples

I am building an add user website.I have several asp scripts in this
website such as, query for username,create user, etc. Ideally I would like
to have users logon to the website,and have these scripts execute with
their individual security context Can anyone point me in the right
direction, mabe some samples somewhere

View Replies View Related

Pop Up Text Area After Click Yes From Drop Down List

I want to write a asp script, basically, that has drop down box in the form, if user select Yes, on the same page, a hidden textarea will show up, if user select No,
then nothing happen.

so far, my code is unsuccessful, in addition, I also got syntax error on the response.write line anyone has idea. Code:

View Replies View Related

Select Where No Reference Is Made

is there an sql command that allows me to select all rows where a specific field isn't called by other rows? To be more specific: I have this table for my categories. I want to be able to choose all the categories that don't have subcategories. The fields are

CaName
CaId
CaParent

So a category has a parent, so caParent = the CaId of it's parent. So is there a way to call all the categories that don't have children categories in my sql?

View Replies View Related

Database Calls Made

Is there a way I can see how many database calls were made from my script to the db server to check how well my SQL queries are formed?

I get the time taken to execute the queries, but in that time taken, I want to know how many calls were made to the DB server. Is it possible?

View Replies View Related

Veiw Report Made In Access 2k

How do I retrieve a report from Access 2k from ASP?

View Replies View Related

Extract Dictionary Cookies Made By VBScript?

From client-side javascript, how can one extract dictionary cookies made by VBScript?

View Replies View Related

HTTP Header Modifications Must Be Made Before Writing Page Content

am using pws on win 98 and when i try to excute any asp page i got the following error

Response object error 'ASP 0156 : 80004005' The HTTP headers are already written to the client
browser. Any HTTP header modifications must be made before writing page content.

View Replies View Related

Disabling

I have span and Textarea fields. How can I disable and gray out those dynamically using DHTML. when I called disabled = true it makes it readonly and does not gry out.

View Replies View Related

Disabling Other Page

I have a login form. when user logs in, user is transferring randomly an Exam page.
these pages're(ExamA.asp and ExamB.asp)

Question is :
if user transferred to ExamA.asp how can i disable to enter ExamB.asp ?
(there is no link in ExamA.asp to ExamB.asp. only changing url in the address bar.)

here is my login from code :

strSQL="Select Exam from Exam"
set Exam=conn.execute(strSQL)
Stat=cint(Exam("Exam"))

if Stat=1 then

sqlUp="update Exam set Exam=2"
conn.execute(sqlUp)
response.redirect ("ExamB.asp")

elseif Stat=2 then

sqlUp1="update Exam set Exam=1"
conn.execute(sqlUp1)
response.redirect ("ExamA.asp")
end if

View Replies View Related

Disabling Links

I would like to know how to disable a link when a certain value is false. I have the following link.

<br><a href="OrderProgress.asp" class="blueLink">Check Order
Progress</a><br><br>

I wish to disable the link if blnValidCustomer = false and enable it otherwise.

View Replies View Related

Disabling The Image On A Href In Asp

I have the following href in my asp code. I would like to disable the image
so the user cant click on the javascript for this image.

....
<input type=text name=thedate size=10><a
href=""javascript:show_calendar('dataform.Line" & lineno &
"6',null,null,'YYYY/MM/DD');"" onmouseover=""window.status='Date
Picker';return true;"" onmouseout=""window.status='';return true;""><img
src='../Production/show-calendar.gif' width='24' height='22' border='0'></a>

Is this possible?

View Replies View Related

Disabling A Submit Button

I have pulled some date from a table in access and displayed it on a form in a table. If there was no data in the Table, Hence the Html table displaying it was empty is there a way of disabling the submit button that submits that data to avoid a conflict?

View Replies View Related

Disabling Session State

I was thinking about disabling session state on some of my pages by doing this:
<% @ EnableSessionState = False %>

My question is if I disable the session state will the page still reset the session timeout (eg. back to 20min. default) when that page is loaded? I need it to reset the session timeout.

View Replies View Related

Disabling HTML Code

I have creating a simple ASP guestbook using an Access Database, is there any of disabling HTML code so that visitors cant post HTML in the guestbook entries?

View Replies View Related

Disabling Referer HTTP Header In IE / IIS 5 / ASP

Is there any way to prevent an IE 6 browser from sending up the REFERER HTTP header? (Either as an IIS Server setting, change to asp files, or even a setting in the IE browser).

This is wasting WAN bandwidth in our Intranet application - we have fairly low network bandwidth. The referer is inevitably somewhere else in our own ASP application, and is usually has a really nasty long QString attached ... (and no, really dont want to run stats about how users navigate our app)..

View Replies View Related

Disabling ASPBufferingLimit For File Downloads

I have a website that (like many) allows users to download large files. Some are up to several hundred MB in size. The problem is that since switching to IIS 6.0, the size of the file is limited by the ASPBufferingLimit, and it's size seems to be limited to only 4294967295 bytes.

That's pretty big but it's not quite big enough and I need to disable it. Some people have recommended setting it to -1 via:

c:
cd C:inetpubadminscripts
cscript adsutil.vbs set /w3svc/1/aspbufferinglimit -1

but the -1 doesn't really "take"...IIS keeps it at 4294967295.

Setting it to 0 does "take", but then IIS returns nothing (0 bytes).

How do I disable or workaround this security feature in IIS which is not allowing people to download large files?

View Replies View Related

Disabling Explorer's Back Button

How can I prevent user pressing the explorer's back button?

View Replies View Related

Disabling Default IE Window Buttons

I have a window that pops up from an asp page... and stays open for 5 seconds
then closes... is there a way to not allow the user to close this window manually before the 5 seconds.. ? Code:

View Replies View Related

Disabling Open/save Dialog In Word

In my application I am using Word to hold data out of a MS SQL Server 2000 database. On the clients PC's I am getting a open/save pop up dialog for opening MS- Word. How can I disable this pop- up and load Word without having this dialog? The clients pc are Windows XP/SP2 machines.

View Replies View Related

How Can I List All The Email Address From Hotmal Contact List?

How can i list out all the email address into my website from the hotmail caontact list? i am successful log in into the yahoo contact list by using serverxmlhttp and list out all the email address from the page source, but i could not access to hotmail by using the serverxmlhttp. Is any other methos can list out the email address from hotmail contact list?

View Replies View Related

Controlling Text In A Text Area Or Text

I have this problem in controlling a the text in a Text Area. How can I do
that for example the field size is 200, when it reaches 50 it automatically
goes to the next line. Bcoz im having problem when viewing it in my report,
it continuesly views in a strieght line and im having problem in printing.

View Replies View Related

International Text And FSO Created Text Files

When using ASP's FileSystemObject to create text files, I am unable to get user submitted text (in Hebrew) to save as anything other than "?????". The text file is being saved in Unicode and setting the CodePage in ASP proved unsuccessful. Strangely, hard coded Hebrew text in an ASP variable does add to the text file correctly.

Any ideas of why this happens and how to get it to work correctly?

View Replies View Related

Text Area Limited Text

I have a text area which I want to limit the number of words or number of text entered into it. Is this possible?

<textarea name="textarea" cols="35" rows="5"></textarea>

In the text area above, can I say limit the person filling in the text area to say 100 characters?

View Replies View Related

Text Box In Form Cutting Text

I have a form on asp page that pulls info from a DB when the page loads.
It them puts the info into text boxes on the page that are editable by the
user.

The only problem I have is say in the description text box it should
read "HP Laserjet 5Si" , it always cuts the text off where it just says "HP"
.. It does this on all the text boxes? I can't seem to figure out why it
is doing it. Here is the sample code:

With quotes around <%= vdesc%>

<td><input name="desc" type="text" id="desc" size="45" value="<%=
vdesc%>"></td>

And I tried it without.

View Replies View Related

Regular Expression Of Text OR Text OR Etc...

I have text in a field coming from a database. The text has various
forms such as:

text1
text1 or text2
text1 or text2 or text3
text1; or text2
text1; or text2; or text3
etc...

how can I parse this with a reg ex? I tried this:

(.+);? or

but it only captures 1 submatch (text1) and only if theres an "or"
after it

I'd like to get 1 submatch for each piece of text separated by the
"or", just the text itself if there is no or.

Anyone know how to do it?

View Replies View Related

Controlling Text In A Text Area

I have this problem in controlling a text in a Text Area. How can I do that, for example the field size is 200, when it reaches 50 it automatically goes to the next line. Because im having problem when viewing text in my report, it continuesly views in a straight line. Can you give me ASP code for that.

View Replies View Related

Hover Over Text To Bring Up Text

I have text - ARI Promise, when I hover over the text I would like a box to appear with the Promise information. It would be several paragraphs that need to be formatted with paragraph and bullets. Is this possible to do? If so how would I go about it?

View Replies View Related

Display Text In Text Box

I have a search page, after search returns value I want to display fields in text box instead of table.

View Replies View Related

List Box

I have a form with 3 list boxes, in the second list box i have created a select all button to enable users to select all items.
but when i click select all button an error message is returned stating that "Object doesn't support this propery or method"
here is my code.

<script language=javascript>
function selectall(sel) {
var len = sel.length;
for ( var i=0; i<len; i++)
{
sel.options[i].selected = true;
}
}
</script>

<input type="button" name="selectall" value"select All" onclick="javascript:selectall(listboxname)")

View Replies View Related

List Box

i have a list box with allot of values in it. How do i submit the item that is selected in the list box? ive tried a few but i cant get it working. Here is what i tried:
Document.form.search.value = document.form.list1.value

View Replies View Related







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