Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsI have a website where I am using DWR to call the server in an AJAX style, however I now have a requirement to show user related data alongside that stored on the server.
My initial thought was that I could run a Java application (embedding Jetty) on the user's machine, and then load JSON from it by using an XHR request using the localhost:8888 url.
However, I'm getting security exceptions on the XHR.open method...
I thought you were allowed to load stuff from localhost? I guess not, when the main page url isn't from there...
Does anyone have any ideas on how this can be done? I don't want to upload the user's data (as it's huge), and so far I have the following ideas -- just wondering if anyone had any experience and knew of a way of getting this to work?
1) Have the server running on localhost serve an html page which can be loaded into a hidden IFRAME on the main page. Then have this IFRAME load the data into a JSON object from localhost, and then pass this JSON object back to the parent window (sounds convoluted, and would be nice to know if it might work before I try it)
2) Do it the way I am doing it, but do it right ;-) (I accept that the way I'm doing it MIGHT work, and it's just I have given up too easily)
3) Forget about it... It can't be done... (I know this is always a possible solution to problems like this)
Anyway...hope someone who has walked this path before can help :-)
Cheers!
Tim
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: mplungjanPosted on 2007-07-31 at 02:45:24ID: 19598787
Comments are available to members only. Sign up or Log in to view these comments.