Click to See Complete Forum and Search --> : POST-request
tzjones
07-30-2003, 02:57 AM
hi,
by coding top.frames['some'].location="data.php?side=4; i do a get-request.
(how) is it possible to do a post-request with javascript?
greetings,
norro
Gollum
07-30-2003, 04:18 AM
Find the form and call submit(), e.g.
top.frames['some'].document.theForm.submit();
tzjones
07-30-2003, 04:28 AM
unfortunately there is no form.
there is only a function, that creates an array, that should be submitted to another frame
is there a possibility to do that?
greetings
Gollum
07-30-2003, 06:21 AM
You can only really use POST with forms.
If you just want to send the array between forms, it's easy...
top.frames['some'].myArray = myArray;
in 'some' frame, you can access the array as window.myArray (or as just myArray as window properties can be accessed as globals)