Professional Web Applications Themes

Follow up to javascript question. - ASP.NET General

thanks Steve the code below worked, but now all my validators do not work????? Button1.Attributes.Add("onclick", "return checkBal();") put the following code on the Page_Load Button1.Attributes.Add("onclick", "checkBal();") It does hit the following javascript, but it will continue to post enen with the return false; <script type="text/javascript"> function checkBal(){ alert("hi") return false; } </script> -- ______________________ David Fetrow HelixPoint LLC. http://www.helixpoint.com com Interested in Affordable Email Marketing? Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp If you are interested in becoming a Reseller of HelixPoint products, contact com ______________________...

  1. #1

    Default Follow up to javascript question.

    thanks Steve the code below worked, but now all my validators do not
    work?????

    Button1.Attributes.Add("onclick", "return checkBal();")





    put the following code on the Page_Load

    Button1.Attributes.Add("onclick", "checkBal();")



    It does hit the following javascript, but it will continue to post enen with
    the return false;

    <script type="text/javascript">
    function checkBal(){
    alert("hi")
    return false;
    }
    </script>


    --

    ______________________
    David Fetrow
    HelixPoint LLC.
    http://www.helixpoint.com
    com


    Interested in Affordable Email Marketing?
    Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp
    If you are interested in becoming a Reseller of HelixPoint products, contact
    com
    ______________________


    Davef Guest

  2. #2

    Default Re: Follow up to javascript question.

    Ah, yes. You've overwritten the validator's onclick event with your own.
    You may want to call the validation code from the end of your checkBal
    function.
    (Remove the attributes.add line temporarily, run the page and view the
    source to see which function is being called by the validator, then put the
    line back in and call that validator code the same way.)

    --
    I hope this helps,
    Steve C. Orr, MCSD
    http://Steve.Orr.net
    Hire top-notch developers at http://www.able-consulting.com



    "Davef" <com> wrote in message
    news:%phx.gbl... 
    with 
    contact 


    Steve Guest

  3. #3

    Default Re: Follow up to javascript question.

    Not sure how you do that steve???


    "Steve C. Orr, MCSD" <net> wrote in message
    news:OB$phx.gbl... 
    the 
    > with 
    > contact 
    >
    >[/ref]


    Davef Guest

Similar Threads

  1. JavaScript Question
    By Seth Meranda in forum Macromedia Dynamic HTML
    Replies: 4
    Last Post: December 8th, 04:11 PM
  2. javascript question
    By newcf in forum Coldfusion - Getting Started
    Replies: 11
    Last Post: August 15th, 11:00 PM
  3. More of a javascript question
    By kenji776 in forum Coldfusion - Advanced Techniques
    Replies: 4
    Last Post: August 29th, 12:01 AM
  4. follow-up question
    By mick_white in forum Macromedia Dreamweaver
    Replies: 5
    Last Post: July 30th, 10:07 PM
  5. Javascript Question...
    By Dizzy Jones in forum Macromedia Dreamweaver
    Replies: 3
    Last Post: July 23rd, 12:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139