Friday, November 28, 2008

[jQuery] Re: [Cluetip] don't work

are you getting any JavaScript errors? 

--Karl

____________
Karl Swedberg




On Nov 28, 2008, at 4:41 AM, Zic Puce wrote:

Hello all, 

I work with the framework phpmvc and code with the MVC architecture. 
I want to insert a popup should recover in xml file some info. 

So I try "basically" the example given Demo Cluetip by downloading the file. All examples walk locally. 

Now I take the example code 1 "basic tip from title" in "Default Style" that I put in my file header.tpl. 
Namely:
 
[code]
<script src="../jquery-1.2.5.min.js" type="text/javascript"></script> <script src="../jquery.hoverIntent.js" type="text/javascript"></script>
  <script src="../jquery.cluetip.js" type="text/javascript"></script>
  <script src="demo.js" type="text/javascript"></script>
  <link rel="stylesheet" href="../jquery.cluetip.css" type="text/css" />
  <link rel="stylesheet" href="demo.css" type="text/css" />
[/code]
 
I am very careful to place the file and *. js *. css in the right folder. 

After, I place the code in the body :
[code]
<div id="container">
     <div id="examples"
        <ol>
     <li>     
                    <a class="title" href="#" title="This is the title|The first set of body content comes after the first delimiter in the title.|In this case, the delimiter is a pipe.">Exemple</a>   
        </li>
        </ol>
    </div>
</div>
[/code]
 
I do not modify anything in the *. js, or *. css. 
But here I will not display correctly popup title contrary to the example locally. It appears as a classic title.
 
If I modify simply this line :
[code]
<a class="title" href="#" title="This is the title|The first set of body content comes after the first delimiter in the title.|In this case, the delimiter is a pipe.">Exemple</a>
[/code]
 
by
[code]
<a class="basic" href="ajax.htm" rel="ajax.htm">Exemple</a>
[/code]
 
Now, it appears nothing et I place the ajax.html in the good folder.
I don't understand
What do I missing?
 
HELP, HELP
Thanks
Benoit
 

No comments: