Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 26th, 2010, 09:11 PM
Friend of Wrox
 
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
Default jQuery in jQueryDemos.aspx

Hello,

I tried this code as a test and have actually lots of fun trying jQuery functions. However, i came into a small issue regarding this one... in Firefox it does work perfect we see the whole animation but in EI 8 it slide but doesn't animate at all.. i am actually missing something ? is there any security with restricting javascript code in IE 8 ? .. the slide work but without animation so it might not be a security issue with javascript. Can you help me ?

Code:
<script type="text/javascript">
      $(function () {
          // Examples go here

          $('#Button1').click(function () {

              $('#DemoTable').slideToggle(500);

          });


      });
  </script>
Thanks.
 
Old April 26th, 2010, 09:47 PM
Friend of Wrox
 
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

The following works in both IE 8 and FF (if you still have issue, please post your entire html):
Code:
<!DOCTYPE html>
<html>
<head>
	<script src="http://code.jquery.com/jquery-latest.js"></script>
	<script type="text/javascript">
		$(function () {
			$('#Button1').click(function () {
				$('#DemoTable').slideToggle(500);
			});
		});
	</script>
</head>
<body>
	<button id="Button1">Toggle</button>
	<p id="DemoTable">
		Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. 
	</p>
</body>
</html>
The Following User Says Thank You to PeterPeiGuo For This Useful Post:
Rushino (April 27th, 2010)
 
Old April 27th, 2010, 12:08 PM
Friend of Wrox
 
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
Default

Oh well, dunno what happened but now it is working... seem like IE 8 have some glitches.. sometimes.

Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Please I need some help on jquery on usercontrols, thanks... ysfkay ASP.NET 3.5 Professionals 8 August 27th, 2010 09:30 AM
How to use LeaveNotice in Jquery FileFound Javascript How-To 0 December 28th, 2009 07:11 AM
Jquery issue FileFound Javascript How-To 0 December 28th, 2009 07:00 AM
JavaScript vs JQuery skijor ASP.NET 3.5 Basics 4 August 7th, 2009 10:21 AM
XML AND JQUERY pallone BOOK: Beginning JavaScript and CSS Development with jQuery 10 July 10th, 2009 10:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.