Hello
I'm trying to make a javascript call within a href tag inside a php file. The purpose is to open a new window with a certain page...
Here is the call statement
<tr><td>Survey Name:</td>
<td><img src="images/blank.gif" width="5" height="1"><A
href=\"javascript
isplayHelp('SurveyName')"\> <img src="images/QuestionMark.gif" border="0"></A><img src="images/blank.gif" width="5" height="1"></td>
this is all in an echo statement.
Here is the javascript code
function DisplayHelp (helpTerm) {
if (helpwin) { helpwin.close(); }
var helpwin = window.open("showHelpTerms.php?SelectedTerm="+helpTerm", "help",
"directories=no,toolbar=no,menubar=no,location=no,resize=yes,status=no,resizable=yes,scrollba
rs=yes,width=465,height=275"
;
helpwin.focus();
}
Now when you highlight over the image it shows the javascript call with a wrong url.. and if you click the image nothing happens...
Any help is most appreciated.
Maranda
I'm trying to make a javascript call within a href tag inside a php file. The purpose is to open a new window with a certain page...
Here is the call statement
<tr><td>Survey Name:</td>
<td><img src="images/blank.gif" width="5" height="1"><A
href=\"javascript
this is all in an echo statement.
Here is the javascript code
function DisplayHelp (helpTerm) {
if (helpwin) { helpwin.close(); }
var helpwin = window.open("showHelpTerms.php?SelectedTerm="+helpTerm", "help",
"directories=no,toolbar=no,menubar=no,location=no,resize=yes,status=no,resizable=yes,scrollba
rs=yes,width=465,height=275"
helpwin.focus();
}
Now when you highlight over the image it shows the javascript call with a wrong url.. and if you click the image nothing happens...
Any help is most appreciated.
Maranda