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?
Javascript Folder
-
- 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:
- 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
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.
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.
-
- 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
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.
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.
-
- 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
This is my javascript on the onmouseover event on an image field in my subile grid:
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.
Code: Select all
var id = this.id;
row = id.split(".")[1];
var notesrqsd = get("RQSDNOTES." + row);
tooltip.show(notesrqsd);
-
- 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
Solved it.
I was using the field name, not the element id, on the get.
I was using the field name, not the element id, on the get.
Who is online
Users browsing this forum: No registered users and 10 guests