Displaying a JQuery Dialog

Just create a new field as label type and add the follow code:



<link rel="stylesheet" href="/js/jquery-ui-1.8.5.custom.css">

<SCRIPT type="text/javascript" src="/js/jquery-1.4.2.min.js"></SCRIPT>

<SCRIPT type="text/javascript" src="/js/jquery-ui-1.8.5.custom.min.js"></SCRIPT>

<script>
 $("#dialog").dialog();
</script>

<div id="dialog" style="display:none" title="Dialog Title">I'm in a dialog</div>


off course you’ll need the jquery, jqueryui and the css files in a path called js in your wwwroot.

This dialog may be usefulll to display some messages to the users and other things …

You can adapt to your needs …

This code will display something like this:

Off course this is just an idea … you can use blank application to write all the html, or other things …

Re: Displaying a JQuery Dialog

This would be a very nice feature to add widgets to scriptcase forms. This way I want to createa set of small buttons to select a set of preselected colors and assign it to the field.

Who knows version 6 :slight_smile:

Martin

Re: Displaying a JQuery Dialog

I’ve a dude about this code. Where can be insert?. I tried put this code at events but It not work.

you have to add ?> and <?php tags at the beginning and end of the script