Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > disabling the image on a href in asp

Reply
Thread Tools

disabling the image on a href in asp

 
 
wk6pack
Guest
Posts: n/a
 
      10-09-2003
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


 
Reply With Quote
 
 
 
 
Dan Brussee
Guest
Posts: n/a
 
      10-09-2003
On Thu, 9 Oct 2003 15:43:25 -0700, "wk6pack" <> 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?

 
Reply With Quote
 
 
 
 
Mark Schupp
Guest
Posts: n/a
 
      10-09-2003
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" <> wrote in message
news:...
> 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
>
>



 
Reply With Quote
 
Hannibal
Guest
Posts: n/a
 
      10-10-2003
<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" <> wrote in message
news:%...
> 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" <> wrote in message
> news:...
> > 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
> >
> >

>
>



 
Reply With Quote
 
wk6pack
Guest
Posts: n/a
 
      10-10-2003
thanks,
Will
"Hannibal" <> wrote in message
news:%...
> <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" <> wrote in message
> news:%...
> > 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" <> wrote in message
> > news:...
> > > 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
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
wk6pack
Guest
Posts: n/a
 
      10-10-2003
I would like to enable and disable the image depending on the permissions of
the user in our intranet.
Will
"Dan Brussee" <> wrote in message
news...
> On Thu, 9 Oct 2003 15:43:25 -0700, "wk6pack" <> 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?
>



 
Reply With Quote
 
Ray at
Guest
Posts: n/a
 
      10-10-2003
And how are these permissions defined?

Ray at work

"wk6pack" <> wrote in message
news:...
> I would like to enable and disable the image depending on the permissions

of
> the user in our intranet.
> Will



 
Reply With Quote
 
wk6pack
Guest
Posts: n/a
 
      10-10-2003
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:...
> And how are these permissions defined?
>
> Ray at work
>
> "wk6pack" <> wrote in message
> news:...
> > I would like to enable and disable the image depending on the

permissions
> of
> > the user in our intranet.
> > Will

>
>



 
Reply With Quote
 
Dan Brussee
Guest
Posts: n/a
 
      10-10-2003
On Fri, 10 Oct 2003 09:06:59 -0700, "wk6pack" <>
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:...
>> And how are these permissions defined?
>>
>> Ray at work
>>
>> "wk6pack" <> wrote in message
>> news:...
>> > 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?

 
Reply With Quote
 
wk6pack
Guest
Posts: n/a
 
      10-10-2003
I see your point, I never thought about that.
Yes, that would work too. I'll try it.

thanks,
Will

"Dan Brussee" <> wrote in message
news:...
> On Fri, 10 Oct 2003 09:06:59 -0700, "wk6pack" <>
> 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:...
> >> And how are these permissions defined?
> >>
> >> Ray at work
> >>
> >> "wk6pack" <> wrote in message
> >> news:...
> >> > 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?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BASE HREF and A HREF="#" onclick="..." Vincent van Beveren Javascript 2 07-06-2006 08:33 AM
href="javascript:func()" vs href="#" onclick="javascript:func()" CRON HTML 24 06-20-2006 08:05 PM
onClick method question (this.href and document.location.href) yogesh.bhardwaj@gmail.com Javascript 2 02-03-2005 02:38 PM
difference between location.href and window.location.href? saiho.yuen Javascript 3 09-14-2004 06:51 PM
Problem: Setting MSIE iframe innerHTML change relative href/src to absolute href/src Soren Vejrum Javascript 4 07-05-2003 01:47 PM



Advertisments