getting javascript array into an entry
This is an open discussion with 6 replies, filed under General.
Search
I must admit I don’t understand what you’re trying to do, but a form POST to a Symphony event would work if you created the form DOM with your JavaScript array.
So on adomainwithoutserversidescripting.com/JSform I would create the form with JS exactly as the form on the symphony page and then POST it with the form action=”mysymphonydomain.com/myformpage” and this would create a successfull entry across domains?
Yes. But it would have to be a full browser POST, not AJAX.
I guess you’ll also be able to use jQuery.post()
.
Not if you are crossing to another domain: native XMLHttpRequest calls are same-domain only. Unless you’ve modified your browser settings. You could always try JSONP if you’re desperate.
Oh, I didn’t read the subdomain part. Sorry, jQuery.post()
is out then.
Create an account or sign in to comment.
I want to use static xhtml pages with javascript to create an array of data. This data must then be put into a symphony site on another subdomain as an entry (like a message event).
What are my options to go from some JS data to a prefilled form (visible, or very quickly automatically submitted)? A simple POST is not possible because the pages are static.
I considered:
I remember the paypal extension mentioning something of a JS forward, is this related at all?