20i Domains

javascript conflict on closing popup form

Discussion in 'Scripts and Coding' started by fish, Oct 29, 2013.

Thread Status:
Not open for further replies.
  1. fish United Kingdom

    fish Well-Known Member

    Joined:
    Nov 2006
    Posts:
    2,725
    Likes Received:
    27
    Hi,
    Here's one that I can't resolve so hoping one of you xperts can help :p

    I have a simple signup subscriber form but it won't close when you hit the 'submit' button.

    The info gets sent through to me but the form remains on the page unless you close it down via the X button. People don't think the form has worked so keep pressing the submit form which results in multiple registrations being sent to me.

    Can anyone help? if so send me a pm & I'll ping the site url over to you.

    Thanks!

    Fish
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
    articles.co.uk
     
  3. monaghan United Kingdom

    monaghan Moderator Staff Member

    Joined:
    May 2007
    Posts:
    2,103
    Likes Received:
    71
    Have you got a self.close() or window.close() as the last thing in the JavaScript? If you load the script debug in either Chrome or Firefox you can see what the code is doing.
     
  4. fish United Kingdom

    fish Well-Known Member

    Joined:
    Nov 2006
    Posts:
    2,725
    Likes Received:
    27
    OK, so I said 'simple script' in my post (#notquitetrue), it's actually from mailchimp and they just provide it 'as is' & don't have support for it.

    I tried Firefox debug but couldn't suss it out!
     
  5. monaghan United Kingdom

    monaghan Moderator Staff Member

    Joined:
    May 2007
    Posts:
    2,103
    Likes Received:
    71
    Ah, send me the details and I'll have a quick look.
     
Thread Status:
Not open for further replies.