473,405 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

disabling the image on a href in asp

Hi,

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?

thanks,
Will
Jul 19 '05 #1
10 3991
wk6pack wrote:
I would like to disable
the image so the user cant click on the javascript for this image.
...

Is this possible?


No
--
William Tasso - http://WilliamTasso.com
Jul 19 '05 #2
I think you can do it with a client-side script under IE, not sure about NS.
You need to ask in a client-side scripting newsgroup.

If you know that you want the link disabled at the time the ASP is processed
just output IMG tag without the link.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"wk6pack" <wk***@sd61.bc.ca> wrote in message
news:uG**************@TK2MSFTNGP09.phx.gbl...
Hi,

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?

thanks,
Will

Jul 19 '05 #3
On Thu, 9 Oct 2003 15:43:25 -0700, "wk6pack" <wk***@sd61.bc.ca> wrote:
Hi,

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>


Why would you put the image there and then make it not clickable?

Jul 19 '05 #4
<input type=text name=thedate size=10>

<input type=image src='../Production/show-calendar.gif' width='24'
height='22' border='0'
onclick="WHATEVR()" onmouseover="window.status='Date Picker';return true;"
onmouseout="window.status='';return true;" DISABLED>

"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I think you can do it with a client-side script under IE, not sure about NS. You need to ask in a client-side scripting newsgroup.

If you know that you want the link disabled at the time the ASP is processed just output IMG tag without the link.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"wk6pack" <wk***@sd61.bc.ca> wrote in message
news:uG**************@TK2MSFTNGP09.phx.gbl...
Hi,

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?

thanks,
Will


Jul 19 '05 #5
thanks,
Will
"Hannibal" <Do*******@webadstudio.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
<input type=text name=thedate size=10>

<input type=image src='../Production/show-calendar.gif' width='24'
height='22' border='0'
onclick="WHATEVR()" onmouseover="window.status='Date Picker';return true;"
onmouseout="window.status='';return true;" DISABLED>

"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I think you can do it with a client-side script under IE, not sure about

NS.
You need to ask in a client-side scripting newsgroup.

If you know that you want the link disabled at the time the ASP is

processed
just output IMG tag without the link.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"wk6pack" <wk***@sd61.bc.ca> wrote in message
news:uG**************@TK2MSFTNGP09.phx.gbl...
Hi,

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?

thanks,
Will



Jul 19 '05 #6
I would like to enable and disable the image depending on the permissions of
the user in our intranet.
Will
"Dan Brussee" <db******@NOSPAMnc.rr.com> wrote in message
news:p2********************************@4ax.com...
On Thu, 9 Oct 2003 15:43:25 -0700, "wk6pack" <wk***@sd61.bc.ca> wrote:
Hi,

I have the following href in my asp code. I would like to disable the imageso 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>


Why would you put the image there and then make it not clickable?

Jul 19 '05 #7
And how are these permissions defined?

Ray at work

"wk6pack" <wk***@sd61.bc.ca> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
I would like to enable and disable the image depending on the permissions of the user in our intranet.
Will

Jul 19 '05 #8
The more I think about it, I think it is a client side scripting. They are
defined by their location type in a database.
Will
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
And how are these permissions defined?

Ray at work

"wk6pack" <wk***@sd61.bc.ca> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
I would like to enable and disable the image depending on the
permissions of
the user in our intranet.
Will


Jul 19 '05 #9
On Fri, 10 Oct 2003 09:06:59 -0700, "wk6pack" <wk***@sd61.bc.ca>
wrote:
The more I think about it, I think it is a client side scripting. They are
defined by their location type in a database.
Will
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
And how are these permissions defined?

Ray at work

"wk6pack" <wk***@sd61.bc.ca> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
> I would like to enable and disable the image depending on the

permissions
of
> the user in our intranet.


Im thinking it would be unkind to show a calendar image that "looks"
like I can click it and select a date, but nothing happens when I do
click it. Alternatively, in your ASP, you could determine if the user
has the privs to do the operation and just not show the image (or
link) if they do not. Would that work?

Jul 19 '05 #10
I see your point, I never thought about that.
Yes, that would work too. I'll try it.

thanks,
Will

"Dan Brussee" <db******@NOSPAMnc.rr.com> wrote in message
news:5m********************************@4ax.com...
On Fri, 10 Oct 2003 09:06:59 -0700, "wk6pack" <wk***@sd61.bc.ca>
wrote:
The more I think about it, I think it is a client side scripting. They aredefined by their location type in a database.
Will
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
And how are these permissions defined?

Ray at work

"wk6pack" <wk***@sd61.bc.ca> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
> I would like to enable and disable the image depending on the

permissions
of
> the user in our intranet.


Im thinking it would be unkind to show a calendar image that "looks"
like I can click it and select a date, but nothing happens when I do
click it. Alternatively, in your ASP, you could determine if the user
has the privs to do the operation and just not show the image (or
link) if they do not. Would that work?

Jul 19 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Karl Burrows | last post by:
I am working on a Website for a non-profit group and for some reason I have one link that doesn't want to cooperate. All the image links work fine with the onmouseover and onmouseout script except...
3
by: inonzuk | last post by:
Hi everyone, I'm new to javascript and have the following problem: I have two image buttons: 1) <td><a href="http://localhost/gamerules.php" target="mainwindow"><img onMouseOver="return...
18
by: seth.m.green | last post by:
<a href="javascript: void(0);" onclick="window.location.href='/foo.bar?one=false&two=true'">Link</a> works like a charm in Firefox. I get NOTHING in IE. but if I replace the javascript: void(0)...
6
by: abdullah1983 | last post by:
Hi Guys, I need some clarification regarding the problem with safari browser. Please find my code below. I'm setting the image src, mouseover and mouseout using javascript. The mouseover and...
1
by: barq | last post by:
I'm using image in an anchor tag as a submit button. We use document.images.parentElement.removeAttribute('href') in a javascript function to make a image button non-clickable (not-hyperlink)....
1
by: rsteph | last post by:
I've got some product information pages, with images and text, all setup within a table. I'm trying to add a small image in the upper right hand corner of the content div (where all the important...
10
by: cjparis | last post by:
Hello everyone. If anyone can give me a hand I would be gratefull Am doing a site which requires a moving element and have used DHTML to do it. Have a simple Browser detect script to sort IE...
3
by: anthriksh2000 | last post by:
Hi, I want to have a image which has 4 people in it and i wnat that it should have image mapping. and when a particulat person is clicked upon in that image it should open a corresponding person...
2
by: studentofknowledge | last post by:
For some unknown reason ie is placing images I have in a div in a weird way. One image is overlapping another but this problem is not occuring in mozilla. I have looked at my code over and over again...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.