[Proto-Scripty] Re: Drag and Drop with overflow auto

2008-11-10 Thread bazikch

Hi,

It smells like your element is not correctly extended.

IE doesn't let you modify the element's _prototype_. You can find the
explanation here (last section):
http://www.prototypejs.org/learn/extensions

Hope this help.

On Nov 7, 11:43 am, Haraldo [EMAIL PROTECTED] wrote:
 Hi there,

 I have the same issue:

 var value = element.style[style];

 Firefox 3 happens to register it as follows ( similar error in ie7 ):

 element is null line: 1903

 Has anyone worked out what's going on here.

 I know it seems to affect the draggable items. My code is not affected
 at all. The errors just irritate me and look unprofessional.

 Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: How to get size of div before showing?

2009-07-02 Thread bazikch

In CSS any element styled with display:none; has no sizes because
he's no more in the document flow.

What you can do is positionning the element ouside the viewport, ie.
top: 0; left: -1000px, update it throught AJAX, get the right sizes
and then position it where you want.

HTH

On Jul 1, 3:16 pm, serenobs seren...@gmail.com wrote:
 it didn't work properly.
 my code was something like that,
 but after update div's content by ajax.updater
 element.getWidth/Height doesn't return right size.
 that method returned previous size(=size before call ajax.updater).

 On 7월1일, 오후6시37분, Vladimir Tkach tea...@gmail.com wrote:

  Fast solution
  - $(div.my).hide();
  - update div's content by ajax / js
  - get $(div.my).height() / width()
  - $(div.my).show()

  2009/6/30 serenobs seren...@gmail.com

   Hi.

   I'd like to know the size of div before showing.
   For example,

   .my {
     position: absolute;
   }

   with this css, size is not determined yet.
   I want to place this div at center of viewport after calling
   Ajax.updater
   But I can get only initial size unless show element.

   How can I get right size?

  --
  Best Regards,
  Vladimir Tkach

  +972-54-7574166
  tea...@gmail.com

 http://teamco-anthill.blogspot.com/-원본 텍스트 숨기기 -

  - 원본 텍스트 보기 -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---