Re: netWindow - PHP data transfer model

"Christian Boulanger" <[email protected]>
Newsgroups gmane.comp.windows.devel.netwindows
Message-ID <[email protected]>
Hello again,

excuse me for my many emails on this list, but I think once I figured this
one out, I should be fine.
Let me make my question from the last email more precise.

After I have given up on any third-party data transfer model, I think I need
to implement four basic operations. Some or all of them might already be
implemented in some form in netWindows, but I have no way of knowing. The
names are random.

1) win = create_hidden()

 - creates a hidden Iframe to load data in

2) load(object win,string remote_procedure, string/array parameters [,URL])

- loads from an optional URL (for example http:// ... get.php, takes a
default value if not given), calling procedure x with parameters y into
window object win
- this should work for both visible windows and hidden iframes.
- the problem here is how to encode the parameters if they are not just a
string for the URL query string. Do you have any ready-made solution for
that. I really want to be able to send arrays through this method.

3) variable x =  retrieve(object win, string variable name);

- retrieves variable x from window win (visible/invisible iframe etc). This
relates to my last post: how best to encode a variable (including
multidimensional arrays) so that javascript can read and assign this
variable

4) variable y = request(string remote_procedure, string/array parameters
[,URL])

- this is a combination of 1-3: first an iframe is create if it does not
exist already, then the request is sent, the result is queried from the
iframe content, and returned.

Does this make sense? And which netWindow functions do I need to implement
it?

Christian


_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.