[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.pdt] PHP inside of Javascript in a .php file

I have Javascript code that I output inside of a PHP file, but put
variables inside the javascript block.  I am getting a weird error:

<?php

function SomeFunction()
{

?>
		<script type="text/javascript">
		parentValue = <?=$parentValue?>;
		</script>
		<?
}

?>

I get an error over the '<?' of the '<?=' expresssion in the javascript
block saying: Syntax error on tokens, PostfixExpression expected instead

Anyone know why this is?

Thanks,
Micah