Sharepoint URL open on submit button

I am using Sharepoint wss (2007) and I have a custom list, after I click the submit button I have workflow to gain the URL based on my inputs fields to http post to my SMS gateway. Once that is open / executed the SMS will send to the user with his reference number etc.

My problem I don’t want to user to manually execute the SMS http post URL in order to send the SMS

So I am looking for the following. On the Sharepoint list on the submit button, want to add java script to do the following:

  1. wait for 5 seconds after the submit button is press(reason the workflows need to complete)

  2. then get the Sharepoint list field called " URL " value and store it

  3. the URL field will contain the SMS URL to execute

  4. then execute/call the URL in the background or in quote mode where the user does not see its opening the browser or URL

  5. once open URL in the background to close URL session

  6. the SMS is now sent

Please help and provide sample code

Shabeersa

after I click the submit button I have workflow to gain the URL based on my inputs fields to http post to my SMS gateway.

So the user can fill in a few fields to define parameters for your sms API.

My problem I don’t want to user to manually execute the SMS http post URL in order to send the SMS.

If I understand correctly, the user will always trigger the sms to be sent, doesn’t matter if you wait 5 seconds or not. That doesn’t provide any security for the real problem you have here.
Hiding or disabling the form would have the same effect.
I guess you want to throttle the submission.

then execute/call the URL in the background or in quote mode where the user does not see its opening the browser or URL

Why not ajax?

What you describe is possible. But there are maybe better ways to do what you want, instead of relying on a timer to finish some page loads/redirects. Im not sure what the limits of SharePoint are, but this is not the most reliable method.

Please elaborate on the problems and what you have to solve it. Is there special session data to be sent, so that post submission via ajax is not easily possible? Can you reconstruct the data to send in the background? What url is that, that the user has to enter? Can you validate it?

Please let me know.
Best,
Martin

Yes, it on the Sharepoint list on the mobile field

No i dont want to throttle the submission. All i want not for the user to manually call the SMS http post, reason there the system got to depend on a user to send out the sms to the client. also if manually then the user can click multiple times on the same sms http link to call it up, which is wasting credits and problems. So that is the reason to only send it once

I dont mind as long it work on aspx page (for sharepoint)

As i mention, just looking for a automated way

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.