If the initial page loaded from the "http://localhost"; domain and you
try to access a file via a "file://" URL then the browser (not jQuery)
will stop you. You'd have to make the file you wanted to access
available via the same domain "http://localhost";

HTAs can be very different beasts to "normal" pages, so it could be
something weird happening based on the security measures.

Karl Rudd

On Wed, Sep 24, 2008 at 5:55 AM, Jarodium <[EMAIL PROTECTED]> wrote:
>
> Hello
>
> I have this HTA setup so that I can fire lighthttpd for windows.
> After my application starts, I press a link which will fire a function
> that calls http://localhost/tk_project.php using Jquery's $.ajax
>
> My debugging have shown that the Ajax request ( POST and GET methods )
> are resulting in a 404 error in the server's logs.
>
> When I place this address in FF it shows ok.
> I've searched here and came to the conclusion that I can't make cross-
> domain requests and probably Jquery assumes that when i'm using a
> local file ( file:// resource ) and trying to access a "remote"
> location at http://localhost
>
> Is my assumption correct and can't load anything through Jquery as i'm
> not allowed do make cross-domain requests?
>
> Anyone has any suggestion on how can I workaround this issue?
>
> I don't want to use vbscripting to achieve this because I use Jquery
> alot in this project. )
>
> Thanks in advance.
> Pedro
>

Reply via email to