[Prototype-core] Proto 1.7rc1, problem with measuring width of elements with display: none

2010-04-22 Thread Viktor Kojouharov
I'm having a bit of a problem with measuring the width of a hidden
(with display: none) element, that has the 'body' as its parent. I
don't have a set width for this element (which is a div), but the
browsers do calculate a finite width for it, which is much smaller
than the size of the page body. However, with the layout changes,
since there is no predefined width, prototype will not use the
computed width, but will take the parent's width, which just happens
to be the width of the entire page.

will there be any plans for fixing this? otherwise I can always use
the old code for this special case.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en


[Prototype-core] Re: Prototype without browser?

2010-04-22 Thread nlloyds
Rüdiger

Check out Prototype ASP: http://nlsmith.com/projects/prototype-asp/,
http://github.com/smith/prototype-asp/tree/asp. It works in cscript as
well as other places. It's just a quick hack and is not meant to be
it's own product or anything, but it works reliably on jscript and
other non-browser platforms.

Nathan

-- 
You received this message because you are subscribed to the Google Groups 
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en


[Prototype-core] Re: Prototype without browser?

2010-04-22 Thread nlloyds


On Apr 21, 6:51 am, Rüdiger Plantiko ruediger.plant...@astrotexte.ch
wrote:
 Are you sure you are using Javascript precisely ?
 Aren't you using some kind of ECMAScript instead ?

 Well, my scripts are executed with the same library  (%systemroot%
 \system32\jscript.dll)  that is used by the Internet Explorer for
 script execution. The only difference is that there is no browser
 around and hence no global window object, no document etc.
 Instead, i execute the JS files with the cscript command.

You're right. JScript a decently compliant engine, thought not fast.
It does have the advantage of being installed on every Windows
machine. Classic ASP also uses the same engine. There's a few extra
APIs for ActiveXObjects and basic shell and window alerts (WScript.)

Nathan

-- 
You received this message because you are subscribed to the Google Groups 
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en


[Prototype-core] Re: Prototype without browser?

2010-04-22 Thread Matt Foster
I've used the Enumerable methods and the core stuff like Function.bind
and Class.create in whatever ECMA flavor the Adobe programs
use(Indesign  Photoshop) so I'm sure it's possible to leverage some
things from prototype in your program.

http://www.adobe.com/devnet/photoshop/pdfs/JavaScriptReferenceGuide.pdf

--

http://positionabsolute.net


On Apr 22, 9:42 am, nlloyds nllo...@gmail.com wrote:
 On Apr 21, 6:51 am, Rüdiger Plantiko ruediger.plant...@astrotexte.ch
 wrote:

  Are you sure you are using Javascript precisely ?
  Aren't you using some kind of ECMAScript instead ?

  Well, my scripts are executed with the same library  (%systemroot%
  \system32\jscript.dll)  that is used by the Internet Explorer for
  script execution. The only difference is that there is no browser
  around and hence no global window object, no document etc.
  Instead, i execute the JS files with the cscript command.

 You're right. JScript a decently compliant engine, thought not fast.
 It does have the advantage of being installed on every Windows
 machine. Classic ASP also uses the same engine. There's a few extra
 APIs for ActiveXObjects and basic shell and window alerts (WScript.)

 Nathan

 --
 You received this message because you are subscribed to the Google Groups 
 Prototype: Core group.
 To post to this group, send email to prototype-core@googlegroups.com
 To unsubscribe from this group, send email to 
 prototype-core-unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/prototype-core?hl=en

-- 
You received this message because you are subscribed to the Google Groups 
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en


[Prototype-core] Re: Prototype without browser?

2010-04-22 Thread Rüdiger Plantiko
Hello Nathan and Matt,

thanks for your suggestions and interesting links. I will study them
and probably
use one of your proposals...

Thanks and regards,
Rüdiger

-- 
You received this message because you are subscribed to the Google Groups 
Prototype: Core group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to 
prototype-core-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en