Limiting the drag drop area

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jptilkes
Super Advanced
Super Advanced
Posts: 37
Joined: Thu Jun 13, 2002 3:01 pm

Limiting the drag drop area

Post by jptilkes »

Is their a way to limit the area that a user can drag and drop the menu?

I am creating a portal page for our Intranet and would like to be able to limit where on the screen they can place portals. i.e. I want to prevent them from placing the portals over the Main menu or over some other important information.

Obviously I plan to use the menu to generate the portals.

Thanks
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

No method that I'm aware of. If the menu can be dragged, then it can be dragged anywhere within its container. I suppose you could try defining an iframe on the page (no visible borders or scroll), then place the menu within the iframe. When the menu hits a border of the iframe, it would get clipped (a visual clue to stop dragging it).

Cheers,

Kevin
jptilkes
Super Advanced
Super Advanced
Posts: 37
Joined: Thu Jun 13, 2002 3:01 pm

Thanks

Post by jptilkes »

Thanks, the iframe solution might actually work for me. I plan on using iframes for other parts of the site so adding one to the portal page would not be difficult.

Thanks
Post Reply