disabling the image on a href in asp

Discussion in 'ASP General' started by wk6pack, Oct 9, 2003.

  1. wk6pack

    wk6pack Guest

    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
    wk6pack, Oct 9, 2003
    #1
    1. Advertising

  2. wk6pack

    Dan Brussee Guest

    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?
    Dan Brussee, Oct 10, 2003
    #2
    1. Advertising

  3. wk6pack

    Mark Schupp Guest

    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
    >
    >
    Mark Schupp, Oct 10, 2003
    #3
  4. wk6pack

    Hannibal Guest

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

    >
    >
    Hannibal, Oct 10, 2003
    #4
  5. wk6pack

    wk6pack Guest

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

    > >
    > >

    >
    >
    wk6pack, Oct 10, 2003
    #5
  6. wk6pack

    wk6pack Guest

    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:p...
    > 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?
    >
    wk6pack, Oct 10, 2003
    #6
  7. wk6pack

    Ray at Guest

    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
    Ray at, Oct 10, 2003
    #7
  8. wk6pack

    wk6pack Guest

    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

    >
    >
    wk6pack, Oct 10, 2003
    #8
  9. wk6pack

    Dan Brussee Guest

    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?
    Dan Brussee, Oct 10, 2003
    #9
  10. wk6pack

    wk6pack Guest

    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?
    >
    wk6pack, Oct 10, 2003
    #10
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. CRON
    Replies:
    24
    Views:
    200,474
    Adrienne Boswell
    Jun 20, 2006
  2. Kavi

    disabling a a href link

    Kavi, Feb 14, 2007, in forum: HTML
    Replies:
    1
    Views:
    5,503
    Jonathan N. Little
    Feb 15, 2007
  3. Soren Vejrum
    Replies:
    4
    Views:
    532
    Lasse Reichstein Nielsen
    Jul 5, 2003
  4. saiho.yuen
    Replies:
    3
    Views:
    411
    kaeli
    Sep 14, 2004
  5. Replies:
    2
    Views:
    445
Loading...

Share This Page