Click here to Skip to main content
15,878,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,

Ihave an issue in JQuery. i am not able to display the alert message in the following code :

<script src="jquery.tagcanvas.js" type="text/javascript"></script>
    <script type="text/javascript">
        //alert("aa");
        $(document).ready(function() {
            alert('aa');          <<- THIS IS NOT GETTING PRINTED ON RUNTIME. WHY ??
            if (!$('#myCanvas').tagcanvas({
                textColour: '#FFFFFF',
                outlineColour: '#ff00ff',
                reverse: true,
                depth: 0.8,
                maxSpeed: 0.05
            }, 'tags')) {
              $('#myCanvasContainer').hide();
            }
        });
    </script>



please Help !!
Posted

1 solution

Did you forget to include the main jQuery script? You need that as well as the plugin file, and you can get it from here: http://jquery.com/[^]

(Normally I see questions like this about TagCanvas by email - seeing one on CodeProject is weird)
 
Share this answer
 
Comments
shikhar gilhotra 27-Mar-12 7:18am    
you actually never got the question. thanks for nothing..
Graham Breach 27-Mar-12 7:33am    
You didn't show the jQuery include, so I assumed it wasn't there. Apart from that the code works fine for me (except when I pasted in your "<<- THIS IS NOT GETTING PRINTED ..." as well, which broke it.)

If it wasn't obvious, I normally get questions like this by email because I am the person who made TagCanvas.
shikhar gilhotra 28-Mar-12 1:48am    
agree...but you didnt create codeproject (where i threw this question).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900