?
Solved

HTML Button

Posted on 2008-06-26
7
Medium Priority
?
169 Views
Last Modified: 2010-04-21
I have a webpage with a button on a form, is there a way to when the user clicks on the button it will open up excel and the file located in \\wlls\208\bobby.xls.
0
Comment
Question by:ASOSWE
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 11

Expert Comment

by:asafadis
ID: 21872616
I'm not sure if the URL '\\wlls\208\bobby.xls' would work... but this is the idea:
<a href="\\wlls\208\bobby.xls"><button>Download Excel File!<button></a>

Open in new window

0
 
LVL 18

Accepted Solution

by:
carlnorrbom earned 2000 total points
ID: 21872871
Hi,

A more smooth implementation might be:

<input id="btnOpenExcel" type="button" value="Open bobby.xls" onclick="Javascript:window.open('file://wlls/208/bobby.xls');"/>

Try it out and let me know.

/Carl.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 21872885
asafadis: Never wrap a button in a link
Instead use a form or the onClick
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 11

Expert Comment

by:asafadis
ID: 21874411
@mplungjan:
the form... ok
"onclick" has the risk of not working if javascript is disabled in the client's computer.  It's an unnecessary risk.  Using a form, for example, is a perfectly javascript-independent solution that does the same thing.


why not wrap a button with a link?  just curious...
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 21875403
because many browsers will not understand what you click, the link or the button
0
 
LVL 18

Expert Comment

by:carlnorrbom
ID: 21923757
Hi,

Did you manage to get this running or?

/Carl.
0
 

Author Closing Comment

by:ASOSWE
ID: 31470885
yes, thank you
0

Featured Post

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question