This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
contact_widgets [2018/02/15 19:56] brittany [Adding a contact widget to your external Site] |
contact_widgets [2019/06/27 19:40] brittany [Adding a contact widget to your external Site] |
||
---|---|---|---|
Line 23: | Line 23: | ||
</script> | </script> | ||
- | The line, **_rgq.push(['_setSecure', true]);**, needs to be added only if your site uses SSL (has https in the site url). | + | The line, **_rgq.push(['_popupContact']);_rgq.push(['_resize',500,800])**, needs to be added only if your site uses SSL (has https in the site url). |
Now, you can use the following javascript trigger anywhere on your page to open the contact form: | Now, you can use the following javascript trigger anywhere on your page to open the contact form: | ||
<code javascript> | <code javascript> | ||
- | _rgq.push(['_popupContact']); | + | _rgq.push(['_popupContact']);_rgq.push(['_resize',500,800]); |
</code> | </code> | ||
Line 33: | Line 33: | ||
<code html> | <code html> | ||
- | <button onclick="_rgq.push(['_popupContact'])">Contact Us</button> | + | <button onclick="_rgq.push(['_popupContact']);_rgq.push(['_resize',500,800])">Contact Us</button> |
</code> | </code> | ||
+ | |||
+ | So the full code including the extra would be: | ||
+ | |||
+ | |||
+ | <script type="text/javascript"> | ||
+ | var _rgq = _rgq || []; | ||
+ | _rgq.push(['_setDomain','demo.realgeeks.com']); | ||
+ | (function() { | ||
+ | var rg = document.createElement('script'); rg.type = 'text/javascript'; rg.async = true; | ||
+ | rg.src = 'http://widgets.realgeeks.com/static/js/rg.js'; | ||
+ | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(rg, s); | ||
+ | })(); | ||
+ | </script> | ||
+ | </code> | ||
+ | <button onclick="_rgq.push(['_popupContact']);_rgq.push(['_resize',500,800])">Contact Us</button> | ||
+ | |||
====Demo==== | ====Demo==== | ||
Line 50: | Line 66: | ||
</script> | </script> | ||
</code> | </code> | ||
- | <button onclick="_rgq.push(['_popupContact'])">Contact Us</button> | + | <button onclick="_rgq.push(['_popupContact']);_rgq.push(['_resize',500,800])">Contact Us</button> |
</html> | </html> | ||