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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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