Welcome to the RaGEZONE - MMORPG development forums.

Javascript Popup Window that works with most browsers IE7+ help

This is a discussion on Javascript Popup Window that works with most browsers IE7+ help within the Coders' Paradise forums, part of the Evolution : RaGEZONE category; Do you guys know how to do this? I've checked all over google still couldn't find a solution. Also I ...

Results 1 to 11 of 11
  1. #1
    NTV
    Anime Network
    Rank
    Alpha Member
    Join Date
    Sep 2008
    Location
    /home/nyaatv
    Posts
    1,875
    Liked
    65

    Javascript Popup Window that works with most browsers IE7+ help

    Click
    Do you guys know how to do this?

    I've checked all over google still couldn't find a solution.

    Also I want the popup centered.

  2. #2
    Epic
    Rank
    Member +
    Join Date
    Dec 2008
    Posts
    1,384
    Liked
    341
    Steam ID: billybombill

    Re: Javascript Popup Window that works with most browsers IE7+ help

    Quote Originally Posted by NTV View Post
    What's this about?
    If you want a browser-type window use something such as
    PHP Code:
    function popupwindow(urltitlewh) {
      var 
    left = (screen.width/2)-(w/2);
      var 
    top = (screen.height/2)-(h/2);
      return 
    window.open(urltitle'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);

    Source: javascript - Center a popup window on screen? - Stack Overflow

    Sorry I didn't really think the word 'Window' through that much, I was thinking of a basic text window (I'm tired xD)

  3. #3
    Oldschool wins.
    Rank
    Member +
    Join Date
    Dec 2007
    Location
    England, UK
    Posts
    492
    Liked
    4

    Re: Javascript Popup Window that works with most browsers IE7+ help

    I would advise you just avoid catering to IE altogether. It's such a god-awful browser.
    Memory lane is a painful place to be.

  4. #4
    Ginger by design.
    Rank
    Alpha Member
    Join Date
    Feb 2007
    Posts
    2,796
    Liked
    710

    Re: Javascript Popup Window that works with most browsers IE7+ help

    Code:
    if(isIe()) { alert('This website only runs in real browsers.'); }
    jmerlin.MSN = "jmerlin[at]jmerlin[dot]net";

    var c = 1; c++ < c; // true

  5. #5
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Dec 2010
    Posts
    1,820
    Liked
    727

    Re: Javascript Popup Window that works with most browsers IE7+ help

    Quote Originally Posted by Foxtrot View Post
    I would advise you just avoid catering to IE altogether. It's such a god-awful browser.
    Hell no. Unfortunately IE is used by many, and will do so for years to come.


    If I like your post, it doesn't mean I like you - it means I agree with you (for once).

  6. #6
    Iron like Lion in Zion!
    Rank
    Moderator
    Join Date
    Apr 2009
    Location
    Nassau, Bahamas
    Posts
    2,963
    Liked
    812
    Gamertag: SCREAM c9

    Re: Javascript Popup Window that works with most browsers IE7+ help

    On the internet you barely see people using IE. Those that still do probably use it just for small browsing.
    Take it easy,
    - vLife


  7. #7
    Web Developer
    Rank
    Subscriber
    Join Date
    Nov 2008
    Location
    index.php
    Posts
    1,033
    Liked
    734
    Gamertag: chrisdothtml Steam ID: chrisdothtml

    Re: Javascript Popup Window that works with most browsers IE7+ help

    Quote Originally Posted by Foxtrot View Post
    I would advise you just avoid catering to IE altogether. It's such a god-awful browser.
    I would agree, but frankly professional clients aren't going to accept just ignoring their users that use IE. They want anything and everything to work for their users.

    It's not hard to make website's compatible with the more recent IE versions, but once you run into one of the bugs, they're hard to get around without changing your website around.

  8. #8
    Programmer
    Rank
    Subscriber
    Join Date
    May 2008
    Posts
    1,254
    Liked
    455

    Re: Javascript Popup Window that works with most browsers IE7+ help

    Quote Originally Posted by chrisdothtml View Post
    I would agree, but frankly professional clients aren't going to accept just ignoring their users that use IE. They want anything and everything to work for their users.

    It's not hard to make website's compatible with the more recent IE versions, but once you run into one of the bugs, they're hard to get around without changing your website around.
    Microsoft has just started getting their act together with IE9. Previous versions have a lot of issues. Apparently Microsoft was a bit late getting the memo saying that there is a global web standard that you should try to follow. W3 much?

    Chris is right. Although I gauge the audience when designing websites to decide if IE compatibility is necessary or not, it may, especially to businesses, be worth it. (Does .01% of my audience use IE8 or below, or >10%?)

    Backwards IE compatibility is not as difficult as it used to be. There are lots of tutorials, workarounds, and javascript libraries to make it a lot more bearable.
    Chris likes this.
    I am who I am.
    I know what I know.
    I do what I do.
    w3schools is terrible; please stop recommending it.
    Quote Originally Posted by s-p-n
    but in some sense it makes more sense

  9. #9
    Ginger by design.
    Rank
    Alpha Member
    Join Date
    Feb 2007
    Posts
    2,796
    Liked
    710

    Re: Javascript Popup Window that works with most browsers IE7+ help

    Quote Originally Posted by timebomb View Post
    Microsoft has just started getting their act together with IE9. Previous versions have a lot of issues. Apparently Microsoft was a bit late getting the memo saying that there is a global web standard that you should try to follow. W3 much?

    Chris is right. Although I gauge the audience when designing websites to decide if IE compatibility is necessary or not, it may, especially to businesses, be worth it. (Does .01% of my audience use IE8 or below, or >10%?)

    Backwards IE compatibility is not as difficult as it used to be. There are lots of tutorials, workarounds, and javascript libraries to make it a lot more bearable.
    Even in IE9 and IE10 you still need significant if/elseifs and CSS hacks to make things look the same in IE. When you're talking about real software, that's code that needs to be tested and maintained, and it probably will break when IE11 comes out or is structured in some fashion that is the result of IE getting "slightly better" each version:

    Code:
    if (IEVersion < 7) { ... }
    else if (IE Version < 8) { ... }
    else if (IE Version < 9) { ... }
    The cost of this is significant. This is why we've stopped supporting IE. Yet another generation of IE and this simple, fundamental problem exists. In a world where almost everyone is using a browser as some significant portion of their day, the browser needs to be consistent. Over 75% of the browser share is self-consistent. IE is the only real outlier. You have to wonder why the fuck they pay the guys working on Trident and JScript. It's not that difficult to implement standards and be consistent with competitors. To fail at this simple task is to become irrelevant. Imagine if one of the major car manufacturers started making their cars with all non-standard parts. You know, so when you get a routine part replacement it costs TWENTY times as much for you to replace a part as it does everyone else because universal parts don't exist. That $40 part we don't wince at, enjoy paying your $800 for it. That's unacceptable. So is IE. End of story.

    Yes, we have libraries that try to fill in the holes and hack around the massive and vast caverns of true epic-grade WTFery in IE, but explicit IE support beyond what normal use of libraries would provide is unacceptable from any web developers these days. It's a large amount of work for a nonexistent gain, or what we call in the industry, a waste of time.
    Last edited by jMerliN; 16-06-12 at 11:36 AM.
    jmerlin.MSN = "jmerlin[at]jmerlin[dot]net";

    var c = 1; c++ < c; // true

  10. #10
    Programmer
    Rank
    Subscriber
    Join Date
    May 2008
    Posts
    1,254
    Liked
    455

    Re: Javascript Popup Window that works with most browsers IE7+ help

    Quote Originally Posted by jMerliN View Post
    Even in IE9 and IE10 you still need significant if/elseifs and CSS hacks to make things look the same in IE. When you're talking about real software, that's code that needs to be tested and maintained, and it probably will break when IE11 comes out or is structured in some fashion that is the result of IE getting "slightly better" each version:

    Code:
    if (IEVersion < 7) { ... }
    else if (IE Version > 8) { ... }
    else if (IE Version >= 9) { ... }
    The cost of this is significant. This is why we've stopped supporting IE. Yet another generation of IE and this simple, fundamental problem exists. In a world where almost everyone is using a browser as some significant portion of their day, the browser needs to be consistent. Over 75% of the browser share is self-consistent. IE is the only real outlier. You have to wonder why the fuck they pay the guys working on Trident and JScript. It's not that difficult to implement standards and be consistent with competitors. To fail at this simple task is to become irrelevant. Imagine if one of the major car manufacturers started making their cars with all non-standard parts. You know, so when you get a routine part replacement it costs TWENTY times as much for you to replace a part as it does everyone else because universal parts don't exist. That $40 part we don't wince at, enjoy paying your $800 for it. That's unacceptable. So is IE. End of story.

    Yes, we have libraries that try to fill in the holes and hack around the massive and vast caverns of true epic-grade WTFery in IE, but explicit IE support beyond what normal use of libraries would provide is unacceptable from any web developers these days. It's a large amount of work for a nonexistent gain, or what we call in the industry, a waste of time.
    While I will agree with you on most accounts in regards to IE and the developers that work on IE being pathetic in the aforementioned ways, and while I would completely agree that IE takes an abnormally frustrating amount of time to support from a web developer's perspective, I must disagree with you for calling it a waste of time.

    There are millions of internet users that still use IE for various reasons. Many times, someone will not upgrade their browser, as poor and outdated as it may be, just to view your website.

    As a business, you should take advantage of tools like google analytics to find out what browsers your users are using.
    Statistics can be gathered that will give you a moderately solid estimate as to how much money you would gain or lose from blocking out your IE users. For many companies, the loss is not worth it, and thus they will continue to support IE.

    I hate IE. I hate Trident. I completely agree with you that IE is still heavily lacking when compared to its competitors, and that it will more than likely never be as competent or consistent as its competitors. It sucks, but ignoring it is a business decision, not a developer decision.
    I am who I am.
    I know what I know.
    I do what I do.
    w3schools is terrible; please stop recommending it.
    Quote Originally Posted by s-p-n
    but in some sense it makes more sense

  11. #11
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Dec 2010
    Posts
    1,820
    Liked
    727

    Re: Javascript Popup Window that works with most browsers IE7+ help

    Quote Originally Posted by jMerliN View Post
    Even in IE9 and IE10 you still need significant if/elseifs and CSS hacks to make things look the same in IE. When you're talking about real software, that's code that needs to be tested and maintained, and it probably will break when IE11 comes out or is structured in some fashion that is the result of IE getting "slightly better" each version:

    Code:
    if (IEVersion < 7) { ... }
    else if (IE Version < 8) { ... }
    else if (IE Version < 9) { ... }
    The cost of this is significant. This is why we've stopped supporting IE. Yet another generation of IE and this simple, fundamental problem exists. In a world where almost everyone is using a browser as some significant portion of their day, the browser needs to be consistent. Over 75% of the browser share is self-consistent. IE is the only real outlier. You have to wonder why the fuck they pay the guys working on Trident and JScript. It's not that difficult to implement standards and be consistent with competitors. To fail at this simple task is to become irrelevant. Imagine if one of the major car manufacturers started making their cars with all non-standard parts. You know, so when you get a routine part replacement it costs TWENTY times as much for you to replace a part as it does everyone else because universal parts don't exist. That $40 part we don't wince at, enjoy paying your $800 for it. That's unacceptable. So is IE. End of story.

    Yes, we have libraries that try to fill in the holes and hack around the massive and vast caverns of true epic-grade WTFery in IE, but explicit IE support beyond what normal use of libraries would provide is unacceptable from any web developers these days. It's a large amount of work for a nonexistent gain, or what we call in the industry, a waste of time.
    Design for other browsers at first by all means, but then what I tend to do is develop fall-backs - as opposed to work-arounds and bug fixes. For example (and to put it simply), something as simple as rounded corners - I think; "would the design be massively affected if it were to display non-rounded corners in IE?". If the answer is yes, then is when I bump into the problems, etc.


    If I like your post, it doesn't mean I like you - it means I agree with you (for once).

 

 

Posting Permissions

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