External Javascript (screen level)

Use this board to ask questions or have discussions with other Genie users.
Post Reply
jonAgeas
New User
Posts: 7
Joined: Wed May 29, 2013 10:37 am
First Name: jon
Last Name: ****
Company Name: Ageas Insurance Limited
Country: United Kingdom
Contact:

External Javascript (screen level)

Post by jonAgeas »

I want to run some functions when a particular screen loads. I have put a js file in WWW\profoundui\htdocs\profoundui\userdata\custom\js. The guide says "The JavaScript file to load is specified on the "external javascript" screen-level property". Can someone tell me where to find this please. I am in Desgin Mode and looking at my screen properties window but it is not listed. How do I access this js file?
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: External Javascript (screen level)

Post by David »

The property in question applies only to Rich UI designer -- not Genie. Sorry if the doc was not clear on that.

The property is used to load JavaScript files in -- it does not call the routines, in any case. For Genie, you would edit the skin's 'start.html' file and link in the file through a script tag there.

Then you can call the function using the 'onload' event in the designer.

Does this help?
jonAgeas
New User
Posts: 7
Joined: Wed May 29, 2013 10:37 am
First Name: jon
Last Name: ****
Company Name: Ageas Insurance Limited
Country: United Kingdom
Contact:

Re: External Javascript (screen level)

Post by jonAgeas »

Thank you. I will put my js file in start.html instead.

Could you explain, or point me in the direction of some documentation that does, what the difference is between Rich UI designer and Genie.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: External Javascript (screen level)

Post by David »

You could have a look through the documentation here:

http://www.profoundlogic.com/docs/

Genie and Profound UI are entirely different 'animals', although integrated. With Genie, you are screen-scraping, basically so it has less (although still a lot) options/features than PUI designer, and also the approach is much different...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest