Hi all,
I have a very bizarre problem.
I have a button on a PHP page which I want to call a Javascript
function when it is pressed. This is the code I have:
echo "<td><a href='$a_row[link]'
onClick=\"call_flash('$a_row[link]','$a_row[to]','')\">$a_row[pageName]</a></td>\n";
This line doesn't give me an error but the actual javascript funtion
that is located at the top of the page does. I have used the exact
same function in all the other pages (html and php) and it works fine.
The javascript error is:
Unterminated string constant.
And this is the function:
function call_flash(file_name,frame_name,from){
parent.sections.location = file_name;
parent.flash.what_frame(frame_name,from);
}
It is inside <script> tags and there are other functions too. If I
remove this function it will work fine, but then obviously the
function call doesn't work.
Please help.
Thank you very much
Kat