473,325 Members | 2,805 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,325 software developers and data experts.

IE and DIV; I am slowly being driven insane.

I wouldn't consider myself a newbie, but this problem is making desire
nothing more than a sledgehammer and enough money to buy a new computer
(but don't kill the messenger, I suppose).

I'm trying to make a site-specific javascript prompt box. That is, I
need to get info from the user when they click a link to activate an
AJAX function. I was using a simple prompt() to get it, but then I
looked at my site in aIEe and realized what a POS prompt box they had
going. So I decided to make my own, and my troubles began.

The box actually works flawlessly, even if the code is a garbled mess,
and here's what happens:
1) user clicks link
2) box pops up
3) user enters data
4) box disappears
The box is a DIV, and I'm loading a DIV inline in the HTML, and then
using javascript to build the content. The DIV itself has been
repositioned via CSS.

Here's the problem: the DIV is taking up space in the table it's a
child of. That is, there is an empty DIV of 0x0 pixels when the page
loads. When the page loads, the DIV is repositioned elsewhere. After
the page loads, some javascript comes in and gives the DIV content,
stretching it. At this point, the DIV begins taking up space at its
original place of residence.

Result: pain; suffering; etc.

Here's a link to the site:
http://www.routeslipper.org/testbin/nodes/nodes.new.php
The bug is on line 63 in the code (just south of the first big JS
block). Unfortunately, it's all (as I said) a garbled mess, as I'm
stupid in my use of tables (need to wean...), so rather than Ctrl+C
Ctrl+V a line in here, I figure it's best just to provide context.

The box pops up when you click "quick zoom". Try "palo alto, ca" if you
want the map to do something.

SERIOUS NOTE: this thing is no problem in Firefox. It was, but then I
height:0px'd it. Wooo, bootstrapping.

The way I see it, I'm overlooking something painfully obvious. As of
right now, I'm just hoping the answer isn't, "Well, you need to
restructure the page."

Thanks for the help, and happy new year.

Jan 1 '06 #1
9 1678
K. Woodward wrote:

Here's the problem: the DIV is taking up space in the table it's a
child of. That is, there is an empty DIV of 0x0 pixels when the page
loads. When the page loads, the DIV is repositioned elsewhere. After
the page loads, some javascript comes in and gives the DIV content,
stretching it. At this point, the DIV begins taking up space at its
original place of residence.

Result: pain; suffering; etc.

Here's a link to the site:
http://www.routeslipper.org/testbin/nodes/nodes.new.php
The bug is on line 63 in the code (just south of the first big JS
block). Unfortunately, it's all (as I said) a garbled mess, as I'm
stupid in my use of tables (need to wean...), so rather than Ctrl+C
Ctrl+V a line in here, I figure it's best just to provide context.

WTF are you talking about? There is no problem description here, just a
lot of vague whining and hand wringing.
What I saw in IE6 (there is no map at all in IE5.x):
- the popup box worked
- the palo alto map displayed
- the hybrid map did not work
- IE went catatonic when I clicked on a balloon

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jan 1 '06 #2
The big honkin' whitespace underneath the "quick zoom" link. Maybe it's
not showing up elsewhere? Cleared my cache and it's still there for me.
Maybe your computer is special; maybe mine is special, who knows? But
thanks for checking it out anyway.

Jan 2 '06 #3
K. Woodward wrote:
I wouldn't consider myself a newbie, but this problem is making desire
nothing more than a sledgehammer and enough money to buy a new computer
(but don't kill the messenger, I suppose).
Exactly how would your new computer help people who visit your pages?
I'm trying to make a site-specific javascript prompt box.


Stop trying that. Problem solved. If you still wish to author in a
WWW-hostile way, note that the techniques you are trying to use are not
part of HTML, which is our topic here.
Jan 2 '06 #4
Aside from ignoring your petty affronts, I'd have to say that inasmuch
as my problem is arising from a DIV, which, to my knowledge, is a part
of the HTML specifications, my techniques are in some obscure technical
sense "part of HTML". In case you disagree, I've found this handy
little link:
http://www.w3.org/TR/REC-html40/stru...l.html#h-7.5.4
But it's only the WWWC. What do they know?

In other news, thanks for being so helpful, and taking time out of your
life to completely ignore the problem at hand. My friend, the only
thing here that is WWW-hostile is you.

By way of these two replies, I'm assuming there's no workaround? Or
that no one here knows of one?

Jan 3 '06 #5
K. Woodward wrote:
Aside from ignoring your petty affronts,
Jukka is known for being terse, but he's rarely wrong.
I'd have to say that inasmuch
as my problem is arising from a DIV,
Nobody has pointed you to this yet, I see.
<http://validator.w3.org/check?verbose=1&uri=http%3A//www.routeslipper.org/testbin/nodes/nodes.new.php>
which, to my knowledge, is a part
of the HTML specifications, my techniques are in some obscure technical
sense "part of HTML". In case you disagree, I've found this handy
little link:
http://www.w3.org/TR/REC-html40/stru...l.html#h-7.5.4
But it's only the WWWC. What do they know?
More than most of us ... <g>
In other news, thanks for being so helpful, and taking time out of your
life to completely ignore the problem at hand. My friend, the only
thing here that is WWW-hostile is you.
I rather enjoy Jukka's replies.
By way of these two replies, I'm assuming there's no workaround? Or
that no one here knows of one?


Have you looked at your page with JavaScript disabled yet?

...and I love the purple background.

--
-bts
-Warning: I brake for lawn deer
Jan 3 '06 #6
K. Woodward wrote:
Aside from


Oh, and I forgot to mention; please read this page before replying, so
those of us who use real newsreaders don't have to unhide already-read
messages to see what you're replying to:

http://www.safalra.com/special/googlegroupsreply/

--
-bts
-Warning: I brake for lawn deer
Jan 3 '06 #7
"K. Woodward" <kl******@gmail.com> wrote in news:1136267973.399957.13790
@g44g2000cwa.googlegroups.com:
Aside from ignoring your petty affronts, I'd have to say that inasmuch
as my problem is arising from a DIV, which, to my knowledge, is a part


Who? What problem? You've left nothing in this post to indicate either.
I have no idea what you are talking about so can certainly not help you.

--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
http://alamo.nmsu.edu/ There are 10 kinds of people.
Those that understand binary and those that don't.
Jan 3 '06 #8
K. Woodward wrote:
The big honkin' whitespace underneath the "quick zoom" link. Maybe it's
not showing up elsewhere? Cleared my cache and it's still there for me.
Maybe your computer is special; maybe mine is special, who knows? But
thanks for checking it out anyway.

Offhand I would say it is the "height:350px" in the div that is causing
it. Since that page does not have a doctype indicated, IE is running in
quirks mode. Add
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
or
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jan 3 '06 #9
First I'd like to say shutup to all those who constantly flame users who post in the wrong section. Help them out if you can and then kindly tell them where to post next time.

As for the solution to your problem: Firefox and IE handle an empty div differently both when the page loads and after any javascript/AJAX is performed on the div. To solve your problem you can setup two css classes for your popup div and change the div's assigned style when hiding/showing, or just modify the display property in your javascript. Either way you need to set the div's display to none when the popup is hidden.

ie: namedDiv.style.display = "none";
May 1 '06 #10

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

Similar topics

61
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
2
by: Grey Knight | last post by:
Here's a problem which is driving me slowly insane. Using GCC version 3.3.1 on SuSE 9.0, I keep getting "undefined reference to `function'"-type errors for no apparent reason! It's driving me...
2
by: Nikolai Onken | last post by:
Hey, I am trying to learn the exact behavior of CSS and was just placing a couple of <div>'s after each other. Each of the <divhas a <pwithin and some text within the <p> Now when I add a...
4
by: vunet.us | last post by:
I have an SVG file and draggable div on one page. When I move div over this SVG file, it looks like div loses control and detaches from the mouse. If I do it slowly, div seems to barely follow the...
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...
0
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: 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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.