Old 11-06-2007, 14:20   #1 (permalink)
jthomas
coffee is not a crime
 
jthomas's Avatar
 
Join Date: Oct 2005
Location: Illinois, USA
Posts: 456
ajax and local files

I am trying to write a help documentation web site that will work on both the web and on the user's computer (like on a cd). For this reason, I'm using Javascripts from dynamic drive rather than server includes. I don't know Javascript, so I've found a script that allows me to dynamically load external html's into the div of my choice. It works fine for FF and IE 6 and IE 7 on the web, and works fine for FF and IE 6 on the local file syste. However, when I get to IE 7, after I allow blocked content, I get an "access is denied error."

You can preview what I have so far at Medicaid Billing System - User Documenation

My question is: Is there a way to allow Javascript to access local files? This seems to be a big deal on the web so I'm prepared for no answers. I came across something called DeskRun that allowed you to deploy your AJAX creation as a windows executable, but any trace of that program and the developers don't seem to exist anymore.

Thanks.
  Reply With Quote
Old 16-06-2007, 06:26   #2 (permalink)
paulanthony
mingin dawg baitch
 
paulanthony's Avatar
 
Join Date: Apr 2004
Location: Belfast
Posts: 1,035
Send a message via MSN to paulanthony
You could use frames?
__________________
  Reply With Quote
Old 16-06-2007, 07:05   #3 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,937
Quote:
Originally Posted by jthomas
Is there a way to allow Javascript to access local files?
The issue is likely to be that IE disallows scripts to be run from local files (presumably in order to prevent infected machines running malicious scripts). The user is presented with an error alert with the option to allow the scripting to proceed.
However, iirc, for the user to permanently avoid these alerts, they'd need to tweak the security settings in the Internet Options.
  Reply With Quote
Old 16-06-2007, 12:18   #4 (permalink)
rfresh
Registered User
 
Join Date: Jun 2007
Location: Los Angeles
Posts: 33
@jthomas

For security reasons, JS cannot access files on the client.


I'm a little confused about the statement to ajax and an executable windows app? An executable windows app that is ajax enabled, isn't that called a web browser? I've never heard of an ajax enabled windows app - just doesn't make sense to me.

RalphF
GoldRushWebHosting.com
  Reply With Quote
Old 17-06-2007, 21:17   #5 (permalink)
jthomas
coffee is not a crime
 
jthomas's Avatar
 
Join Date: Oct 2005
Location: Illinois, USA
Posts: 456
Quote:
Originally Posted by rfresh
I've never heard of an ajax enabled windows app - just doesn't make sense to me.

Google Javaline DeskRun. I can't find it anywhere, but you can find some articles that talk about it.

I don't want to use frames because I want the page to grow with the height of the content. Is there a way to make content resize a frame?
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8