473,473 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Unique AJAX permission problem

Hi I have a web form sitting inside a desktop application written in
Delphi (rendered by its browser component based on IE engine). The form
runs in 2 modes:

- live mode: all data freshly fetched a predefined external server
- local mode: users can save the entire html of the web form to a local
..html file and view it at a later time.

The problem arises in local mode when the user tries run ajax code from
what is effectively a local html file (eg. c:\path\submission111.html)
and obviously we get "permission denied" due to cross domain
restriction. The workarounds that I've been reading so far
unfortunately aren't gonna work in this case (eg. the "proxy"
solution).

Any suggestion would be very much appreciated.

Oct 25 '06 #1
2 1761

"nick" <wa*****@gmail.comwrote in message
news:11**********************@f16g2000cwb.googlegr oups.com...
Hi I have a web form sitting inside a desktop application written in
Delphi (rendered by its browser component based on IE engine). The form
runs in 2 modes:

- live mode: all data freshly fetched a predefined external server
- local mode: users can save the entire html of the web form to a local
.html file and view it at a later time.

The problem arises in local mode when the user tries run ajax code from
what is effectively a local html file (eg. c:\path\submission111.html)
and obviously we get "permission denied" due to cross domain
restriction. The workarounds that I've been reading so far
unfortunately aren't gonna work in this case (eg. the "proxy"
solution).
If they're "viewing it at a later time" then what is the benefit if they're
still required to be online in order to use the Ajax code?
Are you locally persisting information they've entered into the form ?

Tim
Oct 25 '06 #2
nick said the following on 10/24/2006 11:53 PM:
Hi I have a web form sitting inside a desktop application written in
Delphi (rendered by its browser component based on IE engine). The form
runs in 2 modes:

- live mode: all data freshly fetched a predefined external server
- local mode: users can save the entire html of the web form to a local
.html file and view it at a later time.

The problem arises in local mode when the user tries run ajax code from
what is effectively a local html file (eg. c:\path\submission111.html)
and obviously we get "permission denied" due to cross domain
restriction. The workarounds that I've been reading so far
unfortunately aren't gonna work in this case (eg. the "proxy"
solution).

Any suggestion would be very much appreciated.
Look into the "Mark of the Web". It effectively puts local files into
the Internet Zone (At least in IE proper it does). In doing that, you
also remove it from the Local Zone so that it can't save files locally.

Try opening the web form in IE itself and see if you get the same
Permission Denied message. If not, then it's something in the app itself
that is not allowing the cross-domain aspect. As for using the
HTTPRequest Object locally, I have never tried posting information but I
use it quite extensively to read files from the web. The small app I
have takes a URL and gives me the HTML code, the included files, all of
it in one single file. Then I can save that file locally. It makes it a
lot easier to debug peoples online files without having to manually
figure it all out. And it all works using the HTTPRequest Object in IE.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: grist2mill | last post by:
I have a table 'Group2Operation' that stores many to many relations between the 'Group' table and the 'Operation' table (each group is has permission to perform one or more of the available...
12
by: Russ | last post by:
Hello. My new dev machine is running XP Pro. In the past all equipment has only used Windows 2000. I have had a lot of problems getting my projects up and running on the new machine. The current...
3
by: Chua Wen Ching | last post by:
Hi there, I had applied this security permissions in my class library based on fxcop standards. Before namespace: using System.Runtime.InteropServices; using System.Security.Permissions;
2
by: PJ6 | last post by:
I have AJAX-style calls that will require a user's login for permission checks. I might have been OK with the login ID rolled into a session variable, but now I'm faced with calling my AJAX...
3
by: Bratislav Jevtic | last post by:
Hi, I've just installed Ajax November CTP, changed app according to instructions and I am (was) satisfied. Next step - deployment to server. I'm receiving error:...
3
by: markus.rietzler | last post by:
i want to do (multiple) file upload(s) and display a progress bar. with firefox and safari it is no problem at all. only IE makes some problems. my script is based on ajax-uploader, which can be...
3
by: Mukesh | last post by:
Hi all I have Created an web application using VS 2005, asp.net2.0, Ajax Extensions 1.0, Ent Lib 3.1 , MS sql Server 2005, ajax Control tool kit Version 1.0.10618.0
10
dmjpro
by: dmjpro | last post by:
function synchronous_ajax(){ var ajax = null; if(typeof ActiveXObject!='undefined') ajax = new ActiveXObject("Microsoft.XMLHTTP"); else if(typeof XMLHttpRequest!='undefined') ajax = new...
17
by: Matija Papec | last post by:
I would like to be able to convert any reference (function, object, or array) into unique string id and retrieve original reference afterwards using same id. The following code does this but...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.