Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

form post in Chrome extension popup not doing anything

I am making a chrome extension and I have a popup.html page that contains a form with method post, it does not do anything when opened using the popup button however if the page is opened as an options page or just a normal html page, the form posts fine and the new page is loaded.

so something in the popup is preventing the form from working.

I cannot figure out why, anyone know how to fix/work around this ?

like image 965
Richard Avatar asked Sep 25 '11 06:09

Richard


2 Answers

You need to do an AJAX POST request. A quick Google search brought up this post.

like image 167
Paddy Avatar answered Sep 24 '22 14:09

Paddy


Maybe an answer duplicate of Paypal Button For Google Chrome Extension.

Just in case that somebody arrives here, try adding a simple target="_blank" to your tag (Works with Paypal donate buttons, for example)

like image 39
Dani bISHOP Avatar answered Sep 24 '22 14:09

Dani bISHOP