[Proto-Scripty] Re: event.observer oncontextmenu

2008-10-02 Thread Maikel Punie
hmm, it seems that i was not verry clear in the explenation if i use document.body.oncontextmenu = ContextShow; the browsers contextmenu is not showen because i return false in the ContextShow function. when i do the same with Event.observer( document.body, 'contextmenu', ContextShow); the bro

[Proto-Scripty] windows mobile 6 supported?

2008-10-02 Thread andrew zuercher
Crazy question I know, but is windows mobile supported by prototype as a browser? I just tried loading 1.6.0.3 in an emulator and it failed somewhere between lines 288 and 803 on load... --~--~-~--~~~---~--~~ You received this message because you are subscribed t

[Proto-Scripty] Strange Fade/Appear behavior in IE

2008-10-02 Thread Glenn Wang
Recently, I implemented a slightly modified version of the "miniature slideshow for DIVs using Scriptaculous" on some web pages. The strange behavior is that, using IE on most web pages, the Fade and Appear function work fine, while on certain others,

[Proto-Scripty] Re: Making an effect conditional?

2008-10-02 Thread bluezehn
Search the api for more info on listeners and what they do, you shouldn't have any javascript in the html at all apart from including the files at the top. On Oct 3, 12:26 am, bluezehn <[EMAIL PROTECTED]> wrote: > Use a listener in a javascript file. > So include the javascript file at top, then:

[Proto-Scripty] Re: Making an effect conditional?

2008-10-02 Thread bluezehn
Use a listener in a javascript file. So include the javascript file at top, then: blabla In javascript file: document.observe('dom:loaded', function() { $('mylink').observe('click', function() { if($('d1').visible()) $('d1').slideUp(); }); }); On Oct 2, 10:34 pm, Mads <[EMAIL PROTECT

[Proto-Scripty] Re: Question regarding Element.observe and Element.stopObserving

2008-10-02 Thread kangax
On Oct 2, 6:15 pm, "Lea Hayes" <[EMAIL PROTECTED]> wrote: > Or as puckpuck suggested with the 'descendants' method instead of the > CSS selector for greatly improved performance. `Element.descendants` uses `Element.select` internally. That's why I used `select` directly (to avoid an extra functio

[Proto-Scripty] Making an effect conditional?

2008-10-02 Thread Mads
Hey everyone I want to call the Effect.SlideUp when I click a link, however, only if the effect Effect.SlideDown has been called. Is there any way to do so? Thanks Mads Hartmann Jensen --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Proto-Scripty] Re: Question regarding Element.observe and Element.stopObserving

2008-10-02 Thread Lea Hayes
I just realised, it might be better to do the following instead: Object.extend(Element.Methods, { stopObservingNested: function(element) { element.stopObserving(); element.descendants().each(Element.stop

[Proto-Scripty] Re: Question regarding Element.observe and Element.stopObserving

2008-10-02 Thread Lea Hayes
Or as puckpuck suggested with the 'descendants' method instead of the CSS selector for greatly improved performance. Object.extend(Element.prototype, { stopObservingNested: function() { this.stopObserving();

[Proto-Scripty] Re: Making an effect conditional?

2008-10-02 Thread Mads
How would i implement this in my code? So far i've got Appreciate the help On Oct 2, 11:30 pm, bluezehn <[EMAIL PROTECTED]> wrote: > Well when Effect.SlideDown is finished the display property of the > element is set to 'none'. So something like this would work very well: > > if(element.visib

[Proto-Scripty] Re: Making an effect conditional?

2008-10-02 Thread bluezehn
Well when Effect.SlideDown is finished the display property of the element is set to 'none'. So something like this would work very well: if(element.visible()) element.slideUp(); On Oct 2, 9:55 pm, Mads <[EMAIL PROTECTED]> wrote: > Hey everyone > > I want to call the Effect.SlideUp when I click

[Proto-Scripty] Autocompleter doesn't cancel pending requests

2008-10-02 Thread dinken
Bug with Autocompleter not canceling pending Ajax requests causing potential race condition for onComplete logic. //I added this function to the Ajax.Autocompleter class clearPendingRequests: function(){ this.pendingRequests.each(function(el){if(el) {el.transport.abort();}}); this.pendin

[Proto-Scripty] Re: IE evalScript problem

2008-10-02 Thread kangax
On Oct 2, 5:42 am, Cristisor <[EMAIL PROTECTED]> wrote: > Because the returned HTML includes JS code, IE gives me an error on > line 395 in prototype.js, and this is the evalScript function. After > searching on the Internet I discovered that others have this problem > also. Try a google search wi

[Proto-Scripty] Re: Draggable initDrag Firefox issue

2008-10-02 Thread kangax
On Sep 30, 10:51 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > i have a Problem, i Code at a WYSWYG Editor, with Sortables. Now The > Porblem is that in FireFox 3 i canot leftclick to an div witch is > contentEditable, to edit the content ;) . I already think i have foud > the Probl

[Proto-Scripty] Re: Question regarding Element.observe and Element.stopObserving

2008-10-02 Thread kangax
On Oct 2, 9:57 am, labs <[EMAIL PROTECTED]> wrote: > Yeah, but if you firebug the Event object after recursive unregister, you > will see that every element that doesnt had a  _prototypeEventID will create > an entry in Event.cache. This is because the way the eventId is generated > and THERE I'll

[Proto-Scripty] Re: event.observer oncontextmenu

2008-10-02 Thread Justin Perkins
On Thu, Oct 2, 2008 at 12:47 PM, kangax <[EMAIL PROTECTED]> wrote: > It could, if you are using an older version. Latest one doesn't check > against a list of event names, so observing an event on document.body > should work. Yes it does. I thought it was only a window event but sure enough it wo

[Proto-Scripty] Re: event.observer oncontextmenu

2008-10-02 Thread kangax
On Oct 2, 10:25 am, "Maikel Punie" <[EMAIL PROTECTED]> wrote: > hi, > > i'm trying to rework my js files to use prototype, everything is working > like a charm except the following line i can't get it replaced with an > event. > > document.body.oncontextmenu = ContextShow; > > i trying to replace

[Proto-Scripty] Re: raw prototype documentation

2008-10-02 Thread kangax
On Oct 1, 9:09 pm, Brendan Kowitz <[EMAIL PROTECTED]> wrote: > Hi, > > Incase I've missed it, does prototype keep documentation in a raw > format (ie XML), or is the closest thing that the Atom feeds at > prototypejs.org/api It's actually in markdown. See http://prototypejs.org/contribute/ > > B

[Proto-Scripty] Re: Trying to return value from onSuccess

2008-10-02 Thread [EMAIL PROTECTED]
Hi and thanks! I tried out what you mentioned and it works like a charm. Agh, so stressful trying to figure this stuff out. Thanks again. On Oct 2, 11:18 am, bluezehn <[EMAIL PROTECTED]> wrote: > So what you want to do is bind the onSuccess callback to the class in > which this Ajax.Request is

[Proto-Scripty] Re: Trying to return value from onSuccess

2008-10-02 Thread jason maina
declare the recieving variable outside the onSuccess function. I think that will work On 10/2/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello all, > > I seem to be going in circles with something I would have to assume > would be simple. Im trying to return a value from the onSuccess >

[Proto-Scripty] Re: event.observer oncontextmenu

2008-10-02 Thread Justin Perkins
You need to attach it to the window object, not the document.body object. Event.observe(window, 'contextmenu', someMethod); -justin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" grou

[Proto-Scripty] Re: Trying to return value from onSuccess

2008-10-02 Thread bluezehn
So what you want to do is bind the onSuccess callback to the class in which this Ajax.Request is created. Theoretically this would go something like this: new Ajax.Request('./map/map.php?'+values, > { > method:'get', >

[Proto-Scripty] Trying to return value from onSuccess

2008-10-02 Thread [EMAIL PROTECTED]
Hello all, I seem to be going in circles with something I would have to assume would be simple. Im trying to return a value from the onSuccess handler but it will not keep the value. new Ajax.Request('./map/map.php?'+values, {

[Proto-Scripty] Re: Passing variables to functions using Event.observe - Noob Question

2008-10-02 Thread rwfilice
Hey - another thanks from me - helped a lot. On Aug 8, 6:18 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote: > There's a few different ways you can do it, here's one: > > function showModal(elementID, event){ >   $(elementID).slideDown(); > > } > > document.observe('dom:loaded', function(){ >   $(

[Proto-Scripty] Ajax.Autocompleter does not work properly in IE 6

2008-10-02 Thread barkokhba
Everything works fine in Firefox 3. When I click on the scrollbar of the Autocompleter list, the list is closed. The mouse scoll wheel works though. The cursor arrow down and up work not as expected in IE 6, i.e. they don't just scroll one entry but 2 or 3. Any ideas how I could fix this? Thanks

[Proto-Scripty] event.observer oncontextmenu

2008-10-02 Thread Maikel Punie
hi, i'm trying to rework my js files to use prototype, everything is working like a charm except the following line i can't get it replaced with an event. document.body.oncontextmenu = ContextShow; i trying to replace it with something like Event.observe( document.body, 'contextmenu', ContextSh

[Proto-Scripty] Re: watermarked text box

2008-10-02 Thread Walter Lee Davis
This has issues with visually disabled visitors. There's a great article on ALA[1] about this very thing, and the result is incredibly elegant in an all-singing, all-dancing browser and yet degrades gracefully. Walter 1. http://www.alistapart.com/articles/makingcompactformsmoreaccessible/

[Proto-Scripty] Re: Dropdownmenu and observe

2008-10-02 Thread Walter Lee Davis
This is the same problem we are talking about in at least two other threads. If you set a mouseout listener on a DIV, that event will fire as soon as you mouse over one of that DIV's children. Because, you know, technically you are no longer over the parent DIV, you are over the child. IE

[Proto-Scripty] Re: watermarked text box

2008-10-02 Thread Tarscher
Thanks all for the replies. This will help me greatly On Oct 2, 5:06 pm, Matt Foster <[EMAIL PROTECTED]> wrote: > I like to apply a background image to the input for such cases, that > way the input's value is untouched yet the UI can indicate the purpose > of the field.  Also with an image you

[Proto-Scripty] Re: Anyone using ModalBox?

2008-10-02 Thread MikeFeltman
Bump --~--~-~--~~~---~--~~ 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 [EM

[Proto-Scripty] Re: watermarked text box

2008-10-02 Thread Matt Foster
I like to apply a background image to the input for such cases, that way the input's value is untouched yet the UI can indicate the purpose of the field. Also with an image your watermark can be a faded grey, further indicating its transparent presence. On Oct 2, 9:40 am, Christophe Porteneuve <

[Proto-Scripty] Re: watermarked text box

2008-10-02 Thread Christophe Porteneuve
Key points to remember: • Add the watermark BY JS, as you'll be removing it by JS • Observe the focus event, not the click event • Only remove the contents in there IF it is the watermark (and make sure your watermark wouldn't make a valid input text for the field, too). • Make sure you rem

[Proto-Scripty] Re: Ajax.Updater works only when html is on server where script is

2008-10-02 Thread Diodeus
You can add another tag to your document, and point it to a remote source other then your own domain, but that is not part of the AJAX functionality provided in most libraries, including Prototype. You would have to add a new