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

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.

Link to comment
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.

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

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.