Page 1 of 1

using non-PUI javascript components

Posted: Thu Nov 18, 2010 10:52 am
by leatherlips
I'm not a javascript programmer, but, working with the PUI product I'm trying to see how external js libraries/components may be integrated.
I have an example that displays a calendar and uses jquery/jqueryUI. I've copied the entire example under the htdocs directory for PUI and can access the example via the Apache server referencing the demo html file. I now want to try an put the calendar in a "record format" from PUI. I started messing with the HTML container (putting the code from the demo html in the "html" property, but it displays nothing. I'm not sure if this is even the proper method to integrate such items, so I was hoping for some direction.
I've attached the html file from the demo i was trying to integrate.
The directory "fullcalendar-1.4.8" is under the htdocs directory. (not sure if there's something with the "src" paths causing an issue?).

Re: using non-PUI javascript components

Posted: Fri Nov 19, 2010 11:32 am
by Rob
If you place a js file in folder /www/profoundui/htdocs/profoundui/userdata/custom/js it will be automatically linked in to all Profound UI pages. (css files can also be placed in custom/css)

In the designer , there is also an onload event property for each record format (screen). A JavaScript function entered into this property will be called when the screen loads.

You may be able to use these two features to get your jQuery into a page. We have not designed Profound UI specifically to integrate with jQuery and have not performed any tests so we cannot guarantee that it will work for you.

Re: using non-PUI javascript components

Posted: Fri Nov 19, 2010 12:09 pm
by leatherlips
Thanks for the info!

Re: using non-PUI javascript components

Posted: Fri Jun 24, 2011 2:57 pm
by nascar88
leatherlips did you get the jquery to work?

Re: using non-PUI javascript components

Posted: Fri Jun 24, 2011 4:12 pm
by leatherlips
I went as far as executing a function to verify it was available to me, and it did work.
I never really delved into it in any detail beyond that. I was really trying to see what we COULD do if desired.