[Proto-Scripty] Prototype.js Closure Compiler

2010-01-06 Thread Ron Derksen
Hi list,

I was wondering if anyone has any best practices with regards to
Google's Closure Compiler and Prototype.js. What are the best settings
and how do you prevent the Compiler from breaking your code while
optimizing the file size?

Thanks,
Ron
-- 
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-scriptacul...@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.




[Proto-Scripty] positionedOffset result changes in IE

2009-08-11 Thread Ron Derksen

Hi,

I'm building a custom dropdown menu where I need to position the
dropdown layers relative to the main menu item. This works just fine
when I do it initially. However, in IE6/7 when I add an event listener
for the window resize event, the menu gets positioned incorrectly on
page load. The way I do it, is as follows:
- I calculate the position of the main menu item element by using
positionedOffset.
- I then position the sub menu element by setting the left and top
style attributes.

After checking the calculations in IE6/7, I discovered that
positionedOffset results change between the initial value and after
the resize event is fired after a page load. Element.cumulativeOffset
has the same problem; the returned values change between the onload
event and onresize event during page load, even though they should be
the same.

I can't figure out why this happens. Anyone got a clue?

Thanks,
Ron Derksen


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Proto-Scripty] templating best practices

2009-04-22 Thread Ron Derksen

Hi,

Lately I've run into the challenge to load JSON data through an AJAX
interface and then convert it to HTML. I've been trying to come up
with several approaches to do this, ranging from using the Template
object from Prototype.js to creating HTML elements through Javascript
or adding the HTML templates to the page and then retrieving them
based on IDs.

However, none of these methods strike me as graceful solutions and I
was wondering if you can offer some advice as to what is a good
approach for doing this. I've come across the Pure templating library,
and I'm interested to hear any experiences with that.

Thanks in advance,
Ron Derksen

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---