SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Addict matt_12511's Avatar
    Join Date
    Feb 2004
    Location
    Michigan
    Posts
    256
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Alternate to window.alert

    I copied some code I found online yesterday to create an alternate alert window. But for some reason the window doesn't pop up in the middle of my screen. Instead it appears underneath my footer.

    If you go to:

    http://www.utakeitback.org/411/brief...ndobabble.html

    Do NOT click "I accept the terms and conditions" and click "Continue". Then you will notice that the popup alert message appears below the footer.

    I posted this question here because I think it is a CSS issue and not a problem with the Javascript.

    Any ideas?

    Thanks,

    Matt

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,048
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)

    poor mark-up

    It's not a CSS issue. It's poor mark-up (not well-formed). If you run the URL through the validator it will give you the answer.

  3. #3
    SitePoint Addict matt_12511's Avatar
    Join Date
    Feb 2004
    Location
    Michigan
    Posts
    256
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I went to validator.w3.org and ran my page through until I cleared all the errors and now all I have is 2 warnings.

    The alert message still appears on the bottom. If it has something to do with the warnings then I need help determining how to write the line of code without the &&.

    Any ideas?

    Thanks,

    Matt

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,048
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)

    alert

    And I would have bet that it was the missing </head> tag that was causing the problem.

  5. #5
    SitePoint Addict matt_12511's Avatar
    Join Date
    Feb 2004
    Location
    Michigan
    Posts
    256
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am still trying to determine the problem.

    If you go to my page (listed above). You will find that the alert message is still appearing at the bottom of the page. Here is the site I found the code on (and a sample of how the alert should appear).

    http://slayeroffice.com/code/custom_alert/

    I am still not sure if this is a CSS issue or a Javascript issue.

    Any ideas?

    Thanks,

    Matt

  6. #6
    SitePoint Addict matt_12511's Avatar
    Join Date
    Feb 2004
    Location
    Michigan
    Posts
    256
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Solved.

    I posted this question in the Javascipt forum as well and I was told I didn't add the CSS from the example. So I had to cut and paste his CSS as well.

    Thanks for the help.

    Matt

  7. #7
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,048
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)

    DOM alert

    That's good to hear. Last time I checked the page youi were busy making changes so I figured I'd better wait until it settled down again.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •