Jump to content

Okay, I've been looking at this far too long... please help!


kaiman

Recommended Posts

Hi All,

 

I am trying to call a javascript pop-up window via a link by echoing out the html via php but keep getting parse errors:

 

Parse error: syntax error, unexpected ')', expecting ',' or ';'

 

Here is the code in question:

 

echo "<td class=\"today\"> <a href=\"javascript:statusWindow('status.php?month=".$month."&day=".$day."&year=$year');\">"$day_num</a> </td>\n";

 

And here is the javascript function:

 

<script type="text/javascript">
function statusWindow(url){
status_popupWin = window.open(url, 'status', 'resizable=yes, scrollbars=yes, toolbar=no,width=400,height=400');
status_popupWin.opener = self;
}
</script>

 

Any help is appreciated.

 

Thanks,

 

kaiman

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.