User Profile

Collapse

Profile Sidebar

Collapse
LorenW
LorenW
Joined: Mar 31 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • LorenW
    replied to refreshing html document
    My pleasure to be able to help. By the way, I have been told since my post to you that the proper way to do the embedded JavaScript script tag is as follows below, so I wanted to share that just incase:

    Code:
    <script type="text/javascript">
    <!--
    
    /* Your code goes here */
    
    // -->
    </script>
    Good luck!
    See more | Go to post

    Leave a comment:


  • drhowarddrfine, I really appreciate your assistance.

    Your first suggestion of adding the 10px to the top of the blue box doesn't work for me because for the design of the page I need the top of the blue box to be flush with the green outline of the container DIV when the top red box is not there. (You can see that case if you click each toggle button once).

    But your second suggestion is simple and works like a charm....
    See more | Go to post

    Leave a comment:


  • drhowarddrfine, point well taken, but then why does the sample code I provided work as expected when changing the margin-bottom references to margin-top?

    This seems like inconsistent behavior to me...
    See more | Go to post

    Leave a comment:


  • LorenW
    replied to refreshing html document
    I am no expert, but maybe something like this might help:

    Code:
    <script language="JavaScript">
    
        window.setTimeout('runAfterSomeTime()', 5000); // Five seconds
    
        function runAfterSomeTime(){
            document.getElementById('message').innerHTML = "Goodbye my friend."
        }
    
    </script>
    
    <span id="message">Hello
    ...
    See more | Go to post

    Leave a comment:


  • LorenW
    replied to refreshing html document
    Depending on what you are trying to do, it may not be necessary to reload the page to display the new message in the place of the old one. Can you give more specifics?
    See more | Go to post

    Leave a comment:


  • So is this a case when IE and Safari are handling positioning incorrectly? Does this mean I need to use some browser specific code to handle this properly in all cases?

    Here is more detailed example of what I am trying to accomplish. The blue box is meant to be an overlay. In all cases, I would like the blue box to cover the lower red box, when it is visible (and not cover the gap). Sometimes the top red box is not there (as you can...
    See more | Go to post

    Leave a comment:


  • Shouldn't these two boxes have a vertical space separating them in Firefox?

    I am a CSS newbie, but do not understand why Firefox 2.0.0.13 (win) does not honor the margin-bottom in the following code when IE7 and Safari 3.1 do.

    Shouldn't the two boxes have a vertical space in-between?

    Perhaps someone can help? Thanks...!

    Code:
    <style>
    .container {
        width:300px;
        height:300px;
        border: 1px solid #0f0;
    }
    
    .box {
    ...
    See more | Go to post
No activity results to display
Show More
Working...