Javascript Folder

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
rmullis
Experienced User
Posts: 100
Joined: Tue Feb 21, 2012 1:24 pm
First Name: Robert
Last Name: Mullis
Company Name: WRC
State / Province: Georgia
Country: United States
Contact:

Javascript Folder

Post by rmullis »

I have created a javascript for a custom tooltip. The javascript and the css have been placed in folder profoundui/userdata/custom. I have placed the new javascript on the onmouseover and onmouseout event on an image field. When I move the mouse over this image, I get the following error: Onmouseover Error: 'wrctooltip' is not defined.

This is the name of the javascript. How do I get ProfoundUI to recognize/find my javascript?
User avatar
Brian
Profound Logic Staff Member
Posts: 286
Joined: Thu Apr 14, 2011 10:23 am
First Name: Brian
Last Name: May
Company Name: Profound Logic Software
Contact:

Re: Javascript Folder

Post by Brian »

Normally you would put it in /www/profoundui/htdocs/profoundui/userdata/custom/js

Are you running Profound UI inside of Genie? If so you will need to link the js file in manually in your start.html file.
rmullis
Experienced User
Posts: 100
Joined: Tue Feb 21, 2012 1:24 pm
First Name: Robert
Last Name: Mullis
Company Name: WRC
State / Province: Georgia
Country: United States
Contact:

Re: Javascript Folder

Post by rmullis »

I finally figured out my problem. It was a naming problem within the javascript.

Now, if I can figure out how to get the text for the tooltip from a field in a subfile row when I mouse over it, I will be set.
rmullis
Experienced User
Posts: 100
Joined: Tue Feb 21, 2012 1:24 pm
First Name: Robert
Last Name: Mullis
Company Name: WRC
State / Province: Georgia
Country: United States
Contact:

Re: Javascript Folder

Post by rmullis »

This is my javascript on the onmouseover event on an image field in my subile grid:

Code: Select all

var id = this.id;
row = id.split(".")[1];
var notesrqsd = get("RQSDNOTES." + row);
tooltip.show(notesrqsd);
RQSDNOTES is a hidden text field in the grid. Through debug, I have verified that the field is set correctly. But, I cannot get the value of the field retrieved for my tooltip javascript.
rmullis
Experienced User
Posts: 100
Joined: Tue Feb 21, 2012 1:24 pm
First Name: Robert
Last Name: Mullis
Company Name: WRC
State / Province: Georgia
Country: United States
Contact:

Re: Javascript Folder

Post by rmullis »

Solved it.

I was using the field name, not the element id, on the get.
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests