JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 16th, 2000, 04:45 PM
ironlung_sw ironlung_sw is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 17 ironlung_sw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How would i open a new browser window (like when you use the window.open in javascript) using php? The reason i ask is because i need to open a new window when the user clicks on an image, and then the full size image is displayed in the new window. A while ago i wrote a javascript function that took in the image filename and dimensions, and then created a new window and wrote the html to it with the <img src> and everything. Of course, i can't do this now because the variables i need to pass to the function are dynamically generated, and the javascript is already written to the client's html page.

If anyone knows any ways around this, thanks in advance!
Comments on this post
Gran Roguismo agrees!

Reply With Quote
  #2  
Old July 16th, 2000, 05:57 PM
scream scream is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 456 scream User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 7 m 3 sec
Reputation Power: 13
Send a message via ICQ to scream
Can you post the javascript or URL to a demo page? Myself or someone else may be able to help you then.

Reply With Quote
  #3  
Old July 17th, 2000, 03:03 AM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 757 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 18 m 32 sec
Reputation Power: 14
Take your existing javascript code & then:
(eg)
<?php echo "<script>document.write("alert("this can be any valid javascript code with $vars if you want")")</script>";?>



------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL
Comments on this post
Gran Roguismo agrees!

Reply With Quote
  #4  
Old July 17th, 2000, 08:59 AM
ironlung_sw ironlung_sw is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 17 ironlung_sw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The function i had was:

Function ViewImage(imagetitle,filename)
{
var ImageView=window.open("", "newwin","height=150,width=200");
ImageView.document.write("<html>")
ImageView.document.write("<title>")
ImageView.document.write(imagetitle)
ImageView.document.write("</title>")
ImageView.document.write("<body>")
ImageView.document.write("<img src='")
ImageView.document.write(filename)
ImageView.document.write("'></body></html>")
}

This was replicated in each page. But the variables i need to pass to this function are generated from the php code.

Thanks for any help.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > php and javascript

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap