disabling the image on a href in asp

W

wk6pack

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
 
D

Dan Brussee

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

Mark Schupp

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
 
H

Hannibal

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

wk6pack

thanks,
Will
Hannibal said:
<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>
 
W

wk6pack

I would like to enable and disable the image depending on the permissions of
the user in our intranet.
Will
 
W

wk6pack

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
 
D

Dan Brussee

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

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

wk6pack

I see your point, I never thought about that.
Yes, that would work too. I'll try it.

thanks,
Will
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top