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


ADVERTISEMENT

Extend Image Selector To Also Display Different Href?

Could someone help extend this ChangeImage function to also display a different hyperlink underneath the newly selected image?

<script language="javascript">
<!--

/*Combo Box Image Selector:
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free JavaScript here!
*/

function showimage()

{
if (!document.images)
return
document.images.pictures.src=
document.username.u_BrokerID.options[document.username.u_BrokerID.selectedIn
dex].value
}
//-->
</script>

<form name="username" method=post action="join_step4.asp" onSubmit="return
CheckForm();">
<SELECT NAME='u_BrokerID' size='1' onChange='showimage()'><OPTION
VALUE='0'>--Select a Broker--</OPTION><option
value="/catamaranco/images/brokers/john_2.jpg">John Anderson</option><option
value="http://www.catamaranco.com/images/brokers/staley_2.jpg">Staley
Weidman </option>
<input type=submit value=submit>
</form>

<br><br>

<a href="Site1.asp">Change this url depending on the value of the image
selected in the dropdown?</a>

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 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 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 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 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

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 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 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

Href In Asp

Have you ever been on ebay-You know when you are checking a persons feedback history, you see a href link to go and see that particular item.

I would like to do the same. If i have a table which i populate with information, if the user clicks on view, i would like to go and show that particular item on another page. Ebay has one unique key (item number), unfortunatley i have a composite key.

How can i do this by adding a href in an asp table and also by having the ability to go directly to the full information about that specific item?

I have done something similar in vb but i used a mshflexgrid but i don't think thats a possibility in asp.

View Replies View Related

If Then With HREF?

I have a master table of records from a recordset on which thereis a link to a detail page as follows: Code:

<td width="10%" align="left" class="langdetail"><a href="Advanced_Search_detail_template1.asp?<%= Server.HTMLEncode(MM_keepBoth) & MM_joinChar(MM_keepBoth) & "TeacherID=" & rsViewMusic.Fields.Item("TeacherID").Value %>"><%=(rsViewMusic.Fields.Item("LastName").Value)%></a> </td>

Is it possible to have to include an if then statement to have 2 different detail pages according to an access level (a field in the recordset)?

View Replies View Related

HREF

I saw an url like this

<a
href="{nocache:426d6de96f848e23f89ef8d2a557145f#0}&p=http://www.isbuluyorum.
com>CLICK</a>

What is the purpose of using href="{nocache:1321sdsa . Does anyone have idea about it ?

View Replies View Related

A Href

Can anyone tell me the proper syntax for this statement:

Response.Write "<a href=""Showevent.asp?eventid=<%= objrs.Fields("eventdate").Value %>""">(objRS("eventcaption"))</a>

View Replies View Related

Href (link)

I would like to have a link that when clicked, sends info to an ASP page to process, but does not submit the entire page. This way, the user will
click on a link and will not be taken to another page, but precessing will occur.
This is mainly for a 'Rating' Application.
Amazon.com does this and I want to know how they do it. Here is the link to the amazon page (you may need to be logged in)
http://www.amazon.com/exec/obidos/t...5480771-6490552.

View Replies View Related

Base Href

I'm using W2k Pro, ASP 3, IIS 5 & DWMX 6.1 and code in VBSCRIPT
I currently use the <BASE href=XXXX> in all my pages and just read
that this tag is no longer supported so will soon vanish
I have a couple of sites that I'm working on and to make all my links
work right etc I need to use the base href tag

http://localhost/site1/
http://localhost/site2/
http://localhost/site3/

where online the base href would be

http://www.site1.com/
http://www.site2.com/
http://www.site3.com/

all my links are like <img src=images/mylogo.gif> or <a
src=info/info.asp>Info</a>

Now my problem is how else would I design my sites if I cant use the
Base href tag so the site would work both on LOCAL & REMOTE servers as
needed in the above paths?I'm sure other people develop on a WIN 2k PRO system where you canonly have ONE site (c:inetputwwwrooot) Which was fine when I only
had one site... but when I needed a second I had to change my first to
use the Base href so I could check the sites out locally (offline)
before uploading them to a live server.

View Replies View Related

Href Problem

when i click the a link i want to see a thing which is like save as target
...

it can be a word doc or xls or whatever. i want to make it dowloadable when
a user click a link.. Code:

View Replies View Related

Putting A # In A Href With The ?

If you have a href such as this,

href="somepage.asp?home=alpha&street=beta, how would you include a reference to a bookmark on that page, such as <li id="bookmark">Some List Item</li>

View Replies View Related

Using If Then Statements In Href Tag

Is it possible to use If Then statements in an a href tag? What I am trying to do is I am using a server side include page of navigation inside of a content management system. I have limitations on what I can manipulate and change. So just using style sheets won't do me the trick. I want to have a navigation link change a different color when you are on that section. I have the menu expanding also using if then statements. When a variable is passed somewhere else on the page as true, the menu expands. I figured I could use this in the same way to make the link change colors. I want to do something like:

<A href="#" <% If Variable_name then%> id="link <% end if %>>Link Here </a>

Is that possible? I know that i can do an If then statement and have 2 different links, one with the id and one without, but I wanted to see if I could simplify it at all. I'm not the best with ASP so there might even be better ways then that...I was just using from the little that I knew.

View Replies View Related

Using Variable Name In Href

How can i use the variable name instead of a hardcoded value when writing a hyperlink.

strBody = strBody & "<a href="default.htnk">Login</a>"

I would like to use a variable name instead of directly writing default.html like below

strPageName = "default.html"

strBody = strBody & "<a href="<%=strPageName%>">Login</a>"

how this can be done.

View Replies View Related

Href + Outlook

Is it possible to create a link to open outlook (Client side) to open a particular folder
here is the code i am trying to use unsuccessfully :

<a href="outlook://Public%20Folders/All%20Public%20Folders/P/W/C/Conf
%20Room/~S%20C%20R">Conference Room 1</a>

Basically what i want to happen is that when a user clicks on the web link that it opens the meeting room which is in a public folder in outlook application (not the web interface outlook.

View Replies View Related

Href Statement

My href statement as follows isn't working and in fact prohibits the rest of the asp on the page from working. Code:

View Replies View Related

Storing Href In Cookie

I am new to web design and ASP, I am developing a site which has a logon script, what I want to do is return a user to the location they were at after login. Some of the pages will have query-string information in the address bar so need capture that as well.

<script language="JavaScript">
x = window.location.href
document.cookie=x
</script>

Appears to do what I want as I can pick up the href out of the cookie after login and return user to page, prob is I don't seem to be able to include it in my server side scripting which is doing the login it falls over at the script tag.....

View Replies View Related

Javascript Href Link

I am using Javascript with ASP and am having a problem with a javascript link in that it does not function when clicked. The page is generated correctly without any visible or runtime errors.

A bit of background as to what I'm trying to achieve: i am dynamically creating multiple forms which store details of a products into hidden fields, the information is retrieved from a database recordset. Each product is created in a unique form, this is achieved using a counter variable. I am trying to use javascript to submit the current form - i.e. a hyperlink - which unfortunately doesn't have any effect when clicked. I am thinking I might need to refer to the form differently but am unsure how to.

Below is a sniplet of the source code ....

View Replies View Related

Document.location.href

I want to redirect to other page using document.location.href on Button click and pass ID to that page e.g;

<input type="submit" value="Submit" ONCLICK="document.location.href='mergestatus.asp?projectid= <%=selRs("projectid")%>'">

Please help.I am not able to pass projectid to 'mergestatus.asp'

View Replies View Related

A Href Mailto From String

I have an asp page that is pulling data from a access database. The data will always be a complete email address. I am trying to make the email address on the page a simple hyperlink that opens the default email program upon click. I cannot make it work for the life of me!

<TD align=left><FONT face=Gautami size=2><%=addrRS.Fields("E_Mail")%></font></TD>

View Replies View Related

How To Execute OnClick With An <a Href

I have a session variable who change the selected language (French or English) and i try to change this variable when someone click on my anchor. Code:

View Replies View Related







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