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 <[EMAIL PROTECTED]> 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 >