Dynamically Resize A Browser Window....Javascript help
20 Replies - 64962 Views - Last Post: 10 March 2009 - 06:49 PM
#1
Dynamically Resize A Browser Window....
Posted 28 August 2002 - 01:41 PM
Replies To: Dynamically Resize A Browser Window....
#2
Re: Dynamically Resize A Browser Window....
Posted 28 August 2002 - 04:44 PM
// resize the current window to the specified width,height parent.resizeTo(width,height);
Cheers Sam
#3
Re: Dynamically Resize A Browser Window....
Posted 29 August 2002 - 06:09 AM
#4
Re: Dynamically Resize A Browser Window....
Posted 29 August 2002 - 06:55 AM
#5
Re: Dynamically Resize A Browser Window....
Posted 29 August 2002 - 07:12 AM
#6
Re: Dynamically Resize A Browser Window....
Posted 29 August 2002 - 08:04 AM
To me, I would thing you'd want to size the content with a standard size window that you know the user will be able to view.
What type of content is it? Images? What sizes do you anticipate?
#7
Re: Dynamically Resize A Browser Window....
Posted 29 August 2002 - 08:26 AM
skape999, on Aug 29 2002, 09:12 AM, said:
personally, I'd pick server-side over javascript wherever possible. It's not painstaking at all (unless you aren't familiar with the server-side language). And also, then you could format the info in any way you desire. Then just pass the values back into the javascript for the window resize, and you're all set!
#8
Re: Dynamically Resize A Browser Window....
Posted 29 August 2002 - 08:29 AM
In theory, yes, but my content varys from one line up to approximately twenty, with a fixed width. So unless someone is using a screen the size of their cell phone's to view my site it wouldn't be a problem. The content is just text, with some of it linked. If it were my call this wouldn't be an issue, but becuase I work with govt. employees that feel the need to flex their power to the fullest I constantly have to jump through hoops. Case in point, I could make the browser one uniform size that would fit everything nicely, but for the instances where there is less than the maximum amount of content my client doesn't want to see any blank space and in fact requested specifically what I am asking help for. Frustration is a feeling I have grown very familiar with.
#9
Re: Dynamically Resize A Browser Window....
Posted 29 August 2002 - 08:32 AM
klewlis, on Aug 29 2002, 09:26 AM, said:
skape999, on Aug 29 2002, 09:12 AM, said:
personally, I'd pick server-side over javascript wherever possible. It's not painstaking at all (unless you aren't familiar with the server-side language). And also, then you could format the info in any way you desire. Then just pass the values back into the javascript for the window resize, and you're all set!
Therein lies the problem, I am not familiar with server-side language, not to mention my limited experience with javascript.
#10
Re: Dynamically Resize A Browser Window....
Posted 29 August 2002 - 09:30 AM
Does the server you are running this on have access to PHP and if you give me an example of one of the pages so I can see the code or how you are displaying it I could better suggest a solution.
#11
Re: Dynamically Resize A Browser Window....
Posted 29 August 2002 - 10:18 AM
Attached File(s)
-
soft_track.cfm (6.72K)
Number of downloads: 55
#12
Re: Dynamically Resize A Browser Window....
Posted 29 August 2002 - 10:29 AM
Attached image(s)
#13
Re: Dynamically Resize A Browser Window....
Posted 29 August 2002 - 10:30 AM
Attached image(s)
#14
Re: Dynamically Resize A Browser Window....
Posted 29 August 2002 - 05:14 PM
#15
Re: Dynamically Resize A Browser Window....
Posted 29 August 2002 - 09:23 PM
For example, say each table row is 25 pixels in height, you could add this to the head of the popup page (assuming queryName is the name of your cfquery and 500 pixels is the width you want):
<cfset windowHeight=queryName.RecordCount*25> <script> parent.resizeTo(500,<cfoutput>#Trim(windowHeight)#</cfoutput>); </script>
|
|

New Topic/Question
Reply


MultiQuote






|