Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.
Reply With Quote
  #2 (permalink)  
Old April 26th, 2010, 09:47 PM
Friend of Wrox
 
Join Date: Dec 2008
Location: , , .
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>
Reply With Quote
The Following User Says Thank You to PeterPeiGuo For This Useful Post:
Rushino (April 27th, 2010)
  #3 (permalink)  
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:04 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.