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.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    dont work in ie?

    why it doesn't work In IE?
    PHP Code:
    <html>
    <
    head>
    <
    meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
    <
    meta http-equiv="Content-Language" content="he">
    <
    script type="text/javascript">
    function 
    Object()
    {
    var 
    check=false;
    if (
    window.XMLHttpRequest)
    {
    try
    {
    check = new XMLHttpRequest();
    }
    catch(
    e)
    {
    check=false;
    }
    }
    else if(
    window.ActiveXObject)
    {
    try
    {
    check=new ActiveXObject("Msxml2.HTMLHTTP");
    }
    catch(
    e)
    {
    try
    {
    check=new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch(
    e)
    {
    check=false;
    }
    }
    }
    return 
    check;
    }

    var 
    http Object();
    function 
    URLencode(strText)
    {
    strText=strText;
    strText=strText.replace(/&#1488;/g,"%E0");
    strText=strText.replace(/&#1489;/g,"%E1");
    strText=strText.replace(/&#1490;/g,"%E2");
    strText=strText.replace(/&#1491;/g,"%E3");
    strText=strText.replace(/&#1492;/g,"%E4");
    strText=strText.replace(/&#1493;/g,"%E5");
    strText=strText.replace(/&#1494;/g,"%E6");
    strText=strText.replace(/&#1495;/g,"%E7");
    strText=strText.replace(/&#1496;/g,"%E8");
    strText=strText.replace(/&#1497;/g,"%E9");
    strText=strText.replace(/&#1499;/g,"%EB");
    strText=strText.replace(/&#1500;/g,"%EC");
    strText=strText.replace(/&#1502;/g,"%EE");
    strText=strText.replace(/&#1504;/g,"%F0");
    strText=strText.replace(/&#1505;/g,"%F1");
    strText=strText.replace(/&#1506;/g,"%F2");
    strText=strText.replace(/&#1508;/g,"%F4");
    strText=strText.replace(/&#1510;/g,"%F6");
    strText=strText.replace(/&#1511;/g,"%F7");
    strText=strText.replace(/&#1512;/g,"%F8");
    strText=strText.replace(/&#1513;/g,"%F9");
    strText=strText.replace(/&#1514;/g,"%FA");
    strText=strText.replace(/&#1501;/g,"%ED");
    strText=strText.replace(/&#1503;/g,"%EF");
    strText=strText.replace(/&#1507;/g,"%F3");
    strText=strText.replace(/&#1509;/g,"%F3");

    return strText;
    }

    function 
    ClearTextboxes()
    {
    document.getElementById('message').value '';          
    }

    function 
    send(number)
    {
    http.open("get","ajax.php")
    http.onreadystatechange response;
    http.send(null);
    setTimeout("send()",2000);
    }


    function 
    sendi(message)
    {
    http.open("get","ajax.php?insert="+URLencode(message))
    http.onreadystatechange response;
    http.send(null);
    }

    function 
    response()
    {
    if(
    http.readyState == 4)
    {
    document.getElementById("text").innerHTML=http.responseText;
    }
    }

    </script>
    </head>
    <body onload="send()">
    <center>
    <table id="Table_01" width="801" height="241" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="3">
                <img src="images/chat/html_01.gif" width="114" height="30" alt=""></td>
            <td colspan="3" background="images/chat/html_02.gif" width="535" height="30">

                </td>
            <td colspan="3" background="images/chat/html_03.gif" width="147" height="30">
             </td>
            <td colspan="2" background="images/chat/html_04.gif" width="4" height="30">
                </td>
            <td width="1" height="30">
                </td>
        </tr>
        <tr>

            <td colspan="8" background="images/chat/html_05.gif" width="795" height="1">
                </td>
            <td colspan="2" rowspan="4" background="images/chat/html_06.gif" width="3" height="195">
                </td>
            <td rowspan="5" background="images/chat/html_07.gif" width="2" height="201">
                </td>
            <td background="images/chat/spacer.gif" width="1" height="1">
                </td>
        </tr>

        <tr>
            <td rowspan="2" background="images/chat/html_08.gif" width="8" height="193">
                </td>
            <td background="images/chat/html_09.gif" width="81" height="170">
                </td>
            <td colspan="2" background="images/chat/html_10.gif" width="476" height="170">


             <div style="border: 0px none; overflow: auto; text-align:center;  width:476px; height:170;" id="text"></div>



              </td>
            <td rowspan="4" background="images/chat/html_11.gif" width="1" height="200">
                </td>
            <td colspan="2" background="images/chat/html_12.gif" width="228" height="170">
                 <form id="form1" align="center">
                                        <textarea style="border-width:0px; BACKGROUND-COLOR: #e0e1e5; WIDTH: 212; HEIGHT: 124; COLOR: #000000; OVERFLOW: auto; "  rows="1" cols="1" dir="rtl" id="message"  rows="8" cols="25"></textarea>                <br>

                <center>
             <input type="button" onclick="sendi(message.value); ClearTextboxes();" value="שלח"/>
             </center>
             </form>
                </td>
            <td rowspan="4" background="images/chat/html_13.gif" width="1" height="200">
                </td>
            <td width="1" height="170">
                </td>

        </tr>
        <tr>
            <td rowspan="4" background="images/chat/html_14.gif" width="81" height="39">
                </td>
            <td colspan="2" rowspan="3" background="images/chat/html_15.gif" width="476" height="30">
                </td>
            <td colspan="2" rowspan="3" background="images/chat/html_16.gif" width="228" height="30">
                </td>
            <td width="1" height="23">

                </td>
        </tr>
        <tr>
            <td rowspan="3" background="images/chat/html_17.gif" width="8" height="16">
                </td>
            <td width="1" height="1">
                </td>
        </tr>
        <tr>

            <td colspan="2" background="images/chat/html_18.gif" width="3" height="6">
                </td>
            <td background="images/chat/spacer.gif" width="1" height="6">
                </td>
        </tr>
        <tr>
            <td colspan="9" background="images/chat/html_19.gif" width="711" height="9">
                </td>
            <td width="1" height="9" >

                <img src="images/chat/spacer.gif" alt=""></td>
        </tr>
        <tr>
            <td  width="8" height="1">
                
            <td width="81" height="1">
            
            <td width="25" height="1">
                
            <td width="451" height="1">
                
            <td width="1" height="1">
                
            <td width="83" height="1">

                
            <td width="145" height="1">
                
            <td width="1" height="1">
                
            <td width="1" height="1">
                
            <td  width="2" height="1">
                
            <td  width="2" height="1">
                        <td></td>
        </tr>
    </table>
    </center>
    </body>

    </html> 

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Well you really should not have a function named Object since that has other uses in the world of JavaScript. Rename that to something else.

    What errors are you getting in IE? Did you try to debug it with alerts and see where it is stopping?

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    i chenge name

    i change the name of object to ajax,
    and it not work
    and i do debug and nothing.
    what the problem?
    http://fanart.dhost.co.il/html.php
    ?

  • #4
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    That link runs in Firefox 3 and IE7 for me.

    What version of IE is it failing for you in.

    [Also make sure your IE is not cached.]

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #5
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    IE 7 & 8
    and this is not work in IE, try to send message.
    the message can be send, but u can't to view it in IE .
    the view dosen't change if u send a message way?.
    Last edited by leecooper; 11-06-2008 at 06:07 PM.

  • #6
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    I am seeing it.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #7
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    u have solution?
    u know why this not working?
    Last edited by leecooper; 11-07-2008 at 12:05 PM.


  •  

    Posting Permissions

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