Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Unobnoxious pop-ups.

    It's not a secret that I absolutely despise web pages (as well as thier authors) that do not stay within the boundaries of MY browser window.
    Those who think that they can not live without popups, consider this.
    The script tested in IE6.0 and Moz1.3 and (of course) behaves better in gecko browser.
    If anyone needs a "close" button, I could use some in$piration
    Last edited by Vladdy; 03-28-2003 at 06:16 PM.
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #2
    Regular Coder
    Join Date
    Feb 2003
    Posts
    638
    Thanks
    0
    Thanked 0 Times in 0 Posts
    very nice!

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    I don't get it. What are we suppose to do on that page?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #4
    Regular Coder
    Join Date
    Aug 2002
    Location
    Spain
    Posts
    420
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Spookster
    I don't get it. What are we suppose to do on that page?
    enter a valid URL, press load and it opens a floating iframe with the url.

    I must say that it's an evil idea, however; I prefer popups: at least you can close and block them
    Don't resist to assimilation. Billions of Borgs can't be wrong!

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey that's pretty cool How did you do that elasticity thing when you're dragging it?
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #6
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Oh ok now I get it. I tried typing in some addresses and it kept getting errors and didn't load anything. Apparently I kept typing in addresses of sites that prevent themselves from being put into frames.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by brothercake
    Hey that's pretty cool How did you do that elasticity thing when you're dragging it?
    It's all in the code...
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    Beyond Lament
    Posts
    424
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Unobnoxious pop-ups.

    Originally posted by Vladdy
    ...I absolutely despise web pages (as well as thier authors) that do not stay within the boundaries of MY browser window...
    Sorry.
    Quíet Storm Designs ~ Art is not what you see, but what you make others see.
    · the Storms· || ·Ultraviolent Winter· || ·Was Einstein Wrong?· || ·It´s About Time!·

  • #9
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Great little thing you have there - I only have a small complaint about it: iframes are according to [HTML4] not resizable.

    Further, you're using a HTML version that doesn't include iframe (it's in [HTML4] and [XHTML1] Frameset and Transitional, and no others). A page isn't valid just because the source of it is valid - the generated content also must be valid. (Use a strict validating XML browser with scripting capabilities (no, I don't know of any, but anyway ;-) and your script should be throwing errors because of DTD violations)
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What can I say... I'm all for standards, but I'm not anal about them...
    Once there is "a strict validating XML browser with scripting capabilities" I will replace iframe with object
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #11
    Regular Coder
    Join Date
    Jun 2002
    Location
    Cincinnati, OH
    Posts
    545
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That is cool.

    I am not sure of anyway to put a close button on the iframe but you could create buttons on the top of your parent page which lists what windows are open. Then on click just getElementByID and close the appropiate iframe.

  • #12
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Err. The title bar (that you use to drag the window around) has nothing to do with iframe and can accomodate all the buttons you need. The hierarchy is
    window
    .|- title
    .|- client
    ..|- iframe
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #13
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Hmm, I just thought of a cool thing you could do with this - see CSS2 System Colours.

    You could get it to apply the system colour scheme to the window, further making it look like a real window.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #14
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Right ... so just to really confuse people we'll make it look exactly like a window ... except that you can't close it from the task bar or move it away from the parent window ...

    So if iframes are gone in XHTML strict, then maybe there's another way of doing it, by using the <object> tag to import the external file, maybe, or using XLINK. Maybe from that you could have like a "DOM overseer" that intercepts URL requests on the page you're looking at, and rewrites the <object>
    Last edited by brothercake; 03-28-2003 at 10:17 PM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #15
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by brothercake
    except that you can't close it from the task bar or move it away from the parent window
    Is not this pretty much the definition of MDI
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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