Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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 11th, 2009, 12:20 PM
Authorized User
 
Join Date: Sep 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default Simple BugBase Question

I have been playing around with BugBase. I really like how you hide and show the search criteria. I am new to Javascript, so hopefully my question won't seem foolish.

While playing around I wanted to see what would happen if I changed the javascript function ExpandCollapsePanel so that it would not change the style on the reportingSection div. So I commented out both lines of code that set the style on the reportingSection.

What surprised me is that commenting out that the two lines of Javascript had no affect on how the program ran. I was still able to expand and collapse the search criteria. I would appreciate understanding why.

Thanks so much
 
Old September 11th, 2009, 12:40 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Can you provide a litte more information? What exactly did you comment out?

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!
 
Old September 11th, 2009, 12:51 PM
Authorized User
 
Join Date: Sep 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
Hi there,

Can you provide a litte more information? What exactly did you comment out?

Imar
Thanks for getting back to me so quickly. Here is the code:

Code:
function ExpandCollapsePanel(expand)
{
if (expand)
{
document.getElementById('collapse').style.display = 'none';
// document.getElementById('ctl00_plcMainContent_reportingSection').style.display = 'block';
document.getElementById('expand').style.display = 'block';
}
else
{
document.getElementById('collapse').style.display = 'block';
// document.getElementById('ctl00_plcMainContent_reportingSection').style.display = 'none';
document.getElementById('expand').style.display = 'none';
}
 
Old September 11th, 2009, 12:57 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

IIRC, that code is in the ClientScripts.js file, right? If so, maybe this is a caching issue? Have you tried a hard refresh (Ctrl+F5) or clearing your cache?

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!
 
Old September 11th, 2009, 01:02 PM
Authorized User
 
Join Date: Sep 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
IIRC, that code is in the ClientScripts.js file, right? If so, maybe this is a caching issue? Have you tried a hard refresh (Ctrl+F5) or clearing your cache?

Imar
Clearing my cache did the trick. Thanks so much, that would never have occurred to me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
not at all simple question petergoodman XSLT 0 July 18th, 2008 08:37 AM
simple question petergoodman XSLT 8 July 18th, 2008 07:57 AM
Question about the Name Value Class used BugBase mikener BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 June 26th, 2008 07:04 AM
Formatting Question in the BugBase mikener BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 June 6th, 2008 01:45 PM
BugBase: .CCS question rjd BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 November 21st, 2006 05:21 PM





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