PDA

View Full Version : onDblClick



techno_race
08-24-2008, 06:06 PM
What's wrong with this attribute?

onDblClick="window.location = 'egg3.php?input=' + document.getElementById('textfield').value"
It's just taking me to egg3.php, not egg3.php?input=input

thetestingsite
08-24-2008, 06:24 PM
Not 100% on this, but don't you need to use urlencode or something to that effect?

techno_race
08-24-2008, 08:26 PM
I've successfully done this before.

Twey
08-24-2008, 08:34 PM
Failure to return false.

techno_race
08-24-2008, 09:02 PM
So, what's wrong with this attribute?

onDblClick="window.location = 'egg3.php?input=' + document.getElementById('textfield').value"

Nile
08-24-2008, 09:10 PM
Works fine for me, got an example page?

mburt
08-24-2008, 09:11 PM
We need to see the full code... there might be something wrong with the passed value.

Twey
08-24-2008, 09:37 PM
Failed to return false...

Nile
08-24-2008, 11:11 PM
Success to return true... [I think :)]

mburt
08-24-2008, 11:15 PM
Success to return undefined ;)