You are right John, it worked on via my local webserver.
Thanks,
Gurpreet
<div><span class="gmail_quote">On 8/20/07, <b class="gmail_sendername">John Resig</b> <<a href="mailto:jeresig@gmail.com">
jeresig@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It's because you're trying to load a file from your local hard drive -
you need to have it hosted on the same domain as your page. (This is a
restriction in place in all browsers.)
--John
On 8/19/07, G[N]Urpreet Singh <<a href="mailto:gnurpreet@gmail.com">
gnurpreet@gmail.com</a>> wrote:
> Hi,
> Was trying to make a horizontal accordion with nice ease-in effects etc. I
> first made the widget separately in an HTML file (which worked fine) and
> then tried to embed it in my main HTML file. I got a funny exception.
>
> Error: uncaught exception: [Exception... "Access to restricted URI denied"
> code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location:
> "file:///D:/work/ClientWork/Ask%20for%20Original/Site%20Design/HTML/interface.js
> Line: 8"]
>
> The code that gives the error is the last line in the snippet below. The
> second last line happens nicely, though.
>
> which = '#'+which+'_details';
> $('.details').animate({width: 0 }, 500, "easein");
> $(which).animate({className: "endcontent"}, 500, "easein");
>
> Please suggest a solution.
>
> Thanks
>
> --
> Gurpreet Singh
>
>
> --
> Gurpreet Singh
>
</blockquote></div>
<br clear="all">
--
Gurpreet Singh