Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to set click limit ?

    Dear Friends,
    please give your solution about below problem. I call

    function test".$i."(){
    edit($('$paket_id'));
    }

    function for editing in line text.

    <div onclick="test".$i."(this)"><img src="./images/edit01.png"></div>

    http://www.freeimagehosting.net/l5raa

    But when I click to call link, the textarea are opening again. How I can limit this?

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,777
    Thanks
    6
    Thanked 1,021 Times in 994 Posts
    What is this with the quotes in the function name? And what language is that actually? PHP or JavaScript? In JS you don’t concatenate strings with a period character, it’s done with ‘+’. Also, you need to follow the standard notation of quote pairs. In your HTML example the first double quote in the function name (which is wrong anyway) is closing the onclick value. If it was legitimate to use quotes in this place then you’d have to escape them with the backslash character.

  • #3
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    What is this with the quotes in the function name? And what language is that actually? PHP or JavaScript? In JS you don’t concatenate strings with a period character, it’s done with ‘+’. Also, you need to follow the standard notation of quote pairs. In your HTML example the first double quote in the function name (which is wrong anyway) is closing the onclick value. If it was legitimate to use quotes in this place then you’d have to escape them with the backslash character.
    I need this quotes, because I retrieve data from mysql, and put dynamical name to javascript function. so it's remix javascript&php.

    can you , put a sample code about click limitation?


  •  

    Posting Permissions

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