LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-10-2003, 01:22 PM   #1
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Rep: Reputation: 30
php open in a new window


I want to modify a php to open (on the push of a button) to open its content in a new window. how can I do that ?
(i have squirrelmail and on the push of the login button i want the content of the mailbox to open in a new window)
thank you!
 
Old 12-11-2003, 07:25 PM   #2
Saraev
Member
 
Registered: Apr 2002
Location: Los Gatos, CA
Distribution: boring redhat 9
Posts: 163

Rep: Reputation: 30
I don't think PHP will do that on it's own, you need to include some javascript for it.


<!-- Begin
function popUpLogin(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,lo
cation=0,statusbar=0,menubar=0,resizable=1,width=200,height=200,left = 100,top =
100');");
}

Then call it with <a href="javascript:popUpLogin('/filename.php')">

edit:
For the record, I nicked this off the web somewhere, but the owner's web page seems to be long gone.

Last edited by Saraev; 12-11-2003 at 07:27 PM.
 
Old 12-12-2003, 07:01 AM   #3
spank
Member
 
Registered: Aug 2003
Location: Romania
Distribution: Ubuntu 6.06
Posts: 278

Original Poster
Rep: Reputation: 30
http://www.linuxquestions.org/questi...hreadid=124665
 
Old 12-12-2003, 07:05 AM   #4
nephilim
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (server), Kubuntu (desktop)
Posts: 248

Rep: Reputation: 30
Your question has already been answered in the thread above (a thread that you started yourself).

I don't know why you are double posting.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript - what to use rather than window.close() then window.open() davee Programming 2 04-11-2005 09:28 AM
open in same window burnt_toast Fedora 6 09-29-2004 12:45 AM
Only can open one window foxc98 Linux - General 3 08-09-2004 03:36 PM
php open in a new window spank Programming 7 12-12-2003 04:00 PM
Open Source window$ manojrkrish Linux - General 4 12-03-2002 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration