Download pop-up

Is this possible with php?

Page 1 of 1

8 Replies - 3933 Views - Last Post: 12 February 2007 - 09:55 PM

#1 Boris_zZz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 20-May 05

Download pop-up

Posted 12 February 2007 - 04:19 PM

hey guys, just wondering if this is possible with php:

say a user clicks a link to download a file - the user will then be taken to a new page where their download will pop-up (a save-file window)...
the new page will display some a form of some kind that the user can voluntarily fill in following the commencement of the download...

any suggestions will be helpful !

-boris
Is This A Good Question/Topic? 0
  • +

Replies To: Download pop-up

#2 snoj  Icon User is offline

  • Married Life
  • member icon

Reputation: 84
  • View blog
  • Posts: 3,564
  • Joined: 31-March 03

Re: Download pop-up

Posted 12 February 2007 - 07:42 PM

This is html/javascript.

Moved.
Was This Post Helpful? 0
  • +
  • -

#3 Boris_zZz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 20-May 05

Re: Download pop-up

Posted 12 February 2007 - 08:04 PM

View Posthotsnoj, on 12 Feb, 2007 - 07:42 PM, said:

This is html/javascript.

Moved.


ah yes, thanx :)
Was This Post Helpful? 0
  • +
  • -

#4 haveacigar  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 03-February 07

Re: Download pop-up

Posted 12 February 2007 - 08:07 PM

View PostBoris_zZz, on 12 Feb, 2007 - 08:04 PM, said:

View Posthotsnoj, on 12 Feb, 2007 - 07:42 PM, said:

This is html/javascript.

Moved.


ah yes, thanx :)


I would imagine it would involve meta refresh after you click the save file link... just to point you in the right direction..
Was This Post Helpful? 0
  • +
  • -

#5 Boris_zZz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 20-May 05

Re: Download pop-up

Posted 12 February 2007 - 08:29 PM

View Posthaveacigar, on 12 Feb, 2007 - 08:07 PM, said:

View PostBoris_zZz, on 12 Feb, 2007 - 08:04 PM, said:

View Posthotsnoj, on 12 Feb, 2007 - 07:42 PM, said:

This is html/javascript.

Moved.


ah yes, thanx :)


I would imagine it would involve meta refresh after you click the save file link... just to point you in the right direction..


ah ok, but i thought clicking the save-file button is a browser function - how would i implement code in my webpage that is able to listen to when a user has clicked the save file button...

so far: i have used this

<body onload="java script:window.open('file.html');">


that opens a new window which directs the user to the file ....

<head>
<script type="text/javascript">
	  <!-- hide
		 window.location = "test.zip"
	  // done hiding -->
	</script>
</head>



unfortunately the pop-up window is blocked in FF...
is there a way around this?
Was This Post Helpful? 0
  • +
  • -

#6 William_Wilson  Icon User is offline

  • lost in compilation
  • member icon

Reputation: 205
  • View blog
  • Posts: 4,807
  • Joined: 23-December 05

Re: Download pop-up

Posted 12 February 2007 - 09:19 PM

it should only be blocked if scripts are disabled. You will have to post a warning to enable scripts.
Was This Post Helpful? 0
  • +
  • -

#7 snoj  Icon User is offline

  • Married Life
  • member icon

Reputation: 84
  • View blog
  • Posts: 3,564
  • Joined: 31-March 03

Re: Download pop-up

Posted 12 February 2007 - 09:19 PM

Quote

unfortunately the pop-up window is blocked in FF...
is there a way around this?

If there was, then there wouldn't be much use for a popup blocker.

Methinks that it mainly has to do if the user invokes the popup or not. That is I click something, so a window opens. I think.
Was This Post Helpful? 0
  • +
  • -

#8 Boris_zZz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 20-May 05

Re: Download pop-up

Posted 12 February 2007 - 09:36 PM

View Posthotsnoj, on 12 Feb, 2007 - 09:19 PM, said:

If there was, then there wouldn't be much use for a popup blocker.

Methinks that it mainly has to do if the user invokes the popup or not. That is I click something, so a window opens. I think.


yeh i think ur right - the only reason the pop-up is being disallowed is because the user did not click anything,

ok so im thinking - is it possible to invoke two actions from one user event - eg a user clicks a link to dload a file (the save-file window will then invoke), and at the same time a new window with a new webpage is loaded?
Was This Post Helpful? 0
  • +
  • -

#9 Boris_zZz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 18
  • Joined: 20-May 05

Re: Download pop-up

Posted 12 February 2007 - 09:55 PM

View PostBoris_zZz, on 12 Feb, 2007 - 09:36 PM, said:

yeh i think ur right - the only reason the pop-up is being disallowed is because the user did not click anything,

ok so im thinking - is it possible to invoke two actions from one user event - eg a user clicks a link to dload a file (the save-file window will then invoke), and at the same time a new window with a new webpage is loaded?


ok so heres a quick fix (works fine in FF - i still get a prompt in IE - even though active scripting is set to 'enabled' and
not prompt)

Click<a href="test.zip" onclick="java script:window.open('test.html');">here</a>



Clicking the above link will open a save-file prompt for the test.zip file and open direct the user to test.html, simple and quick :)

-boris

This post has been edited by Boris_zZz: 12 February 2007 - 09:57 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1