[Proto-Scripty] Ajax request Encoding issue iso-8859-1

2008-11-25 Thread AS
Could anyone please let me know why Ajax request in the following manner is not setting up the correct encoding. It looks like prototype is using default utf-8 encoding. var params = Form.serialize(my_form); new Ajax.Request(url, { method: 'post', parameters: params,

[Proto-Scripty] Executing on dom:loaded

2008-11-25 Thread [EMAIL PROTECTED]
Hello all I am new to Prototype/Scriptaculous and have been trying to get something working on dom:loaded rather than once the page has rendered. I have done a reasonable amount of Googling, though the things that I have tried have been of no success. Any help is greatly appreciated! My code:

[Proto-Scripty] Something like namespaces problem

2008-11-25 Thread PROM
Hi guys I have the following problem - on a single page I want to use Draggables Droppables and separately Sortable lists. No problem thus far - I know. Here it is: I'm using a modified Draggables object and Draggable class that enhance a lot their base forms in order to act the way I want.

[Proto-Scripty] Re: Ajax request Encoding issue iso-8859-1

2008-11-25 Thread Walter Lee Davis
If you read the Prototype documentation, you will see that Prototype uses UTF-8 internally, and if you read the W3C recommendations, you will see that UTF-8 is the preferred and expected encoding for Web sites. So what is your issue specifically? Are you unable to set your server to

[Proto-Scripty] Re: update two container by one ajax call

2008-11-25 Thread Miguel Beltran R.
2008/11/21 tushersuvro [EMAIL PROTECTED] Hey. Everyone! how r u? um having trouble in updating two container (ids) in one ajax call. the function here I use is protoype's updater function. Suppose there is two ids div id=1somethinf/div there are some code here. there are some code

[Proto-Scripty] Re: update two container by one ajax call

2008-11-25 Thread Gabriel Gilini
Sorry, forgot the thread URL. [1] http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/9dbd642d6e625cff?hl=en Gabriel Gilini www.usosim.com.br [EMAIL PROTECTED] [EMAIL PROTECTED] On Tue, Nov 25, 2008 at 2:34 PM, Gabriel Gilini [EMAIL PROTECTED]wrote: On Tue, Nov 25,

[Proto-Scripty] Re: update two container by one ajax call

2008-11-25 Thread Gabriel Gilini
On Tue, Nov 25, 2008 at 2:17 PM, Miguel Beltran R. [EMAIL PROTECTED]wrote: [snip] script type=text/javascript window.observe('dom:loaded', function (){ Just change this to document.observe('dom:loaded', function(){ As seen in a thread[1] a few days back, dom:loaded is a document event.

[Proto-Scripty] Re: Add scroll buttons to Scriptaculous slider?

2008-11-25 Thread Tony Amoyal
You prob just need to store the new slidePos. a href=javascript:// onclick=increment()scroll right/a var slidePos = 0 function increment(){ slidePos = slidePos + .1; slider2.setValue(slidePos); } var slider2 = new Control.Slider('handle2', 'track2', { onSlide: function(v)

[Proto-Scripty] Re: The Hop Effect

2008-11-25 Thread asterix
Why using a script for this ? The following solution is only based on CSS (and lighter) : The CSS : style #menu { position:fixed; margin-right:20px; margin-top: 40px; z-index:100; } /style The HTML : div id=menu ... what you want in there .../div Best regards.

[Proto-Scripty] Re: The Hop Effect

2008-11-25 Thread Gabriel Gilini
On Tue, Nov 25, 2008 at 4:02 PM, Walter Lee Davis [EMAIL PROTECTED]wrote: To support IE6, may it rest in pieces. That's no excuse, you could easily support IE6 with a little conditional commenting. But you obviously wouldn't achieve the smooth scrolling effect. [snip] Gabriel Gilini

[Proto-Scripty] Re: The Hop Effect

2008-11-25 Thread Walter Lee Davis
If you looked at the script I posted, you'd see that I only attach the behavior if the browser doesn't work correctly. Naturally, if the browser is non-broken, we don't want to punish it in any way. Walter On Nov 25, 2008, at 1:14 PM, Gabriel Gilini [EMAIL PROTECTED] wrote: On Tue, Nov

[Proto-Scripty] Re: The Hop Effect

2008-11-25 Thread Gabriel Gilini
On Tue, Nov 25, 2008 at 4:20 PM, Walter Lee Davis [EMAIL PROTECTED]wrote: If you looked at the script I posted, you'd see that I only attach the behavior if the browser doesn't work correctly. Naturally, if the browser is non-broken, we don't want to punish it in any way. Yes, I did look at

[Proto-Scripty] Re: DOM popup in IE

2008-11-25 Thread Matt Foster
Why would you want to avoid position:absolute for an object which needs to sit on top of everything in the center of the document? On Nov 22, 6:10 am, Dave L [EMAIL PROTECTED] wrote: I have been struggling to get the DOM popup kit, which uses prototype, to display popups and modal dialog

[Proto-Scripty] Re: The Hop Effect

2008-11-25 Thread Matt Foster
A lot of JS is being executed, listening to scroll is like listening to mousemove, the event fires often. Scrolling up and down your page might fire off more than 100 scroll events, in combination with this, you're executing an effect each time the event is fired, furthermore the Effect

[Proto-Scripty] Re: Use slider with discontinue values

2008-11-25 Thread Matt Foster
You're sample data isn't really a range though is it? Why would you want to use an instance of ObjectRange over a regular Array? -- http://positionabsolute.net On Nov 24, 12:14 pm, T.J. Crowder [EMAIL PROTECTED] wrote: P.S : Oh and by the way, I can't post from my mail software. My mails

[Proto-Scripty] Re: onUpdate does not work with Sortable.create

2008-11-25 Thread Matt Foster
No idea if this works or not, but a quick search on Google has produced an almost identical question and answer to your issue. http://chumby.net/2008/10/27/scriptaculous-sortablecreate-onupdate-event-isnt-firing/ -- http://positionabsolute.net On Nov 22, 4:53 pm, patrick [EMAIL PROTECTED]