Hey all, I’m trying to use some javascript on form and control app in a project I’m doing. I have it defined in php as follows:
//<?php
$text = “Testing”;
function dialog_pop($text){}
?>
<html lang=“en”>
<head>
<meta charset=“utf-8”>
<title>jQuery UI Dialog - Basic modal</title>
<link rel=“stylesheet” href=“themes/base/jquery.ui.all.css”>
<script src=“jquery-1.4.2.js”></script>
<script src=“external/jquery.bgiframe-2.1.1.js”></script>
<script src=“ui/jquery.ui.core.js”></script>
<script src=“ui/jquery.ui.widget.js”></script>
<script src=“ui/jquery.ui.mouse.js”></script>
<script src=“ui/jquery.ui.draggable.js”></script>
<script src=“ui/jquery.ui.position.js”></script>
<script src=“ui/jquery.ui.resizable.js”></script>
<script src=“ui/jquery.ui.dialog.js”></script>
<link rel=“stylesheet” href=“demos/demos.css”>
<script>
$(function() {
$( “#dialog-modal” ).dialog({
height: 140,
modal: true
});
});
</script>
</head>
</html>
<?php
echo ‘<div id=“dialog-modal” title=“Dialog Box Test”>’.$text.’</div>’;
?>
I created a php method on my form with the above code (which works fine if I run the page in a browser) and then define a button for testing on the form to call the function to test it. But it doesnt work. When I call the form all I get is a blank screen, nothing else. Not even an error. Am I missing something here? Has anyone else used jquery from within SC that has a code example of how you got it to work? TIA all.
Kevin