I am using :
appache 2.2.11
php :5.3.0
MySql 5.1.36

The problem is that I am there are some script not working nether on IE8 nor on firefox 4 in offline

But these scripts are working fine on IE 8 using online !!

And these scripts work offline on other pcs ?!!! :O

so I think it is related to wamp (config.php) or php extension or php.ini

Member Avatar

I don't think it's anything to do with php. This is a js issue. Clear the cache in your browser (IE8) and try again.

<script  language="javascript">
function showSelectDate()
{
if(document.getElementById('deadline').checked==true)
{
document.getElementById('deadlineDate').style.display="table-row";

}
else if(document.getElementById('deadline').checked==false)
{
document.getElementById('deadlineDate').style.display="none";
document.getElementById('deadDate').value="<?=date('Y-m-d')?>";
}
}
</script>
<table>
   <tr>
       <td >
          <input type="checkbox"  id="deadline" name="deadline"
              value="1" onclick="showSelectDate();">
       </td>
   </tr>
   <tr id="deadlineDate" style="display:none">
  <td width="13%" class="admintable_dark"><div align="left">Deadline Date:</div></td>
            <td  colspan="4" class="admintable_light"><input type="text"  id="deadDate" name="deadDate" class="textd" readonly value="<?=$date?>">
                <a
				  href="javascript:NewCal('deadDate','ddmmyyyy')"><img
				  src="../../../common/images/datePicker.gif" border=0></a></td>
          </tr>
   </tr>
</table>
Member Avatar
<?=$date?>

where's this coming from? SHould be <?php echo $date;?> . Avoid short tags.

Also <?=date('Y-m-d')?>. use 'normal' php tags and echo statement.

DONE but no effect the textbox is still hidden

When check/uncheck the checkbox I get

Error: showSelectDate is not defined
Source file: http://peter.univers...newPetition.php
Line: 1

The problen is that there are many scripts not work ?
So I think this is related to some config. in some files ?? :(