jQuery example uses popup (but does not work).
authorMike Taylor <mike@indexdata.com>
Thu, 22 Aug 2013 09:58:16 +0000 (10:58 +0100)
committerMike Taylor <mike@indexdata.com>
Thu, 22 Aug 2013 09:58:16 +0000 (10:58 +0100)
examples/htdocs/index-jquery.html

index 183d3da..76529dc 100644 (file)
@@ -6,6 +6,14 @@
     <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
   </head>
   <body>
-    <script type="text/javascript">jQuery.pazpar2()</script>
+    <script type="text/javascript">
+    jQuery.pazpar2({
+        "layout": "popup",               /* "table" [default], "div", "popup" */
+        "id_button": "input#mkwsButton", /* submit button id in search field */
+        "id_popup": "#mkwsPopup",        /* internal id of popup window */
+        "width": 880,                    /* popup width, should be at least 800 */ 
+        "height": 760                    /* popup height, should be at least 600 */
+    });
+    </script>
   </body>
 </html>