Welcome to WebmasterWorld Guest from 54.147.44.93

Forum Moderators: incrediBILL

Message Too Old, No Replies

Firefox No Response for "onClick"

     

smagdy

2:14 pm on Aug 6, 2005 (gmt 0)

10+ Year Member



Hi,
It is working very fine on IE but no response in FF lastest version... why?

Here is the onClick code:

<input type="button" onClick="checkEmails(getalert.value,'',<? echo "$results->id";?>)" style="color:#FFFFFF; background-color:#BEB789; height:22px; width:64px;" value="Get alert">

any tip would be apreciated

Thanks in advance

Robin_reala

2:28 pm on Aug 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there anything in the Javascript console?

smagdy

2:32 pm on Aug 6, 2005 (gmt 0)

10+ Year Member



am calling external js in same page:

<SCRIPT LANGUAGE="JavaScript" SRC="addemail.js" type="text/javascript">
</SCRIPT>

------------------------------------

and that script is XMLHTTPREQUEST code but it doest go there at all in FF.. but it works fine as i mentioned b4 just in IE

smagdy

3:03 pm on Aug 6, 2005 (gmt 0)

10+ Year Member



onClick="checkEmails(getalert.value,'',<? echo "$results->id";?>)"

the getalert.value is <input type=text>

it works when i put qutations like this 'getalert.value' but works the wrong way cuz it send "getalert.value" instead of the real value..

so what is wrong?
How should it be?

[edited by: tedster at 6:23 am (utc) on Aug. 7, 2005]
[edit reason] disable smile graphics [/edit]

kaled

11:47 pm on Aug 6, 2005 (gmt 0)

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Why not call a simple function using onclick?
e.g.
onclick="doit();"

and place all work in the function doit()

I'm seeing too many quotes. Does the page validate?

Kaled.

smagdy

10:00 am on Aug 7, 2005 (gmt 0)

10+ Year Member



it workeddd...

the mistake was.. i didnt add <form></form>

cuz in fact i didnt need it.. but i added it now so it worked..

Thanks everybody for ur time.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month