moose-en-a-gant Posted January 21, 2015 Share Posted January 21, 2015 (edited) I'm starting to learn Ajax today and I came across this: Old versions of Internet Explorer (IE5 and IE6) uses an ActiveX Object: variable=new ActiveXObject("Microsoft.XMLHTTP"); Do I need to bother? Or should I have an if else statement that tells based on which browser is detected, what httprequest to use? Ahh... spoke too soon var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } Still, does it matter? Edited January 21, 2015 by moose-en-a-gant Quote Link to comment https://forums.phpfreaks.com/topic/294103-should-i-bother-with-activex-object/ Share on other sites More sharing options...
maxxd Posted January 21, 2015 Share Posted January 21, 2015 Use JQuery - it'll make your life much, much easier. Quote Link to comment https://forums.phpfreaks.com/topic/294103-should-i-bother-with-activex-object/#findComment-1503612 Share on other sites More sharing options...
scootstah Posted January 23, 2015 Share Posted January 23, 2015 Still, does it matter? You tell us - do you want to support IE6? Quote Link to comment https://forums.phpfreaks.com/topic/294103-should-i-bother-with-activex-object/#findComment-1503979 Share on other sites More sharing options...
moose-en-a-gant Posted January 31, 2015 Author Share Posted January 31, 2015 Don't some people have javascript disabled? Curious the pros and cons of ajax vs. javascript About the IE6, not sure, I suppose most people are running 11 or higher Quote Link to comment https://forums.phpfreaks.com/topic/294103-should-i-bother-with-activex-object/#findComment-1504479 Share on other sites More sharing options...
kicken Posted January 31, 2015 Share Posted January 31, 2015 Don't some people have javascript disabled? Some might. Whether it's worth your time to code around that is up to you. Curious the pros and cons of ajax vs. javascript Ajax is Javascript. There's no versus there. If Javascript is unavailable then neither is ajax. Quote Link to comment https://forums.phpfreaks.com/topic/294103-should-i-bother-with-activex-object/#findComment-1504482 Share on other sites More sharing options...
moose-en-a-gant Posted February 2, 2015 Author Share Posted February 2, 2015 Tips via bitcoin? haha what like 0.00000 something? Anyway, yeah the AJAX vs. Javascript was a dumb question, what is it asynchornous javascript something is what AJAX stands for. Thanks for your time and response. Quote Link to comment https://forums.phpfreaks.com/topic/294103-should-i-bother-with-activex-object/#findComment-1504535 Share on other sites More sharing options...
Zane Posted February 2, 2015 Share Posted February 2, 2015 AJAX == Asynchronous Javscript and XML Quote Link to comment https://forums.phpfreaks.com/topic/294103-should-i-bother-with-activex-object/#findComment-1504567 Share on other sites More sharing options...
kicken Posted February 2, 2015 Share Posted February 2, 2015 Tips via bitcoin? haha what like 0.00000 something? When I added that to my sig, 1 BTC was worth like $6. By today's rates that would be like 0.026 I guess. Quote Link to comment https://forums.phpfreaks.com/topic/294103-should-i-bother-with-activex-object/#findComment-1504585 Share on other sites More sharing options...
Zane Posted February 2, 2015 Share Posted February 2, 2015 Amazing how expensive those little bastards are.. $244 for 1 bitcoin. Quote Link to comment https://forums.phpfreaks.com/topic/294103-should-i-bother-with-activex-object/#findComment-1504587 Share on other sites More sharing options...
CroNiX Posted February 2, 2015 Share Posted February 2, 2015 Amazing how expensive those little bastards are.. $244 for 1 bitcoin. Not bad if you bought a bunch when they were a few $'s each Quote Link to comment https://forums.phpfreaks.com/topic/294103-should-i-bother-with-activex-object/#findComment-1504589 Share on other sites More sharing options...
Zane Posted February 2, 2015 Share Posted February 2, 2015 I can only imagine, I wish I had bought stock in Google too. Quote Link to comment https://forums.phpfreaks.com/topic/294103-should-i-bother-with-activex-object/#findComment-1504599 Share on other sites More sharing options...
scootstah Posted February 3, 2015 Share Posted February 3, 2015 (edited) About the IE6, not sure, I suppose most people are running 11 or higher HA! HAHA! One could only dream of such a wonderful utopia. But, thankfully, IE6 has very little users now. IE8 is the new IE6. Like maxxd said above, you can use jQuery for its AJAX library, which will make things a lot easier. It abstracts away the browser incompatibility stuff and has some nice shortcut methods. However, if you're only installing jQuery for the sole purpose of using AJAX, well then there are other, smaller libraries that will do the job as well. jQuery is a bit of a beast. Edited February 3, 2015 by scootstah Quote Link to comment https://forums.phpfreaks.com/topic/294103-should-i-bother-with-activex-object/#findComment-1504648 Share on other sites More sharing options...
moose-en-a-gant Posted February 3, 2015 Author Share Posted February 3, 2015 Yeah I have to learn more about ajax / jquery, I only briefly read about 3 - 5 pages on w3schools Thanks for your guys' responses Quote Link to comment https://forums.phpfreaks.com/topic/294103-should-i-bother-with-activex-object/#findComment-1504667 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.