NetTalk Central

Author Topic: JQuery GET POST for calling form  (Read 3563 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
JQuery GET POST for calling form
« on: October 07, 2016, 10:30:23 AM »
Hi,

I am trying to use JQuery GET or POST functions to call a form just as if the user had selected it from the menu (albeit with some additional values).  The web server logs show the functions fire at the right time with the right url,  but I don't have function configured properly to bring up the form.  What are the parameters that must be passed in the POST or GET functions to get the form to display?

Many thanks.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: JQuery GET POST for calling form
« Reply #1 on: October 11, 2016, 11:09:07 PM »
Hi Casey,

You say "bring up" the form.  Are you wanting to see this form in a popup, or as a page by itself.
Calling a form as a page is really simple, calling it as a Popup is somewhat more complicated (although still do'able')

From JavaScript it'll be a GET which triggers it, but you mention jQuery which makes me think you're wanting to do this as a popup call?

cheers
Bruce

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: JQuery GET POST for calling form
« Reply #2 on: October 18, 2016, 04:48:12 PM »
Just thought I would follow up on this issue with a solution.    I should have explained the issue a little clearer.   I was looking to call the form from inside a third party script using some of the script's variables as value parameters passed with the request.  In the end, a simple window.open("my url","_self") with the url concatenated from the variables worked just fine. The concatenation was a bit tricky, but other than that very straight forward.