Raige All American 4386 Posts user info edit post |
So I have a small application that is tied to a pager company. Basically I have a backend database that manages a list of users, their numbers and some canned text messages they can send. I submit this to the pager's website and walla, nifty tool. Well this took off way more than I expected and it's being used 150+ times a day.
Needless to say they now want some form of tracking to go along with this. Here's where the problem arises.
They want to know: Who sent the message (unityID) When the message was sent Who it was sent to Body of the text message
Easy enough in most situations. However, I have to submit this to usamobility's webform. Meaning, I need to send the form to two locations at the same time. I know this isn't possible so I'm exploring alternative methods.
I've been told Ajax can do that but that means bringing in a new technology that has to be supported. I'm trying to avoid that. I'd rather stick with simple javascript.
In a perfect world I would click submit, the page would submit to a new page that would fire off form data to usamobility, and leave the user at a "page sent to usamobility" page and remain within my tool.
The only thing I found was the onsubmit execute a javascript but I'm not sure how to make the activate a query. That would work as well as it would execute the logging query and continue to usamobility.
Any insight into how you would handle this is great. Guildelines
1) The form must eventually submit to usamobility in form variables. No URL variables 2) Cannot use Java (some people use PDA's that can execute javascript but not javaapplets) 3) Must be able to execute a query.
I'll continue to look for any further answers and post my solution when I get it. 4/17/2007 8:11:15 AM |
scrager All American 9481 Posts user info edit post |
Are you using PHP?
There is a Snoopy class out there which is a PHP browser emulator. When you reload your tool, you can call the snoopy form submit to submit to the pager site and then run the code to insert your logs in your database. 4/17/2007 8:21:32 AM |
Stein All American 19842 Posts user info edit post |
http://www.php.net/curl 4/17/2007 8:24:32 AM |
mienutzich All American 4300 Posts user info edit post |
^ curl is the way to go. It is definitely the best way to handle multiple form submissions if you have php available to you. 4/17/2007 8:28:21 AM |
qntmfred retired 40726 Posts user info edit post |
^^
[Edited on April 17, 2007 at 9:12 AM. Reason : "form variables. No URL variables" you mean POST vs GET. ] 4/17/2007 9:11:26 AM |
Raige All American 4386 Posts user info edit post |
^ I was saying it like that because you can still use post and submit url variables at the same time.
I'm actually using Cold Fusion but that helps. Thanks! 4/17/2007 9:37:13 AM |
spöokyjon ℵ 18617 Posts user info edit post |
walla 4/17/2007 10:57:24 AM |