J
Jeanne
I am working on a cgi script that is suppose to pop-up a javascript
box from the following perl variables:$TodayDate, $LinkCity,
$LinkState. I recently encountered a problem with the $LinkCity
variable when the city Coeur d'Alene was read. It appears that
javascript is intrepreting the quote to end after d'. I've tried
reversing the quotes (instead of " ' ' ", ' " " ') and using the
javascript escape command. Neither worked. Please help!
example:
if ($AQI1 eq "Good") {
$message = &altQualityMessages($Pollutant{$TodayDay . $City .
$State},"Good");
$AQI1="<A HREF=\"javascript
opUp(\'$TodayDate\',\'$LinkCity\',\'$LinkState\')\"
onMouseOver=\"window.status='$Pollutant{$TodayDay . $City . $State}
Forecast For $City, $State';return true\"
http://www.epa.gov/cgi-bin/airnow.cgi?MapDisplay=FORECAST
javascript error:
missing ; before statement.
window.status='OZONE Forecast For Coeur d'Alene, ID';return true
box from the following perl variables:$TodayDate, $LinkCity,
$LinkState. I recently encountered a problem with the $LinkCity
variable when the city Coeur d'Alene was read. It appears that
javascript is intrepreting the quote to end after d'. I've tried
reversing the quotes (instead of " ' ' ", ' " " ') and using the
javascript escape command. Neither worked. Please help!
example:
if ($AQI1 eq "Good") {
$message = &altQualityMessages($Pollutant{$TodayDay . $City .
$State},"Good");
$AQI1="<A HREF=\"javascript
onMouseOver=\"window.status='$Pollutant{$TodayDay . $City . $State}
Forecast For $City, $State';return true\"
http://www.epa.gov/cgi-bin/airnow.cgi?MapDisplay=FORECAST
javascript error:
missing ; before statement.
window.status='OZONE Forecast For Coeur d'Alene, ID';return true