Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Unique AJAX permission problem

Reply
Thread Tools

Unique AJAX permission problem

 
 
nick
Guest
Posts: n/a
 
      10-25-2006
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.

 
Reply With Quote
 
 
 
 
Tim Williams
Guest
Posts: n/a
 
      10-25-2006

"nick" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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


 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      10-25-2006
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/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a unique method in python to unique a list? Token Type Python 9 09-09-2012 02:13 PM
Fixed: The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {555F3418-D99E-4E51-800A-6E89CFD8B1D7} to the user NT AUTHORITY\LOCAL SERVICE SID (S-1-5-19). Skybuck Flying Windows 64bit 1 06-29-2009 06:17 PM
list question... unique values in all possible unique spots ToshiBoy Python 6 08-12-2008 05:01 AM
AJAX IDE and AJAX TOOL--The Release of JoyiStar AJAX WebShop 3 Beta minnie Java 1 12-13-2006 06:29 AM
Newbie: Ajax permission'g question hemant.singh@gmail.com HTML 6 04-17-2006 05:42 PM



Advertisments