afadich@gmail.com wrote:[color=blue]
> Hi,
>
> Please be nice :) I don't exactly know how to explain this or if I am
> using the correct terminology.[/color]
Fine by me but be aware of OTHERS ;-)
[color=blue]
> MY PROBLEM:
>
> I don't know how to get that java script array into my page so I can
> utilize it in functions and build a popup window out of it. If I
> create a get form and do document.formname.action = MyURL and then
> press the submit button instead of getting that javascript array it
> just outputs it on the browser as text.
>
> If further explination is required just let me know.[/color]
Briefly I want to:
1) get data from your server
2) these data should be presented as a JavaScript array
3) getting this data should not reload the current page
4) immediately upon the data is ready you want to repopulate the form
on the current page
Is it correct?
If it is then two blocks will do the job for you:
AJAX will let you to retrieve new data from the server while staying on
the same page.
<http://www.ajaxtoolbox.com>
JSON will let you to stransmit JavaScript objects (including arrays)
back and forth to the server.
<http://www.json.org>
More details could be found in this thread:
<http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/ff0b1ea144e5ee1e/8836d58fbc4405f4#doc_8836d58fbc4405f4>