Welcome, Guest
Username: Password: Remember me

TOPIC: Using msg-info outside of validationengine?

Using msg-info outside of validationengine? 14 Dec 2012 17:27 #6090

  • gdpodesta
  • gdpodesta's Avatar
  • Offline
  • Senior Member
  • Posts: 75
  • Thank you received: 8
  • Karma: -42
While I appreciate the value of this JS library, the built in popups for information about the field are far more trouble than they're worth in my case. By convention, we provide the informational text as a tooltip, allowing them to hover their mouse pointer over an "info" graphic, so I'd like to know how to, or if it's even possible to:
  1. "Block" the msg-info value in the form XML from being passed to the validation engine JS library
  2. Retrieve the msg-info value on the form to be used as the title of an "info" graphic next to the label
The administrator has disabled public write access.

Re: Using msg-info outside of validationengine? 14 Dec 2012 18:05 #6091

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
by adding a description tag to your field's xml and setting it = to your defined language string you will get tooltips - oh, and adding JHTML behaviour.tooltip

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: Using msg-info outside of validationengine? 14 Dec 2012 18:51 #6094

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Behaviour.tooltip gets added to the form btw, not in the XML of your form.

Got it working?
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: Using msg-info outside of validationengine? 14 Dec 2012 20:11 #6095

  • gdpodesta
  • gdpodesta's Avatar
  • Offline
  • Senior Member
  • Posts: 75
  • Thank you received: 8
  • Karma: -42
That is FAR superior to the validationengine pop ups!!!! :woohoo:

May I suggest that this would be a VERY nice option when building the component - give the developer the choice of using the information text in the JS pop or in Joomla tooltips.

Here's what I added to my XML. Not sure if it's common knowledge or not, but I found the "labelclass" info at joomlacode.org/gf/project/joomla/tracker...racker_item_id=28450. I just changed info-msg to description (per your suggestion) .
labelclass="mytooltip"
description="This is the description that appears in the tooltip"
Then, added some css to have a nice little tooltip info image appear to the left of my title:
label.tooltip {
        background-image: url("components/my_component/images/icon-16-info.png");
        position:absolute;
        padding-left:20px;
        background-position: 0 3px;
        background-repeat: no-repeat;
}
The administrator has disabled public write access.

Re: Using msg-info outside of validationengine? 14 Dec 2012 21:21 #6096

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Nice1 @gdpodesta & thanks for linking to the labelclass tracker - I'm sure many users will find it useful!

Personally, I prefer the popups but they do take a bit more work to style.

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: Using msg-info outside of validationengine? 06 Jan 2013 17:54 #6358

  • dyoungers
  • dyoungers's Avatar
  • Offline
  • Premium Member
  • Posts: 123
  • Thank you received: 16
  • Karma: 0
Thanks @gdpodesta for this tip as well, and I have to agree with you! To me the popups are annoying when they show up every time (once a user has used the form once or twice they are no longer needed and should be optional). I'll be changing mine to tool tips which I think make things much cleaner

and yes, it would be nice if it were an option as you've suggested so we could set these at the table level :)

Thanks again!
Dave
The administrator has disabled public write access.
Time to create page: 0.196 seconds

Get Started