473,321 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Max width for an DOM element?

I am creating a dynamic timeline using javascript. I previously used
Google Maps API to create the same effect, but with their recent
changes to APIv2, it doesn't work the same and loses functionality.

Working example with original Google Code:
http://www.endeavorpub.com/wiki/map.php

So I deceided to create my own dhtml timeline that does exactly what I
want it to and is not limited by Google API...

Here is the test page:
http://www.endeavorpub.com/wiki/test.html

My question: Is there a maximum width that you can apply to an HTML
element? If you click the "+" button until "SetZoom" is 19, the
program tries to set the width of the moveable DIV to 2.09715e+8px.
Will this not work on any/all browsers?

Feel free to tear apart the code, I'm sure theres many other problems
at this point, but I want to focus on creating an interface that allows
the user to seemlessly scroll from 4000 BC to the current date at any 1
of ~22 zoom levels. (yeah, I'll get the Julian part working again
later..)

I may <i>eventually</i> try to release it as a standalone API for other
deveopers to use...

Thank you for your feedback!
- JS

Apr 19 '06 #1
1 1463
jshanman wrote:
I am creating a dynamic timeline using javascript. I previously used
Google Maps API to create the same effect, but with their recent
changes to APIv2, it doesn't work the same and loses functionality.

Working example with original Google Code:
http://www.endeavorpub.com/wiki/map.php

So I deceided to create my own dhtml timeline that does exactly what I
want it to and is not limited by Google API...

Here is the test page:
http://www.endeavorpub.com/wiki/test.html

My question: Is there a maximum width that you can apply to an HTML
element? If you click the "+" button until "SetZoom" is 19, the
program tries to set the width of the moveable DIV to 2.09715e+8px.
Will this not work on any/all browsers?

Feel free to tear apart the code, I'm sure theres many other problems
at this point, but I want to focus on creating an interface that allows
the user to seemlessly scroll from 4000 BC to the current date at any 1
of ~22 zoom levels. (yeah, I'll get the Julian part working again
later..)

I may <i>eventually</i> try to release it as a standalone API for other
deveopers to use...

Thank you for your feedback!
- JS


I've come up with a differant solution, but I'm still curious if there
is a maximum width that can be applied to an element? Would it be the
largest integer supported by the browser?

- JS

Apr 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: delerious | last post by:
I need to determine an element's width and height in pixels (not including padding, border, and margin) in Javascript. The element will not have width or height styles specified. In Mozilla, I...
2
by: Kai Grossjohann | last post by:
I would like to put a text input field (in the sense of <input type="text">) and an image next to each other, where I know the size in pixels of the image, and I know the total width in em. I...
8
by: BiNZGi | last post by:
Hi I have reduced the problem to this code: <form> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td><input type="text" style="width: 100%;" value="Lorem ipsum dolor...
26
by: puzzled | last post by:
Okay, so my subject sounds a bit crass. As much as I'd like to totally embrace css and avoid "deprecated" usage, sometimes the deprecated stuff is so much easier and more effective. Plus, it at...
14
by: Florian Brucker | last post by:
Hi! Here's what it should look like: <style type="text/css"> span.h1 { border-style:solid; border-width:0px; border-color:#000000; border-bottom-width:2px;
6
by: Thomas Mlynarczyk | last post by:
Hi! I have noticed something strange: I have an element styled to have padding, a border and some margin. The element contains preformatted text. When the browser window is made narrow enough, a...
7
by: R0bert Nev1lle | last post by:
Internet Explorer always presents me with a challenge (partial repost). The current issue involves emulating max-width in IE using the technique described by Svend Tofte. ...
4
by: mike eli | last post by:
Hi, I have several absolute positioned elements inside an absolute positioned DIV. I would like one of the nested elements to have a dynamic width. I set it's left and right attributes to 5, so...
1
by: yb | last post by:
Hello, I've been trying to emulate css min-width and max-width in IE. I've looked at various methods on the web, but none seemed to truly emulate min-width / max-width, or at least not very...
5
by: Summercool | last post by:
wow... i didn't know that, for <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:// www.w3.org/TR/html4/loose.dtd"> <span style="width: 100px; background:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.