Re: Add confirmation to a LinkButton

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: bradbury9 (ray_bradbury9_at_hotmail.com)
Date: 03/19/04


Date: 19 Mar 2004 10:20:24 -0800


> <a id="LinkButton1" href="javascript:__doPostBack('LinkButton1','')"
> style="background-color:Red;height:32px;width:136px;Z-INDEX: 103; LEFT:
> 192px; POSITION: absolute; TOP: 232px">LinkButton</a>

Thats the reason why I would try something like this:

<a href="javascript:confirmation_request()" id="myLink"...>
<script>
    confirmation_request(){
      if(confirm('Are you sure????'){
        __doPostBack('myLink','');
      }
}
</script>

Perhaps it's not the best way to accomplish that, but it should work.



Relevant Pages

  • Re: Linux Home Server HOWTO - Open For Review
    ... I did want to add some type of monitoring here, but I found the script ... Thats a fair call.. ... simple are a hard match to start with, thats the reason I at least ... I think it would be suitable to include a package ...
    (Fedora)
  • parse/slice/...
    ... Here what i'm trying to accomplish. ... the script i'm working on, take a submitted list ... So I have to parse/slice the file by chunk of 500 and loop ... some reason. ...
    (comp.lang.python)
  • Re: Aaagh! cScript no longer Returning! ??
    ... > try turning them off and run the script again... ... thats our entry level environment that must be used as a starting ... point] I am also running this on XP SP2 machines, ... we have a script that builds the web site on install. ...
    (microsoft.public.scripting.vbscript)
  • Re: $ENV{CONTENT_LENGTH} / STDIN
    ... >> reason for a form in the first place. ... than about every other aspect of writing a script. ... > insecure may be perfect in the lab, but useless in the real world. ... hard-coded validation, rather than hard-coded names. ...
    (comp.lang.perl.misc)
  • Re: Is there a correct place to put javascript within a html file?
    ... The HTML specification tells you where script elements are permitted: ... script files have downloaded and if they're all in the head ... ... like the sensible thing to do; at least there's a reason for it. ... javascript is positioned just before the then the various html ...
    (comp.lang.javascript)