Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Popups and linking


Message #1 by "SD-Studios" <info@s...> on Tue, 25 Jun 2002 18:57:25 +0200
My understand is that you cannot specify a value for the "file" type of
INPUT, since this could allow malicious code to generate a form on the
fly, set the value of a file to upload and submit the form without the
user even knowing that one of his/her files has just been uploaded.  And
now the site owner has a copy of.....your Quicken account info, or
anything else he/she can work out the file path to.


-----Original Message-----
From: Greg Dunn [mailto:greg.dunn@n...] 
Sent: Thursday, June 27, 2002 4:18 PM
To: javascript
Subject: [javascript] RE: Popups and linking

If it's the same file every time then use this:

<INPUT TYPE="file" Name="fileUpload" ID="fileUpload"
value="c:\myPath\myFile.txt">

But I'm telling you you need to process the file on the server side and
that
means ASP, JSP, Java Servlet or PHP or ...

Especially when you're sending the file to an ISP's shared server.  I'll
bet
money they won't give rights to public or Internet Guest User (depending
on
operating system) to write files to their machines via HTTP.

If you're just scheduling a periodic upload of the same file use FTP.
If
it's something else you need to program on the server.


Greg



-----Original Message-----
From: Joe Monteiro [mailto:t.monteiro@c...]
Sent: Thursday, June 27, 2002 12:28 PM
To: javascript
Subject: [javascript] RE: Popups and linking


Hi Gerard.
Thanks a lot for your quick response.
The solution you mentioned is ok. Works fine. I was looking to upload a
specific file e.g c:\hotfile.wav to a ISP web server "
www.myweb.com/httpdocs/visitor' without having to browse to choose a
file. This file should be given as a variable string. The idea is to
press a button and this file will be sent automatically to the ISP web
server.
Anyhow if you can help me with this I will appreciated
Many thanks
Joe


-----Original Message-----
From: Gerald Rothaus [mailto:jerry@p...]
Sent: Thursday, June 27, 2002 4:30 PM
To: javascript
Subject: [javascript] RE: Popups and linking

I'm also working on such a thing.
I have to upload a text file containing orders and then append them to a
database on the server.
I did get this far, this fills a text box with the path to the file:
<INPUT TYPE="file" Name="fileUpload" ID="fileUpload">
it gives a textbox and a button that says browse, opens a file search,
and puts the file&path in the textbox.

-----Original Message-----
From: Joe Monteiro [mailto:t.monteiro@c...]
Sent: Wednesday, June 26, 2002 2:40 PM
To: javascript
Subject: [javascript] RE: Popups and linking

Hi there,
I am looking for something very simple but I am not bvery technical!!
I want to upload a certain file once a day from my pc into my ISP
server, could I do this with javascript? Could you help me?
Many many thanks
Joe


-----Original Message-----
From: Christine Sun [mailto:Christine_Sun@c...]
Sent: Tuesday, June 25, 2002 7:43 PM
To: javascript
Subject: [javascript] RE: Popups and linking

i think you can close the popup using self.close();
then redirect the page with target="_parent" ?

-----Original Message-----
From: SD-Studios [mailto:info@s...]
Sent: Tuesday, June 25, 2002 9:57 AM
To: javascript
Subject: [javascript] Popups and linking


Hi!

Im using a page with popups in which product specifications are showed.
When
pressing a download-link in that popup I want the popup to close and
then in
the original browser you get redirected to the page linked from the
popup.
Howto do this? Im not that much into JavaScript.. Thanks!!

--
MVH, Martin Johansson
CEO & Project Supervisor
SD-Studios, Squaremedia HB
+46 (0)70-3003320
http://www.sd-studios.com
http://www.swehost.com



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20





---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20




---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20





---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20




---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


  Return to Index