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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ajax problem in Firefox

    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 ?

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    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
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New to the CF scene
    Join Date
    Sep 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts
    get firebug, watch the transaction


  •  

    Posting Permissions

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