bigboy99
11-15-2006, 11:12 PM
Hi guys,
This is kinda hard to explain but I will do my best.
I am trying to create a javascript alert box which only alerts when there is data inside in the alert function. The information I want to display comes dynamically from the database. As such, when data is populated I want the alert to display. When there is no data in the alert function I dont want any alert box appearing. The way it works is the data comes in dynamicly through a placeholder @data@ I put in the javascript. Depending on the actions of the user this will populate with data or nothing at all. Below is an example of just a standad Alert with my plaeholder.
Is there anyway I can do this? Any help would be greatly appreciated.
<!--
<!--
// Javascript Alert with placeholder
alert ("@data@")
//-->
This is kinda hard to explain but I will do my best.
I am trying to create a javascript alert box which only alerts when there is data inside in the alert function. The information I want to display comes dynamically from the database. As such, when data is populated I want the alert to display. When there is no data in the alert function I dont want any alert box appearing. The way it works is the data comes in dynamicly through a placeholder @data@ I put in the javascript. Depending on the actions of the user this will populate with data or nothing at all. Below is an example of just a standad Alert with my plaeholder.
Is there anyway I can do this? Any help would be greatly appreciated.
<!--
<!--
// Javascript Alert with placeholder
alert ("@data@")
//-->