Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SharePoint > SharePoint 2007 > BOOK: Professional SharePoint 2007 Design ISBN: 978-0-470-28580-0
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional SharePoint 2007 Design ISBN: 978-0-470-28580-0 Discuss the book Professional SharePoint 2007 Design by Jacob J. Sanford, Randy Drisgill, David Drinkwine, Coskun Cavusoglu; ISBN: 978-0-470-28580-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SharePoint 2007 Design ISBN: 978-0-470-28580-0 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 Display Modes
  #1 (permalink)  
Old April 1st, 2009, 09:04 PM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Post Web parts don't drag and drop using mossman_intra.master

Hi,
I've created a site collection based on the Collaboration Site, then activated all publishing features. I'm creating a intranet collaboration portal, with the top level being used primarily as a publishing site, and many collaboration team sites below. I'm developing a custom master based on "mossman_intra.master" (from Chapter 8).

I attached the "mossman_intra.master" as the site and system master page. When in Edit Mode (using IE7), I am not able to move web parts (via drag and drop) within a zone or across zones. If I use the Web Part Tool Pane, and edit the Zone and Zone index in the Layout section, then the parts move as expected.

Can you tell me why drag and drop of webparts within or across zones is not working with this master? When using default.master, all webparts drag and drop as expected.

(While in Edit Mode, when I select a Web Part title bar, it says "Error on page" in the IE status bar.)

Thanks.
Reply With Quote
  #2 (permalink)  
Old April 2nd, 2009, 02:22 AM
Wrox Author
 
Join Date: Apr 2008
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try deleting line 44 of the CSS file:
position: relative; /* needed for footer positioning*/
This is a left over from the internet page styles that can be removed. Looks like the web part dragging gets confused when their parent container is positioned relatively. I'm not really sure why, must be something in the ootb javascript that gets confused.
Reply With Quote
  #3 (permalink)  
Old April 2nd, 2009, 12:55 PM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nice. Thanks for the quick reply. That was it, the relative positioning of the parent was indeed the offender. I did notice that when I selected the web part title bar to drag and drop, the orange "placement bar" (which indicates drop placement) was appearing outside the web part zones, and in fact outside the page layout area. If I notice any other weirdness I'll look to positioning and let you know.

Cheers.
Reply With Quote
  #4 (permalink)  
Old April 2nd, 2009, 01:58 PM
Wrox Author
 
Join Date: Apr 2008
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried to debug the "placement bar" issue, but as I was messing with it the problem went away on my SP server. I'm not sure if its sporadic or something was caching. But now my server (despite only having that one line change applied) is showing the placement bar in the correct position all the time.
Reply With Quote
  #5 (permalink)  
Old April 2nd, 2009, 03:27 PM
Registered User
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ooops. Sorry, but I steered you wrong with my last comment. The placement bar issue was happenning before the fix. It was just something I noticed that could have indicated (for me) the relative positioning problem you pointed out.

The fix fixed it! Thanks again.

(By the way, your book is great, as well as your templates! Really helpful. Strong work!)
Reply With Quote
Reply


Thread Tools
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
Drag and Drop batott ASP.NET 2.0 Professional 3 April 26th, 2008 07:59 PM
Web Parts in a Master Page melissa820 BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X 0 April 4th, 2006 03:03 PM
Drag/Drop bmains Javascript 1 September 22nd, 2004 07:29 PM
Drag and drop Clive Astley Access 2 August 15th, 2003 12:11 PM
Implementing Drag n Drop in Web Forms jaswantsinghrana ASP.NET 1.0 and 1.1 Basics 2 July 1st, 2003 01:10 AM



All times are GMT -4. The time now is 01:33 AM.


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