i have a problem with javascript. i´d like to use colorbox to display some responsemessages. is there anyone who knows how to refer to a php script variable within a javascript?
to bring an example
<?php if(isset($msg)):?>
<script type="text/javascript">
$(document).ready(function(){
$.colorbox({iframe:true, href:"<?php print variable $message from this site", scrolling:false, innerWidth:"408px", innerHeight:"292px", opacity:0.75, overlayClose:false, escKey:false, });
});
$("#colorboxCloseBtn").click(function() {
$.colorbox.close();
});
</script>
<?php endif; ?>
i´m not sure if i do understand the usage of iframe, inline, html. if i use iframe this will open a complete idependent site without any relation to the mainpage, isn´t it? inline i use, when i would like to relate on content which is on the mainpage, like i like to, right? and html... don´t know.
thanks for help.