Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
JavaScript
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
    <script type="text/javascript" src= "js/jquery.pfold.js"></script>

<div id="uc-container" class="uc-container"  >
					<div class="uc-initial-content">
						<!-- custom content -->
						<span class="clickme">Click me</span>
					</div>

					<div class="uc-final-content">
						<!-- custom content -->
						<div class="scrollwrap">
<script type="text/javascript">
        $(function () {
            alert("jquey hi");
            var $container = $('#uc-container'),
				pfold = $('#uc-container').pfold({
				    easing: 'ease-in-out',
				    folds: 3,
				    folddirection: ['left', 'bottom', 'right']
				});
				alert("jquey in");
				$container.find('span.clickme').on('click',function () {
                alert("jquey in");
                pfold.unfold();

            }).end().find('span.close').on('click', function () {
                alert("jquey in");
                pfold.fold();

            });

        });
		
    </script>
Posted
Updated 8-May-13 20:54pm
v2
Comments
Brian A Stephens 8-May-13 8:06am    
You've gotta provide more information than this! Your code implies that it's more than just a click event that's broken, since you have an alert that presumably isn't firing either (or does the first alert work?). Check the generated HTML page to ensure that the reference to jQuery is correct. Tell us if there's any error from the console, etc.
Just check in FireBug console window in FireFox, if you have any errors or not.
If there are errors, then correct them.
Sergey Alexandrovich Kryukov 8-May-13 11:24am    
The jQuery code is client-side, it cannot depend on whether the site is published or not. The problem, if any, is somewhere else...
—SA
_debasis 9-May-13 1:33am    
First check the path to the jquery js is correct or not. Then check it is loading or not.

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