School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,123 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,980 people online right now. Registration is fast and FREE... Join Now!




Dynamically Resize A Browser Window....

2 Pages V < 1 2  

Dynamically Resize A Browser Window...., Javascript help

Arbigi

RE: Dynamically Resize A Browser Window....

10 Mar, 2009 - 05:49 PM
Post #21

New D.I.C Head
*

Joined: 6 Mar, 2009
Posts: 3

QUOTE(skyhawk133 @ 29 Aug, 2002 - 08:30 AM) *

Well, using a little serverside and a little javascript, I can picture someone counting the words or counting the <br>'s or <p>'s or whatever and based on that multiplying $x pixels by $y lines/words/whatever to figure out aprox how big the window should be.

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.


Might he be able to use all client-side scripting, by feeding the return into an array, separated as you describe, then stepping through it, doing a count? He could multiply the count value and the pixel value, feed the result into a variable, and use the variable as the length value.

I'm something of a novice, so this advice is worth exactly what you paid for it!

User is offlineProfile CardPM
+Quote Post

2 Pages V < 1 2
Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 02:02PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month