...

View Full Version : Ajax problem in Firefox



suvarthi123
09-25-2008, 07:33 AM
Hi,

I have a registration from. Where there is some checkbox which loads dynamically at "onclick" event of a radio button. The checkbox loads from a different php page by ajax. The problem is the value of checkbox cannot be fetched by the parent page. The code is:

$.post("sh_sub.php", {
id:+ selected},
function(data){
parent: "data.parentNode",
$('div#subs').parent().append(data);
});

Which is working in IE but not working is Firefox.

Can anyone help ?

A1ien51
09-25-2008, 01:01 PM
What is that random + in the id line?

Is there any errors in the JavaScript console? Do you have more than one element with the same id?

Eric

suvarthi123
09-25-2008, 01:26 PM
Hi,

Thanks for the reply.

1. No, there is no error in javascript console.
2. "+selected" is just the value submitted in the php page in "post" method.
3. There are not more than one element.

The problem is that it's working in IE, but not working in Firefox.

ohgod
09-25-2008, 02:35 PM
get firebug, watch the transaction



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum