Jump to content

Frank P

Members
  • Posts

    168
  • Joined

  • Last visited

Everything posted by Frank P

  1. Josh, There are gentler ways to win an argument than bullying ("I don't believe you have much experience dealing with corporations, and possibly even clients in general"). Such as with valid arguments that have weight. Which I don't see in your reply. First of all, I'm working on IT projects that are probably way out of your league. The fact that I don't have time to make websites for small business and private parties doesn't mean that I wouldn't know what I'm talking about. The other night I solved a layout problem on Stack Overflow that nobody else knew how to solve. A question that was posted by one of the SO moderators, and that got a bunch of up-votes and favorite-question stars in no-time. Also, simple logical reasoning disproves your basic point, even if I would be a novice. Nowadays, there are only two kinds of users who still have IE6/7. The first kind is the people who still have a Windows 95 computer. I don't think any webdev in their right mind would wanna code for them. The second kind is the employees of large companies with XP computers, obliged to use it for their intranet sites. Not much wrong with that, but they won't use that same IE6/7 for the internet sites they visit. Simply because they've learned that those sites are not functional anymore with such an old browser. They will get alerts all the time, and will use FF or Chrome, which they have will have installed on their computer as well. Those large companies have their own IT staff, making their own intranet websites. I don't think many PHP Freaks webdev-visitors will be asked by such companies to make a site for them. In fact, I would think the number is zero. Apart from you, maybe. Furthermore, the (American) stats on http://gs.statcounter.com/#browser_version-US-monthly-201305-201405 show that even IE7 has left the building. And which corporations are you referring to that have sites that need IE6/7 to be functional and esthetically appealing? Unless you have a time machine, I don't think there are such corporations anymore. N=0, again. Nonetheless, I wanna make friends with you. How about if I write a tutorial for PHP Freaks, explaining the basics of modern Ajax, including the pitfalls regarding the implementation of the responseText, which there still are a number of? I'll do it for free. Just think about it. But even if you reject this offer, you still have to delete this whole thread. Because what you are stating in your original post translates to "If you don't use layout tables, don't come asking here for advice" on the CSS section of PHP Freaks. Time to upgrade, Josh.
  2. Josh, I don't believe for a minute that most webmasters still strive to make sites suited for IE<8. And those few who still do should think again. Users with IE<8 can easily upgrade to 8, even have to actively stop Windows (XP) Update from doing so. IE8, and all later IEs, default to Compatibility Mode/View (= IE7) in case of intranet sites, so there is no reason whatsoever for them not to upgrade. And for the 50 users around the whole world who cannot because their company intranet site only functions well in IE6, there is always FF and Chrome. Even their latest versions run perfectly well on Windows XP. Which they already have installed anyway, because plenty of internet sites do not function in IE6/7 anymore. So, a simple alert for IE<8 users suffices. Keep it simple. And keep it economical for the clients, because making a site suited for IE<8 probably doubles the cost, and/or hampers the possibilities severely. Most certainly when it comes to IE6. With regards to the implementation of the responseText, I guess you are referring to the innerHTML? If so, that makes no difference. jQuery cannot make IE<10 insert/modify <option>s in a <select> either (the famous DOM child update problem that IE<10 has with nodes that standard have children). And there is a simple non-jQuery solution for that: put the <select> in a <span> or <div>, and update the whole <select>. Also, using outerHTML works as well, also in IE8. Still no need for jQuery, therefore.
  3. Unless the jQuery is also used to accomplish matters that cannot be accomplished with native JS, or that would otherwise require extensive or complicated coding, I see no reason to use jQuery for Ajax calls. IE8+ and all other browsers support the standard XMLHttpRequest(). And what is so difficult about this: function updateContent(container) { var ajaxRequest = new XMLHttpRequest(); ajaxRequest.onreadystatechange = function() { if ((ajaxRequest.readyState == 4) && (ajaxRequest.status == 200)) { document.getElementById(container).innerHTML = ajaxRequest.responseText; } } ajaxRequest.open("GET","new_content_file.php",true); ajaxRequest.send(); } See also http://toddmotto.com/is-it-time-to-drop-jquery-essentials-to-learning-javascript-from-a-jquery-background/.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.