Jump to content

accessing server side data from client side javascript


Recommended Posts

Posted

Hello;

 

It is so great to be able to do some client-side scripting,

especially on mousemove, without generating any server communication.

 

But how do I access server variables? Tried accessing property fields

on forms, but that did not work.

 

About Unigui, this is such a great idea - the more I use it, the more

I realize how incredibly smart a solution this is. I have searched for

6 years for a webapp RAD solution, and nothing was good enough, until this.

 

Just beautiful.

 

Anyways, I need access to server-side data...! Please help someone...

 

And I cannot trigger a call for server-side data each time I move the

mouse - preferrably I would move some server-side data to the client

by some previous procedure, so it would be accessible when mousemove hits.

 

Kaj

Posted

If I should reply to my own question, I'd say

that you cannot access anything on client side

other than whats already loaded in the browser,

so if you want access to a table, you have to

load that previously in a grid and just make it

invisible, because from client side you can only

access the ext components and their loaded data.

 

Am I right?

Posted

But let's say I preiously declared some datastructures in

javascript, isnt there a way to push data from the server

to those structures?

 

Isnt there some ext "clientside datastore" component

where I can push a bunch of data, that I can later

access in client side javascript?

  • 4 months later...
  • Administrators
Posted

Can you give a real example? Normally you should process server data in server side and client only data on client side.

 

Even if you load some server variables into client how are you going to synchronize them when you change it on client side? (and vice versa)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...