Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

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 December 30th, 2001, 01:42 AM
Tantalus Tantalus is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 185 Tantalus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 38 m 35 sec
Reputation Power: 8
Send a message via ICQ to Tantalus Send a message via AIM to Tantalus
more of a java script.. but need some help

im a php guy, and I need to use some java to get something done... my php gets an image height and size and passes it to this function to open a window:


<script language="JavaScript">
<!--//

function ShowLarge(Url, width, height)
{
large_image_win = window.open('large.php?img=' + sUrl, 'large_image_win', 'width='+width, 'height='+height,'scrollbars=no','resizable=no','status=no','location=no','menubar=no');
large_image_win.focus();
}
//-->
</script>

width and height are variable containing my width and height which I got from my php script. here is how it outputs the link:

echo "<td><a
href=\"javascript: ShowLarge('$file', '$size[0]', '$size[1]');\">";
file being the url, size[0] being width, size[1] being height. All of the php is right, when i hover over the link i see ShowLarge('url', '400', '400') soo... its that first script that is wrong... I havnt a clue what is wrong with it.

The problem is that the window isnt the right size.
__________________
--Tantapants

Reply With Quote
  #2  
Old December 30th, 2001, 03:38 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,815 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 1 Day 14 m 37 sec
Reputation Power: 278
Hi, sorry but this subject is off topic here, post it at http://forums.devshed.com/forumdisplay.php?forumid=1 and remember to delete it!
Thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > more of a java script.. but need some help


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway