chanchelkumar Posted March 3, 2007 Share Posted March 3, 2007 hi dudes, Am back again with a problem...... below mentioned code works in Firefox!!!! But it produces some runtime errors in internet explorer!!!! <table width="700" border="0" align="center" cellpadding="10" cellspacing="0" class="sales_panel"> <tr> <td><h2><img src="images/ec0027-48-1-g.jpg" width="66" height="66" align="middle"> Users Training Area: </h2> <p align="right"><label class="p" style="cursor:hand" onClick="add_training(this.value)">+ Add New Training Module</label> </p> <form action="../admin/training_insert.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table> <div id="add_training"></div></form></table> <div id="list"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="63%" height="22" background="images/green_bar_bg.jpg"><span class="style13">Discription:</span></td> <td width="15%" height="22" background="images/green_bar_bg.jpg"><div align="center" class="style13">Active Page:</div></td> <td width="8%" height="22" background="images/green_bar_bg.jpg"><span class="style13">Preview:</span></td> <td width="6%" height="22" background="images/green_bar_bg.jpg"> <div align="center" class="style13">Edit: </div></td> <td width="8%" height="22" background="images/green_bar_bg.jpg"><div align="center" class="style13">Delete: </div></td> </tr> <?php while($row=mysql_fetch_array($result)){ $id=$row['id']; $desc=$row['desc1']; $active=$row['publish']; $flag=0; if($active=="active") { $flag=1; } ?> <tr> <td><?= $desc ?> </td> <td><div align="center">Yes<input onClick="action1(1,<?php echo $id; ?>);" name="<?php echo $id; ?>activate" type="radio" value="1" <?php if($flag){echo ' checked="checked"';} ?> /> No<input onclick="action1(0,<?php echo $id; ?>)" name="<?php echo $id; ?>activate" type="radio" value="0" <?php if(!$flag){echo ' checked="checked"';} ?> /> </div></td> <td><div align="center"><!--a href="trainingview.php?id=<?=$id?>"--><img src="images/ni0104-16.png" width="16" height="16" border="0" class="p" style="cursor:hand" onClick="view_training(<?=$id ?>)" ></a></div></td> <td><div align="center"><!--a href="edit_training.php?id=<?=$id?>"--><img src="images/wi0001-16.png" width="16" height="16" border="0" class="p" style="cursor:hand" onClick="edit_training(<?=$id ?>)"></a></div></td> <td><div align="center"><!--a href="deletetraining.php?id=<?=$id ?>"--><img src="images/ni0073-16.png" width="16" height="16" border="0" class="p" style="cursor:hand" onClick="del_confirm(<?=$id ?>)"></a></div></td> </tr> <tr> <td colspan="5"><div id="center"> <hr size="1"> </div></td> </tr> <? } ?> </table></div> <p align="center"></p><tr><td> </td> </tr> </table><div id="view"></div> <p> </p></td> </tr> </table></td> <td width="19" background="images/index_05.jpg" valign="top" align="right"><img src="images/index_05.jpg" width="19" height="13"></td> </tr> </table> </td> </tr> </table> <div id="txtHint"></div> Please help !!!! All Onclick functions were in ajax!!!!!!!! EDIT: code tags added - barand Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted March 3, 2007 Share Posted March 3, 2007 what are the errors? and can you PLEASE place your code in the [ code ] [/ code ] tags, minus the spaces. PLEASE. Quote Link to comment Share on other sites More sharing options...
Yesideez Posted March 3, 2007 Share Posted March 3, 2007 I'm with ProjectFear. Placing any PHP/HTML between [code] and [/code] makes it a LOT easier to read what you have posted. Quote Link to comment Share on other sites More sharing options...
nloding Posted March 3, 2007 Share Posted March 3, 2007 Post the runtime error, and post your code between the CODE tags ... Also, to answer a previous question, "cursor: hand;" is only for Gecko browsers. Do this instead: style="cursor: hand; cursor: pointer;" That will work in all modern browsers. Quote Link to comment Share on other sites More sharing options...
otuatail Posted March 3, 2007 Share Posted March 3, 2007 Plenty of code but no mention of the problem. Not a good idea. Quote Link to comment Share on other sites More sharing options...
chanchelkumar Posted March 4, 2007 Author Share Posted March 4, 2007 what are the errors? and can you PLEASE place your code in the [ code ] [/ code ] tags, minus the spaces. PLEASE. sorry i can't get u... can u please send me one example!!! it will help me... Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted March 4, 2007 Share Posted March 4, 2007 instead of just posting your code in the bold tags you post it in the code tags. like this: <table width="700" border="0" align="center" cellpadding="10" cellspacing="0" class="sales_panel"> <tr> <td><h2><img src="images/ec0027-48-1-g.jpg" width="66" height="66" align="middle"> Users Training Area: </h2> <p align="right"><label class="p" style="cursor:hand" onClick="add_training(this.value)">+ Add New Training Module</label> </p> <form action="../admin/training_insert.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table> <div id="add_training"></div></form></table> <div id="list"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="63%" height="22" background="images/green_bar_bg.jpg"><span class="style13">Discription:</span></td> <td width="15%" height="22" background="images/green_bar_bg.jpg"><div align="center" class="style13">Active Page:</div></td> <td width="8%" height="22" background="images/green_bar_bg.jpg"><span class="style13">Preview:</span></td> <td width="6%" height="22" background="images/green_bar_bg.jpg"> <div align="center" class="style13">Edit: </div></td> <td width="8%" height="22" background="images/green_bar_bg.jpg"><div align="center" class="style13">Delete: </div></td> </tr> <?php while($row=mysql_fetch_array($result)){ $id=$row['id']; $desc=$row['desc1']; $active=$row['publish']; $flag=0; if($active=="active") { $flag=1; } ?> <tr> <td><?= $desc ?> </td> <td><div align="center">Yes<input onClick="action1(1,<?php echo $id; ?>);" name="<?php echo $id; ?>activate" type="radio" value="1" <?php if($flag){echo ' checked="checked"';} ?> /> No<input onclick="action1(0,<?php echo $id; ?>)" name="<?php echo $id; ?>activate" type="radio" value="0" <?php if(!$flag){echo ' checked="checked"';} ?> /> </div></td> <td><div align="center"><!--a href="trainingview.php?id=<?=$id?>"--><img src="images/ni0104-16.png" width="16" height="16" border="0" class="p" style="cursor:hand" onClick="view_training(<?=$id ?>)" >[/url]</div></td> <td><div align="center"><!--a href="edit_training.php?id=<?=$id?>"--><img src="images/wi0001-16.png" width="16" height="16" border="0" class="p" style="cursor:hand" onClick="edit_training(<?=$id ?>)">[/url]</div></td> <td><div align="center"><!--a href="deletetraining.php?id=<?=$id ?>"--><img src="images/ni0073-16.png" width="16" height="16" border="0" class="p" style="cursor:hand" onClick="del_confirm(<?=$id ?>)">[/url]</div></td> </tr> <tr> <td colspan="5"><div id="center"> <hr size="1"> </div></td> </tr> <? } ?> </table></div> <p align="center"></p><tr><td> </td> </tr> </table><div id="view"></div> <p> </p></td> </tr> </table></td> <td width="19" background="images/index_05.jpg" valign="top" align="right"><img src="images/index_05.jpg" width="19" height="13"></td> </tr> </table> </td> </tr> </table> <div id="txtHint"></div> then can you please post us the errors that your receiving. Quote Link to comment Share on other sites More sharing options...
chanchelkumar Posted March 5, 2007 Author Share Posted March 5, 2007 Thank you 4 ur help.... But i can't copy dat error.... it's like dis... Line:82 Char:1 Error:Unknown runtime error Code:0 Code: <tr> <td width="4%" height="80"> </td> <td colspan="2"><p> </p> [b]<p> </p></td>[/b] <td width="5%"> </td> the bold line in da above code is the line 82... Plz help.. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted March 5, 2007 Share Posted March 5, 2007 That's probably line 82 of your source, what you need to look at is lines 75 through about 90 of the generated HTML. Errors like that are usually caused by problems in Javascript. I would run the generated HTML through an HTML validator, also. Ken Quote Link to comment Share on other sites More sharing options...
chanchelkumar Posted March 5, 2007 Author Share Posted March 5, 2007 That's probably line 82 of your source, what you need to look at is lines 75 through about 90 of the generated HTML. Errors like that are usually caused by problems in Javascript. I would run the generated HTML through an HTML validator, also. Ken Ken... Can u please clear it... I didn't get you what you meant!!!!!!!!!! Quote Link to comment Share on other sites More sharing options...
HaLo2FrEeEk Posted March 5, 2007 Share Posted March 5, 2007 It would be much easier to read what you were saying if you would use proper english and grammer, not to mention puncuation. One of the most annoying things in the world is when people write sentences lik dis, its so annoying. The proper way to write you is not u, its you. [/rant] Quote Link to comment Share on other sites More sharing options...
chanchelkumar Posted March 5, 2007 Author Share Posted March 5, 2007 That's probably line 82 of your source, what you need to look at is lines 75 through about 90 of the generated HTML. Errors like that are usually caused by problems in Javascript. I would run the generated HTML through an HTML validator, also. Ken Ken... Can u please clear it... I didn't get you what you meant!!!!!!!!!! Is anybody there for me to help in this critical situation!!!! Quote Link to comment Share on other sites More sharing options...
btherl Posted March 5, 2007 Share Posted March 5, 2007 Try viewing the "page source", from the View menu in your browser. Take a look at the javascript in there. It's possible there is a naming conflict, or perhaps you are using a javascript feature available in firefox but not IE. Variables named "submit", "action", etc etc can cause problems. Quote Link to comment Share on other sites More sharing options...
chanchelkumar Posted March 5, 2007 Author Share Posted March 5, 2007 Try viewing the "page source", from the View menu in your browser. Take a look at the javascript in there. It's possible there is a naming conflict, or perhaps you are using a javascript feature available in firefox but not IE. Variables named "submit", "action", etc etc can cause problems. I tried that one.. and i can't find any names which you mentioned !!!(name confilct) Can you please tell me another remedy!!! Quote Link to comment Share on other sites More sharing options...
nloding Posted March 5, 2007 Share Posted March 5, 2007 We'll find the remedy, but you aren't providing us with all the information. Detectives can't solve a murder with only one bit of evidence. Do this: open your page that causes the runtime error in Internet Explorer. Right-click, choose View Source. Hit Crtl + A (to select all text), then Crtl + C to copy it. Come to this forum, hit Reply at the bottom. Now do this part EXACTLY as I have typed it. Hit the "#" button above the reply text-area. Place the cursor between the two tags. Hit Crtl + V to paste what you copied. Then hit Post ... Also, if you can, copy the runtime error down verbatim (that means word-for-word) if you can't copy and paste it. Just make sure that the actual runtime error is the same as what you posted earlier. And if you tell me you can't can't understand what I'm telling you, no offense, but you're just blind or ignoring me. 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.