Results 1 to 8 of 8

Thread: javascript

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Oct:2003
    Posts: 166

    javascript

    :
    <script type="text/javascript">
    function check_empty (btn)
    {
    if (document.forma1.btn.value=='')
    {alert ("Emty Field!!! "); }
    }
    </script>

    nClick="check_empty(tbox1)"
    4 document.forma1.tbox1.value
    ? . 4 onClick .

  2. #2
    Registered User genn's Avatar
    Join Date: Feb:2003
    Location:
    Posts: 1,215
    - this

    onClick = " function_name( this )"

    :

    function function name( obj )
    {
    if( obj.value == "" )
    .... bla bla
    }

    EDIT
    onClick... onChange
    submit, if-
    Last edited by genn; 28th June 2006 at 20:39.

  3. #3
    Registered User
    Join Date: Oct:2003
    Posts: 166


  4. #4
    Registered User genn's Avatar
    Join Date: Feb:2003
    Location:
    Posts: 1,215
    , btn, , btn ... , , :

    " document.forma1.tbox1.value"

    , ?

    document.getElementById( btn )... ,

  5. #5
    Registered User
    Join Date: Oct:2003
    Posts: 166

    Dava tova

    , : 'document.forma1.btn.value' is zero or no object. , . .
    ?
    Last edited by Orlinov; 29th June 2006 at 11:17.

  6. #6
    Registered User genn's Avatar
    Join Date: Feb:2003
    Location:
    Posts: 1,215
    , - , , document.forma1.tbox1 .
    , btn, .
    document.forma1.btn.value : document.getElementById( btn ) id="tbox1" .

    .

  7. #7
    Registered User
    Join Date: Oct:2003
    Posts: 166

    Dava sintakti4na gre6ka

    :
    <input name=bt1 type=button onClick="check_empty(document.getElement ById("tbox"))"
    value=ADD><br>

Posting Permissions

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

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |