0

Hi Frendz,
I'm using the following code for generating the alert message.

echo '<script>alert("Your project has timed out. Contact your project Manager")</script>';

Its working fine in my local server. But in online server its not working. whats going wrong with this?

3
Contributors
11
Replies
13
Views
6 Years
Discussion Span
Last Post by P0lT10n
0

I am not sure but try with lang attribute

echo '<script lang="javascript">alert("Your project has timed out. Contact your project Manager")</script>';
0

I am not sure but try with lang attribute

echo '<script lang="javascript">alert("Your project has timed out. Contact your project Manager")</script>';

Ok Thanks... I'll try this and let you know the result...

0

Maybe with this code ?

echo '<script>alert("Your project has timed out. Contact your project Manager");</script>';
0

I am not sure but try with lang attribute

echo '<script lang="javascript">alert("Your project has timed out. Contact your project Manager")</script>';

I have tried this in server. Its not working.

Edited by karthik_ppts: n/a

0

Maybe with this code ?

echo '<script>alert("Your project has timed out. Contact your project Manager");</script>';

with this also not working...

0

Post the entire code where it is...

if($proj1!="")
			{
				$ahours1=getActualHours($proj1);
				$ehours_arr1=explode("#*#",getEstimatedHours($proj1));
				$ehours1=$ehours_arr1[0];
				$edate1=$ehours_arr1[1];
				if(($ahours1!='' || $ahours1!=0) and $ehours1!='' and $edate1!='')
				{
					if($ahours1>=$ehours1 || strtotime($edate1) < strtotime(date("Y-m-d")))
					{
						$sess1='';
						echo '<script type="text/javascript">alert("Your project has timed out. Contact your project Manager");</script>';
					}
					else
					{
						$sess1=$proj1.':'.$desc1;
					}
				}
				else
				{
					$sess1=$proj1.':'.$desc1;
				}
			}
0

Try this

echo '<script type="text/javascript">function alert_time(){ alert("Your project has timed out. Contact your project Manager");} alert_time();</script>';

Edited by P0lT10n: n/a

0

Try this

echo '<script type="text/javascript">function alert_time(){ alert("Your project has timed out. Contact your project Manager");} alert_time();</script>';

Ok.. I'll try and let you know the result soon.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.