Page 1 of 1
Javascript Folder
Posted: Tue May 29, 2012 2:52 pm
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?
Re: Javascript Folder
Posted: Tue May 29, 2012 3:03 pm
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.
Re: Javascript Folder
Posted: Tue May 29, 2012 3:52 pm
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.
Re: Javascript Folder
Posted: Tue May 29, 2012 4:59 pm
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.
Re: Javascript Folder
Posted: Wed May 30, 2012 1:21 pm
by rmullis
Solved it.
I was using the field name, not the element id, on the get.