Jump to content

display not appearing in IE???


cdoyle

Recommended Posts

I'm a little new to Ajax,  and I have a form on my site that when  a users enters a number.  A little message will appear telling them either it's OK or to try again with a little image next to the text.  What I have works fine in firefox,  but in IE only the image appears..

 

Not sure why?

 

Here is the code I have on my textbox

 

<input type="text" id="num1" name="num1" size="2" onblur="javascript: MyAjaxRequest('check1','lottovalidate.php?act=1&id=', 'num1')">

 

and I'm using this span ID to display it

<span id="check1"></span>

and here is lottovalidate.php

 

  case '1':
        $num1 = $_GET['id'];
        if (!is_numeric($num1) || $num1 <= 0  || $num1 >=10) {

            echo "<img src=images/error.gif width='10px' height='10px' alt='input error' title='input error' /><span class='notification'>\nPick a number between 1-9</span>";
        }
        else {
            echo "<img src=images/OK.gif width='10px' height='10px' alt='Input OK' title='Input OK' />";
            echo "Pick 2 OK!";
        }
        break;

 

not sure why the image would appear just fine,  but the text won't in IE?

 

any ideas?

Link to comment
https://forums.phpfreaks.com/topic/190815-display-not-appearing-in-ie/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.