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 September 25th, 2010, 02:11 AM
Authorized User
 
Join Date: Sep 2010
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default Questions about JQuery

my first question is:
Intellisense for JQuery code doesn't work in .ASCX pages? is this the right behavior? should I memorize the syntax when I'm using specific pages, because I get confused when Intellisense doesn't provide me with a list of suggested words making me feel I put invalid word.

my second question is:
when do we use .text() and when do we use innerHTML to get the value inside <td> ?

my third question is:
I made a function to hide a button in 5 seconds, when I click the button it changes its place to the beginning of the next line in the page, how do I handle this? another thing is the button shrinks to the left, beginning from the right side, how can i make it shrink to the middle? to begin disappear from all directions targeting to the middle?

Thanks a lot Mr Imar
 
Old September 25th, 2010, 03:53 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
Intellisense for JQuery code doesn't work in .ASCX pages? is this the right behavior? should I memorize the syntax when I'm using specific pages, because I get confused when Intellisense doesn't provide me with a list of suggested words making me feel I put invalid word.
Explained, in depth, on page 392 and further, with the TIO showing how to fix it.

Quote:
when do we use .text() and when do we use innerHTML to get the value inside <td> ?
Both work, depending on what you're doing. One is jQuery; the other isn't. text() works on multiple matched elements, while innerHTML works only on a single item.

Quote:
I made a function to hide a button in 5 seconds, when I click the button it changes its place to the beginning of the next line in the page, how do I handle this?
Handle what? Do you want it to go to the next line but it doesn't? Or is it it going to the next line but you want to stop that? Not very clear.
Also, without any sample code, this is impossible to answer.

Quote:
another thing is the button shrinks to the left, beginning from the right side, how can i make it shrink to the middle? to begin disappear from all directions targeting to the middle?
Again, clear as mud. Shrink what? How? Where? With what code?

BTW: the latter two questions aren't related to my book directly. To draw more attention from other jQuery / JacaScript programemrs, you're better off posting them in a different forum such as one from the JavaScript category: http://p2p.wrox.com/javascript-446/

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





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
jQuery question member4953 BOOK: Beginning ASP.NET 4 : in C# and VB 4 July 7th, 2010 11:18 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
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.