|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello again,
I am writing an intranet in ASP + javascript I have an application server "\\MYSERVER" where there are several ACCESS applications (eg. "MYDB.MBD") What i want to do is to write an HTML page to launch MYDB.MDB Something like this: <html> ... <input type=button value="MY DB" onclick="launch('\\MYSERVER\MYFOLDER\mydb.mdb')"> ... </HTML> <script language="Javascript"> function launc(sApp) { window.open(sApp,...) } </script> This code almost work. The problem is that when i click the button, a input box opens asking me to save or open from that location. Does anyone have a clue on how can i open the ACCESS application without any message? Thanks. |
|
#2
|
|||
|
|||
|
Does the client have access to \\MYSERVER (i.e. are you on an intranet) or is it over the web? If it's on an intranet, then just open the access file in a new window, and if the client has access installed then it will load it automatically.
|
|
#3
|
|||
|
|||
|
Hey mytch!
Yes, i'm on an intranet and the client has access to \\MYSERVER I have two different situations: 1-window.open('\\MYSERVER\MYXLS.XLS',...) 2-window.open('\\MYSERVER\MYMDB.MDB',...) The first one open automatically (no questions asked...) The second open an input message where you have to choose between save to disk or open from that location. What i would like to prevent is that anoying message, and always open from that location. If you know something to work this out, let me know, please. Thanks. |
|
#4
|
|||
|
|||
|
Hmmmm. You're going to be hard pressed finding a solution with JavaScript. It's to do with the header types that the access file is sending to the client.
I know this is a stupid question, but does the client PC have Microsoft Access installed on it? |
|
#5
|
|||
|
|||
|
Yes, the client has Office 2000 installed.
When i choose open from that location, the access starts and loads my application. It's stupid... I don't understand... It works whit PDF, PPT, PPS, XLS, and so on... But it doesn't work with MSACCESS! I think Bill has enough money already. he has no need to rush things any more... |
|
#6
|
|||
|
|||
|
I'm not sure if there is a way around this that would rely solely on the scripting in the web page. You may need to change the settings in the user's browser. In IE, under Tools/Internet Options/Security, check Local Intranet and select custom level, and check that the setting for Miscellaneous/Access Data Sources Across Domains is set to Enable rather than Prompt.
|
|
#7
|
|||
|
|||
|
Try creating an autoexec in access and turn off options that allow you to open file.
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft Access Development > Launch access application from web page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|