vinnier Posted December 14, 2009 Share Posted December 14, 2009 First of all, HELLO I know it's html basics but I've been working on the website for the last 48h with no break and I'm not seeing straight. I've set up a new website using Wordpress, which uses feedburner for subscription. (let me just say that I've tried wp forum but it doesn't look like I will get any help there anytime soon) The basic form came in with the template only needed adjusting to the account etc. Once I've done it, I've noticed a problem; once I submit the form I get the feedburner confirmation window as a pop-up and the same starts to open in the main window. Pure madness. I only want the pop-up window, so I've been trying to adjust the script, and I'm stuck as the feedburner confirmation loads always in the main window. For now I'm stuck with this: <input type="hidden" value="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement', 'scrollbars=yes,width=550,height=520')"> And there is no pop up at all right now, it only loads in the main window. For reference, here is the whole bit of the form code: <form action="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement" method="post" class="subscribe"> <fieldset> <input type="text" class="feedinput" value="Your email address ..." name="email" /> <input type="submit" class="feedsubmit" value="Join" /> <input type="hidden" value="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement', 'scrollbars=yes,width=550,height=520')"> <input type="hidden" value="<?php echo $blog_title; ?>" name="title"/> <input type="hidden" name="loc" value="<?php echo $location; ?>"/> </fieldset> </form> Summarising, I want the form submission to only open a pop up that will display the feedburner page, and the main window to stay the same. Please help me out here, as I feel so stupid right now... Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted December 14, 2009 Share Posted December 14, 2009 you cannot have a onsubmit on a hidden field it should be on the form tag, also you should try target="_new" in the form tag that will open it in a new window Quote Link to comment Share on other sites More sharing options...
vinnier Posted December 14, 2009 Author Share Posted December 14, 2009 Thanks. I'm kinda back where I started... :/ With this; <form action="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement', 'scrollbars=yes,width=550,height=520')" method="post" class="subscribe target="_new""> <fieldset> <input type="text" class="feedinput" value="Your email address ..." name="email" /> <input type="submit" class="feedsubmit" value="Join" /> <input type="hidden" value="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement"/> <input type="hidden" value="<?php echo $blog_title; ?>" name="title"/> <input type="hidden" name="loc" value="<?php echo $location; ?>"/> </fieldset> </form> I'm getting a new window like i want but the content is also loading in the main window How do I stop that from happening? EDIT: Tried removing the hidden value; <form action="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement', 'scrollbars=yes,width=550,height=520')" method="post" class="subscribe target="_new""> <fieldset> <input type="text" class="feedinput" value="Your email address ..." name="email" /> <input type="submit" class="feedsubmit" value="Join" /> <input type="hidden" value="<?php echo $blog_title; ?>" name="title"/> <input type="hidden" name="loc" value="<?php echo $location; ?>"/> </fieldset> </form> No change... :/ Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted December 14, 2009 Share Posted December 14, 2009 won't this work <form action="http://feedburner.google.com/fb/a/mailverify?uri=WoRecordsManagement" method="post" class="subscribe" target="_new"> <fieldset> <input type="text" class="feedinput" value="Your email address ..." name="email" /> <input type="submit" class="feedsubmit" value="Join"/> <input type="hidden" value="<?php echo $blog_title; ?>" name="title"/> <input type="hidden" name="loc" value="<?php echo $location; ?>"/> </fieldset> </form> Quote Link to comment Share on other sites More sharing options...
vinnier Posted December 14, 2009 Author Share Posted December 14, 2009 I can't thank you enough! It's working perfectly right now! THANK YOU Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.