JQuery styles not being loaded

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

JQuery styles not being loaded

BrunoBB
Hi All,

JQDialogFunctionalTest is working OK (style is loaded ok).

If i use the same code in my application the JQDialog works fine but has no style.
Somehow CSS classes are not being loaded to the JQDialog of my app (ui-dialog-titlebar ui-widget-header ....).

Both applications have the same libraries.

Any idea why style is not being loaded ?

regards
bruno

Code:
renderDeleteProcessDefintionOn: html
   | id |

   html div
      id: (id := html nextId);
      script: (html jQuery new dialog
                draggable: true;
                resizable: true;
                modal: true;
         title: 'JQuery';
         autoOpen: false);
      with: [ html unorderedList list: #('this' 'is' 'jquery')].

        html div class: 'float-left margin-left-5px'; with: [
                html anchor
                                        onClick: (html jQuery id: id) dialog open;
                                                "callback: [self removeProcessDefinition]; "
                                                with: [html image url: (SEWAFIconLibrary / #remove24Png);
                                                                                                title: ('Remove Process Definition' translateFor: self session user);
                                                                                                altText: ('Remove Process Definition' translateFor: self session user) ]
        ]
Reply | Threaded
Open this post in threaded view
|

Re: JQuery styles not being loaded

Alejandro Zuzek
Hi Bruno,

I had this problem way back and I solved it. I am not sure how I did it, but I think I just had to add the library corresponding to one of the JQuery UI Themes to the application libraries configuration. So besides one of the JQUi libraries you have to add one of the JQ Themes:

Application Libraries Configuration
Reply | Threaded
Open this post in threaded view
|

Re: JQuery styles not being loaded

BrunoBB
Alejandro,

Thanks very much it was exactly that !

Just adding JQStartTheme styles are loaded !

Regards,
Bruno