473,909 Members | 4,177 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dowload script

does anybody have example of file download using
java script

thanks
dave
dv*****@sbcglob al.net
Jul 23 '05 #1
13 1932
dvsbis wrote on 15 feb 2005 in comp.lang.javas cript:
does anybody have example of file download using
java script


<a href='myFile.tx t'
onclick='alert( "Use rightclick + save target as");return false'>
myFile.txt</a>

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #2
Evertjan. wrote:
<a href='myFile.tx t'
onclick='alert( "Use rightclick + save target as");return false'>


Oooh - making assumptions about the user's browser and mouse.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #3
David Dorward wrote on 15 feb 2005 in comp.lang.javas cript:
Evertjan. wrote:
<a href='myFile.tx t'
onclick='alert( "Use rightclick + save target as");return false'>


Oooh - making assumptions about the user's browser and mouse.


Clientside scripting always does make assumptions.

one-buttoned mouses eh?

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #4
Evertjan. wrote:
Clientside scripting always does make assumptions.
No it doesn't - not when you do capability testing with graceful fallback :)

Besides, that wasn't client side scripting, it was system feedback.
one-buttoned mouses eh?


Or no mouse and a keyboard. Or a touch screen. Or ...

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #5

"David Dorward" <do*****@yahoo. com> wrote in message
news:cu******** ***********@new s.demon.co.uk.. .
Evertjan. wrote:
Clientside scripting always does make assumptions.


No it doesn't - not when you do capability testing with graceful fallback
:)

Besides, that wasn't client side scripting, it was system feedback.
one-buttoned mouses eh?


Or no mouse and a keyboard. Or a touch screen. Or ...

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


My visitor stats inform me that 98.6% of my visitors are running IE or
Netscape on a MS windows system. If any other browser or operating system
visits my site they get a rude noise and a succinct message and get
redirected to http://www.WeAreAllTooPreciousToUseW...eWorldUses.com
Jul 23 '05 #6
In article <sZyQd.403059$X k.26126@pd7tw3n o>,
"Simon Wigzell" <si**********@s haw.ca> wrote:
My visitor stats inform me that 98.6% of my visitors are running IE or
Netscape on a MS windows system.


IE and other browsers can report that they are using any browser the
user wishes. I had to change iCab to say that it was IE on Windows
because some author only allowed IE in his site.

Every hear of Firefox?

Robert
Jul 23 '05 #7
Simon Wigzell wrote:
Or no mouse and a keyboard. Or a touch screen. Or ...
My visitor stats inform me that 98.6% of my visitors are running IE or
Netscape on a MS windows system.
What does that have to do with the input device that a user may use (through
choice or otherwise)?
If any other browser or operating system
visits my site they get a rude noise and a succinct message and get
redirected to http://www.WeAreAllTooPreciousToUseW...eWorldUses.com


How sad for you.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #8
Robert wrote on 16 feb 2005 in comp.lang.javas cript:
IE and other browsers can report that they are using any browser the
user wishes. I had to change iCab to say that it was IE on Windows
because some author only allowed IE in his site.


Personally,
I feel no need to accomodate users that give wrong browser info.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #9
Evertjan. wrote:
Robert wrote on 16 feb 2005 in comp.lang.javas cript:
IE and other browsers can report that they are using any
browser the user wishes. I had to change iCab to say that
it was IE on Windows because some author only allowed IE
in his site.


Personally,
I feel no need to accomodate users that give wrong browser info.


The information is only wrong where it is possible to say what would be
right. As the information in question usually originates in the HTTP
User-Agent header it would be the RFC for HTTP that defined what would
be right or wrong in the context of that header, and the HTTP RFCs make
no requirements of the content of the user agent headers. Indeed as the
RFC for HTTP 1.1 was written at a time when the most popular browser
around (IE 4) was itself spoofing by default it was probably not
practical for the authors of the RFC to make any more than suggestions
about its contents.

Richard.
Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
12994
by: Mike Daniel | last post by:
I am attempting to use document.write(pageVar) that displays a new html page within a pop-up window and the popup is failing. Also note that pageVar is a complete HTML page containing other java scripts. Being a javascript newbie and after significant testing, I suspect that the document.write fails after finding a </script> within pageVar. Does a trick exist that enables one to slightly alter pageVar whereby enabling...
2
2520
by: marcos | last post by:
sorry, but my english are very bad... how lto dowload visual basic 6.0 from internet?
3
2965
by: Water Cooler v2 | last post by:
Questions: 1. Can there be more than a single script block in a given HEAD tag? 2. Can there be more than a single script block in a given BODY tag? To test, I tried the following code. None of the script gets executed. Can someone please give me a direction as to what I may be missing? Thanks.
2
2978
by: bilaribilari | last post by:
Hi all, I am using Tidy (C) for parsing html pages. I encountered a page that has some script as follows: <script> .... var abc = "<script>some stuff here</" + "script>"; .... </script>
2
1503
by: comick | last post by:
Hello all, i have a asp.net c# web app 2.0 I have a pdf generation with a third part sw, but i cant download pdf in a new window, from a folder inside my web site. The code i try to use is this: ...pdf Generation.. Response.Clear(); Response.ContentType = "application/pdf";
19
3836
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
1
1797
by: nkamalnath | last post by:
hi, How to dowload a file using javascript.
2
1767
by: nbt725 | last post by:
Dear Sir, Hello ! I want to write a script to allow downloading a file from server, which first asks for the path to store the file and then downloads to user's local machine. Please guide me. Thanks & Regards, Naimesh Trivedi
1
47527
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script. What You Need Any recent...
0
11346
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10538
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8097
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7248
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5938
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4774
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3357
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.