|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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!
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > more of a java script.. but need some help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|