cdoyle Posted February 3, 2010 Share Posted February 3, 2010 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? Quote Link to comment Share on other sites More sharing options...
cdoyle Posted February 4, 2010 Author Share Posted February 4, 2010 anyone have any ideas on this one? I'm stumped.. Everything works fine in firefox, and the image appears OK in IE, but the text doesn't?? Quote Link to comment Share on other sites More sharing options...
cdoyle Posted February 5, 2010 Author Share Posted February 5, 2010 I tried it on another PC yesterday using IE7, and I noticed that the messages would sometimes appear???? It seemed to randomly work.. Is the way I'm doing it correct, or is there a better way? Quote Link to comment Share on other sites More sharing options...
cdoyle Posted February 7, 2010 Author Share Posted February 7, 2010 Anyone have any ideas at all or see anything wrong with my code? it doesn't make sense to me, but IE normally doesn't. Quote Link to comment Share on other sites More sharing options...
Ang3l0fDeath Posted February 12, 2010 Share Posted February 12, 2010 I got a similar problem im waiting to get answered. However the problem is Firefox not Internet explorer. However updating everything to the lastest is a good idea and recommending that to your website visiters is a smart idea. Quote Link to comment 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.