I was actually hoping you'd find a more elegant method that didn't rely on 
InnerHTML. :)

Either way, I look forward to the blog post in the  likely event that your 
functions are neater and contain more error checking than mine.

From: [email protected] [mailto:[email protected]] On Behalf Of 
Daniel W. Brown
Sent: Saturday, 7 November 2009 3:20 PM
To: ozMOSS
Subject: RE: Hide a Web Part

Worked liked a treat!

Expect a blog post about it :)

From: [email protected] [mailto:[email protected]] On Behalf Of 
Paul Noone
Sent: Wednesday, 4 November 2009 10:46 AM
To: ozMOSS
Subject: RE: Hide a Web Part

Hi Daniel,

I was trying to do a similar thing the other day. I wound up add a CEWP to the 
page and using JavaScript to check the innerhtml of the relevant block, then 
setting its parent's container style to hidden. It's not terribly elegant but 
it works. :)

Regards,

Paul
Online Developer, ICT
CEO Sydney

From: [email protected] [mailto:[email protected]] On Behalf Of 
Daniel W. Brown
Sent: Wednesday, 4 November 2009 11:00 AM
To: 'ozMOSS'
Subject: Hide a Web Part

Howdy all,

I'm after a quick solution to completely hide a web part if there is no data 
returned by the CAML query without having to code something up.

Of course if needs be, happy to code something up, but just thought I would do 
a shout out to see if anyone has addressed this in the past.

Has anyone done anything like this before?

Thanks,

DB
_______________________________________________
ozmoss mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to