I'm trying to create a popup menu which when clicked opens a form to accept user details.Is there a way to create a popup which has a form using Google Closure??
Asked
Active
Viewed 104 times
0
-
1did you check this link -http://closure-library.googlecode.com/svn/trunk/closure/goog/demos/dialog.html – aked Oct 07 '13 at 16:40
-
I have already gone through it but failed to render a form inside a dialog. – Arjun Oct 07 '13 at 16:42
-
so you mean in goog.ui.dialog can not render basic html input elements ? – aked Oct 07 '13 at 16:57
-
1here is a very basic popup with input elements - http://jsbin.com/AXosazI/1/ – aked Oct 07 '13 at 17:14
-
I want the form elements also to be rendered using google closure. i.e using goog.ui.LabelInput inside the dialog. – Arjun Oct 07 '13 at 17:25
-
1will this work ? http://jsbin.com/AXosazI/2/ – aked Oct 07 '13 at 22:00
-
Both work fine and i actually figured out how to render using google closure by exploring on what you told. But i still have a small issue where the when the popup is invoked for the 1st time the form fields are rendered once for the second time its rendered twice and so on! – Arjun Oct 08 '13 at 04:04
-
if possible post your code in jsbin – aked Oct 08 '13 at 15:16
-
here is the link. try clicking the button multiple times without reloading. http://jsbin.com/EciYACu/4 – Arjun Oct 09 '13 at 04:59
-
1i think the problem is you are creating popup everytime on click. `Create Once- Show/Hide multiple times` http://jsbin.com/axEqoMa/1/ – aked Oct 09 '13 at 21:37