Page 1 of 1

Update Collection Via Link

Posted: Thu Feb 27, 2014 6:15 pm
by Bad Addy

I am looking at validating an email, and when the email is delivered, I need the link to start a service and pass data via a link of some kind.

Is this possible ?


Update Collection Via Link

Posted: Thu Feb 27, 2014 6:17 pm
by Bad Addy

The link will be delivered via email to the user. So the user clicks the link in the email, and it updates the collection.


Update Collection Via Link

Posted: Thu Feb 27, 2014 7:36 pm
by Illya Stepanov

The service itself is working on updating the database by request PUT, but you can pass parameters with GET method to the page, then read them and pass to the database.

Here is a good example of GET parameters: http://stackoverflow.com/questions/90...

For example, to pass parameter 'q' on page home.html the link will takes the form:
prehome.html?q=test/pre

  • to get the value of the parameter 'q', you can use:
    pregetParameterByName ("q");/pre

Update Collection Via Link

Posted: Thu Feb 27, 2014 7:44 pm
by Bad Addy

Where would the main URL point to thou ? And how would that invoke a service, with data passed within the url? I can do this in PHP, but not JS or HTML5 ?


Update Collection Via Link

Posted: Thu Feb 27, 2014 8:55 pm
by Illya Stepanov

It's up to your service - there should be the specific URL where do you want to send it, to form links and send e-mails. You can call this service on load event, for example, after processing the data.