[Proto-Scripty] Re: How to get the currently focused element ?

2009-02-18 Thread Baglan
) focusedElement = null; } }(e)); }); }); As a result, focusedElement will either have the focused element or null of none. Hope my haccome have been of value, - Baglan p.s. Sorry for rather unintelligible code :) On Feb 18, 5:43

[Proto-Scripty] Re: How to get the currently focused element ?

2009-02-18 Thread Baglan
And sorry for so many typos - I'm not sure what haccome even means :) but the code should work. --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: - Return the new x*y position?

2008-12-23 Thread Baglan
I see 2 parts to this problem: 1. How to figure out that dragging has finished (so that AJAX request for saving new coordinates can be initiated); 2. How to figure out element position. If you're using the Scriptaulous Draggable behavior, result should look like this: script

[Proto-Scripty] Re: Options for autocompletion when there isn't enough room

2008-12-23 Thread Baglan
Hi! I see 2 parts to this problem: 1. Determining which part of the page has enough visible space (above or below the field); 2. Positioning the DIV containing the suggestions above or below. I haven't tried it yet, but (1) should be easy to do with document.viewport.getDimensions()

[Proto-Scripty] Re: New Script.aculo.us combination effect: Wipe (beta)

2008-10-29 Thread Baglan
Cool effects! There's one tiny thing: when using 'HorizontalSplit', 1px-high part of the original image shows thru. - Baglan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

[Proto-Scripty] Re: Getting forms from document

2008-10-25 Thread Baglan
I see a problem here: document.onload = findForms(); it assigns to document.onload value that findForms() RETURNS. As the function itself doesn't return anything, document.onload is being assigned null. Rewriting it as following should work: document.onload = findForms; However, rewriting it

[Proto-Scripty] Re: Ajax.request problem

2008-10-22 Thread Baglan
of issues. Personally, I'm using FireBug for Firefox - it shows if there were any Javascript errors and lets you inspect AJAX requests easily. - Baglan p.s. Here's the link for the Firebug: https://addons.mozilla.org/en-US/firefox/addon/1843

[Proto-Scripty] Re: Encoding problem with new Ajax.Request

2008-10-21 Thread Baglan
such a request and pose as a different user. I'd use sessions instead. Good luck with the service - Baglan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email

[Proto-Scripty] Re: PeriodicalExecuter vs. Ajax.PeriodicalUpdater: use cases and advice?

2008-10-21 Thread Baglan
of updates - never a PeriodicalUpdater or PeriodicalExecuter. I guess it makes sense to keep that functionality on the server side. - Baglan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

[Proto-Scripty] Re: return to updated div id after ajax.updater.

2008-10-19 Thread Baglan
=update_stuff();return false;Update/a Otherwise default behavior gets triggered and '#' makes page jump to the top. - Baglan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

[Proto-Scripty] Re: Dynamic script file loading

2008-10-15 Thread Baglan
That's certainly possible, however, you will have to implement the mechanism for checking which JS files are necessary yourself. As for method to optionally load JS files, Scriptaculous, for instance, inserts script tags (see scriptaculous.js). - Baglan

[Proto-Scripty] Re: Javascript AJAX applications don't work in Internet Explorer 7 when they aren't located on a server or localhost

2008-10-13 Thread Baglan
I'm using a Mac, so I'm not entirely sure about IE7, however, I suggest you to try setting 'method' to 'get' if you have not done that already (default method is 'post' and browsers tend to fail with request method not supported error). Here's an example: new

[Proto-Scripty] Re: Script.aculo.us 2

2008-10-06 Thread Baglan
'course it is :-)  Check out:        http://github.com/madrobby/scripty2 Coming up soon: finalization of the brand-new effects engine, then new Behaviors module and all-new Drag-n-Drop module.  Then Controls and Sound will be ported, quite probably by YT, and Builder may end up as an

[Proto-Scripty] Script.aculo.us 2

2008-10-05 Thread Baglan
Hello! Browsing thru the GIT repository for the Script.aculo.us, I've found this phrase on the Contributions page (http://github.com/madrobby/ scriptaculous/wikis/Contribute): As script.aculo.us 1.xx is feature-frozen, this development trunk is for bugfixes only (new features will only happen