rnd me;1188002 wrote:you can only pass strings, not objects like nodes.
you can use cookies or localStorage to pass strings.
Really? I can only pass strings using GET/POST?
Can you help me understand these examples from jQuery's Documentation?
//Example: Request the test.php page and send some additional data along (while still ignoring the return results).
$.post("test.php", { name: "John", time: "2pm" } );
//Example: pass arrays of data to the server (while still ignoring the return results).
$.post("test.php", { 'choices[]': ["Jon", "Susan"] });
The first one passes an Object, doesn't it?
And the second is an array, right?
So, I imagine if test.php was:
<?php
echo $choices[1];
?>
The output would be "Susan", right?