onclick with parent command

I have the following lines of code:
else if( $aColumns[$i] == "Symbol" )
      {
				/* Link output */
				$row[] = "<a href='stock_report.php?Symbol=".$aRow[ $aColumns[$i] ]."'>".$aRow[ $aColumns[$i] ]."</a>";
      }

Open in new window


I also want to add:
onClick="parent.parent.callMe"
href="#"

Open in new window


But I can't figure out how to get it incorporated in without getting errors.  Can someone please help me?
MsKrissyAsked:
Who is Participating?
 
TiberiuGalCommented:
hi
you need to escape your quote characters

$row[] = "<a href='stock_report.php?Symbol=".$aRow[ $aColumns[$i] ]."' 
onClick = \"parent.parent.CallMe\" 
>".$aRow[ $aColumns[$i] ]."</a>";

Open in new window

0
 
MsKrissyAuthor Commented:
Thank you for the help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.