ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Jquery Tooltip - Doing it the right way

February 14, 2011 12:13pm

Subscribe [2]
  • #1 / Feb 14, 2011 12:13pm

    CDT

    93 posts

    Hi,

    I’ve managed to get the jquery Tooltip working in a SAEF using the SafeCracker extension, but I’ve done it manually (adding a link to the js code in the head).  I’d much rather take advantage of the built in jquery module, but I’m not sure how to do that, or what is meant by “built-in.”  I’m holding on with my fingernails with all this, so please bear with me.

    Tooltip isn’t in the UI folder, so I get that it isn’t a “ui.”  If I download it from jquery, it downloads as a jquery.tools.min.js.  So it is a tool… is it part of the “tools” somewhere else in EE, and which one of the jquery tags would you use to call it, if there is one?

    Here’s the script (that works, by manually adding a link to a jquery.tools.min.js file in the head):

    [removed] 
    $("#myform :input").tooltip({
     
        // place tooltip on the top edge
        position: "center top",
     
        // a little tweaking of the position
        offset: [-2, 30],
     
        // use the built-in fadeIn/fadeOut effect
        effect: "fade",
     
        // custom opacity setting
        opacity: 0.9 
    });
    [removed]

    If I put this is the head:

    {exp:jquery:script_tag}
    {exp:jquery:script_tag ui='core'}
    {exp:jquery:output_javascript file='jquery.tools.min'}

    I get the error “The requested jQuery file could not be found.”

    Where does the file go and/or am I calling it incorrectly?  I know I’m calling it incorrectly, but I’ve read through the documentation (about a dozen times) and read through other posts on the forum and can’t figure it out.

    ExpressionEngine 2.1.3 Build 20101220
    ————————-
    Added 2/16:  I’ve also had a similar experience adding the Masked Input (digitalbush) plugin for jQuery. Unfortunately, the two (Tooltip and Masked Plugin), don’t play nicely together. I assume it is me, with two versions of jQuery banging heads (or the functions being triggered by the same thing), but don’t know how to fix it, or where to start to acquire the knowledge to fix it.  ANY advice would be most appreciated.

  • #2 / Feb 16, 2011 2:51pm

    CDT

    93 posts

    Can someone point me to a thread or any other document/source that may shed some light on this for a novice?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases