Jump to content

[SOLVED] Problem in IE!!!! NO issue in Firefox!!!!


chanchelkumar

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/40988-solved-problem-in-ie-no-issue-in-firefox/
Share on other sites

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.

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

 

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

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!!!!!!!!!!

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]

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!!!!

 

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.

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!!!

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.

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.