...

View Full Version : how to set click limit ?



orxanx
01-23-2012, 11:36 AM
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?

VIPStephan
01-23-2012, 12:02 PM
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.

orxanx
01-23-2012, 01:19 PM
What is this with the quotes in the function name? And what language is that actually? PHP or JavaScript? In JS you dont concatenate strings with a period character, its 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 youd 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?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum