Re: dynamic boxes problem... JS and PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 8, 2008 at 6:20 PM, Ryan S <genphp@xxxxxxxxx> wrote:
> Hey!
>  Thanks Andrew, will look into those points that you sent me.
>
>  First thing to change will be the DOCTYPE I think, as i didht type that but must have copied code into a pre-made page...

    One thing I learned when screwing around with AJAX is that it,
like nearly everything that occurs in nature, must be customized to
play nicely with Microsoft things.  Call me bitter.  No, seriously, it
could be my new nickname.

<script language="JavaScript">
//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject() {
  if (window.XMLHttpRequest) {
    return new XMLHttpRequest();
  } else if(window.ActiveXObject) {
    return new ActiveXObject("Microsoft.XMLHTTP");
  } else {
    document.getElementById('p_status').innerHTML = 'Status: Cound not
create XmlHttpRequest Object.  Consider upgrading your browser.';
  }
}
</script>

    It's something I had to use when playing around with a chat script
I was building a while ago:
        http://pilotpig.net/gchat/

-- 
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux