Top Level Link

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
alfonce
Beginner
Beginner
Posts: 9
Joined: Tue Jul 04, 2006 3:28 pm

Top Level Link

Post by alfonce »

Hi,

is it possible to use the top level menu item to open an external file?

So for example

aI("text=Database;url=P:\this folder\that folder\database.mdb;");

Would open my access databse externally to the html page (obviously)

Thanks

Alex
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

You should be able to open anything with a standard URL; e.g., http://site.com/database.mdb. Going down to drive level is not necessary.

You said, "Would open my access databse externally to the html page (obviously)". I hope that doesn't mean open it in the browser, which, of course, won't happen. You're also assuming that everybody in the world has a Windoze machine, and of that group they all have a version of Office that includes Access.
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I know that people open pdf files. Usually they use the target= parameter to have it open in a new window.

Ruth
lrndhtml2
Beginner
Beginner
Posts: 4
Joined: Wed Aug 09, 2006 10:32 pm

Post by lrndhtml2 »

Hello.

You can create the link to utilize a file:// protocol entry, but the I believe most browsers will throw security errors when trying to execute the load (crossing from http to file protocol domains). I quickly tried a test and Firefox refused to allow the file load on a deployed test app.

James.
alfonce
Beginner
Beginner
Posts: 9
Joined: Tue Jul 04, 2006 3:28 pm

Thanks chaps

Post by alfonce »

A few replies there.

Well I'm not trying to open a url into a web window - I'm targeting an access database on a hard drive that is hidden way down the driectory structure. I just want to open the database file from the menu. Just like as if you clicked o the dtabase shortcut exe.

Can this be done?

Thanks,

Alex
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

Yes this can be done - all you need to do is link to the flle and the web browser will do the rest.

Regards,
Andy
alfonce
Beginner
Beginner
Posts: 9
Joined: Tue Jul 04, 2006 3:28 pm

Thanks guys

Post by alfonce »

May seem like I'm stupid but I cant get this to work.

Currewntly I use

aI("text=Database;url=target="_blank" href="../maos.mdb";");

But this is bad code and actually opens(if it worked) a blank window. I dont want a window at all if at all possible - just to trigger the file. How to do this?

Thanks,

Alex.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

Please try removing the quotes from inside the aI string, and replacing href with a url declaration like this:
aI("text=Database;target=_blank;url=../maos.mdb;");
Hope this helps,
Andy
alfonce
Beginner
Beginner
Posts: 9
Joined: Tue Jul 04, 2006 3:28 pm

sorted

Post by alfonce »

Hi again,

its sorted like this

aI("text=Database;url=../data.mdb;");

It works but I think like a guy said earlier ie throws up a security warning but that doesnt actually stop the database opening via IE. This is an intranet base that runs solely on IE so I guess that will do for me.

Shame about the security warning through becuase if you hit run it opens another instance of the db.

Thanks,

Alex.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Shame about the security warning through becuase if you hit run it opens another instance of the db.
It will work but the warning is Internet Explorer being anal about security these days.

You might be able to disable the warning but only from within the browser settings.
Post Reply