Hi Ishai, I mean that the if statement requires both conditions to be true.
((pageName = "Dispform.aspx") && (_spUserId = "")) Also, is there a way to remove the content before the page displays? The content currently displays for a split-second before being removed. I thought the document ready function was meant to handle that but apparently not. Regards, Paul -- Online Developer/Administrator, ICT Projects Team CEO Sydney From: [email protected] [mailto:[email protected]] On Behalf Of Ishai Sagi Sent: Tuesday, 18 January 2011 2:06 PM To: ozMOSS Subject: Re: Customise ListFormWebPart display missing some info - you say "both" but I dont see detail below? Ishai Sagi Solution Architect and Director Microsoft SharePoint MVP, MCTS Extelligent Design SharePoint Consulting, Training and Products Mobile: 04-88-789786 Web: www.extelligentdesign.com<http://www.extelligentdesign.com/> Email: [email protected]<mailto:[email protected]> Blog: www.sharepoint-tips.com<http://www.sharepoint-tips.com/> [http://lh6.ggpht.com/_ODZmNiPJO0M/TKvaSmU07VI/AAAAAAAAAtw/ezwzn2I6SXI/s400/Extelligent%20logo%20lrg.jpg] On Tue, Jan 18, 2011 at 1:19 PM, Paul Noone <[email protected]<mailto:[email protected]>> wrote: Thanks Ishai. The following seems to correctly check for anonymous user and DispForm page. If both are true then all the tables following the list view web part (#formTbl) are removed from the DOM. Any advice on how I might improve this? $(document).ready(function() { var str = window.location.href.substr(window.location.href.lastIndexOf("/") + 1); var strArray = str.split("?"); var pageName = strArray[0]; if ((pageName = "Dispform.aspx") && (_spUserId = "")) { $("#formTbl ~ table").remove(); } }); Regards, Paul -- Online Developer/Administrator, ICT Projects Team CEO Sydney From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Ishai Sagi Sent: Monday, 17 January 2011 4:49 PM To: ozMOSS Subject: Re: Customise ListFormWebPart display I'd add a lot of jquery to the master page with checks to find out if the user is authenticated and with checks to the current page type and file name and then remove those lines using script. This will remove it - but inquisitive users will still be able to see it (view source). That leaves the forms supported (modifying master page is 100% ok by MS). Ishai Sagi Solution Architect and Director Microsoft SharePoint MVP, MCTS Extelligent Design SharePoint Consulting, Training and Products Mobile: 04-88-789786 Web: www.extelligentdesign.com<http://www.extelligentdesign.com/> Email: [email protected]<mailto:[email protected]> Blog: www.sharepoint-tips.com<http://www.sharepoint-tips.com/> [http://lh6.ggpht.com/_ODZmNiPJO0M/TKvaSmU07VI/AAAAAAAAAtw/ezwzn2I6SXI/s400/Extelligent%20logo%20lrg.jpg] On Mon, Jan 17, 2011 at 3:57 PM, Paul Noone <[email protected]<mailto:[email protected]>> wrote: Hi list - and happy new year! :) I'm currently making a number of clumsy modifications to hide certain elements on DispForm.aspx pages from anonymous users. Is there a supported method to customise the default list forms so that my changes are applied during site creation? [cid:[email protected]] My main goal is to do away with the "created/modified by" info for this type of page. Any ideas or pointers are much appreciated. Kind regards, Paul Noone --------------------------------------------------- Online Developer/Administrator Information Communication and Technology Catholic Education Office, Sydney p: (02) 9568 8461 f: (02) 9568 8483 e: [email protected]<mailto:[email protected]> w: http://www.ceosyd.catholic.edu.au/ _______________________________________________ ozmoss mailing list [email protected]<mailto:[email protected]> http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss _______________________________________________ ozmoss mailing list [email protected]<mailto:[email protected]> http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
<<inline: image001.jpg>>
_______________________________________________ ozmoss mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
