Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:58

Top Level Link


Poster: alfonce
Dated: Wednesday August 9 2006 - 15:51:44 BST

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


Poster: John
Dated: Thursday August 10 2006 - 15:29:47 BST

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.


Poster: Ruth
Dated: Thursday August 10 2006 - 15:30:35 BST

Hi,

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

Ruth


Poster: lrndhtml2
Dated: Thursday August 10 2006 - 16:25:46 BST

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.

Thanks chaps


Poster: alfonce
Dated: Friday August 11 2006 - 11:36:02 BST

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


Poster: Andy
Dated: Wednesday August 16 2006 - 12:49:03 BST

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

Thanks guys


Poster: alfonce
Dated: Monday August 21 2006 - 13:44:05 BST

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.


Poster: Andy
Dated: Monday August 21 2006 - 14:06:26 BST

Hi,

Please try removing the quotes from inside the aI string, and replacing href with a url declaration like this:

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


Hope this helps,
Andy

sorted


Poster: alfonce
Dated: Monday August 21 2006 - 14:06:59 BST

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.


Poster: Andy
Dated: Monday August 21 2006 - 14:16:18 BST

Quote:
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.