[Proto-Scripty] Re: HTTP OPTION REQUEST with FireFox 3.5

2009-08-06 Thread 0m4r
Yes I know I need to use a proxy to make that call but I did try it and I got the same result... You know what is funny... it works with the internal browser in Eclipse but not with any of the other browsers I've been testing. On Aug 6, 7:27 am, Walter Lee Davis wrote: > Unless you work at

[Proto-Scripty] dom:loaded & exceptions

2009-08-06 Thread Nicolas Terray
Hello, --- document.observe('click', function() { $('toto').update('1 2 3'); }); --- If I click on the document, firebug raise the following exception: --- $("toto") is null --- Great! No

[Proto-Scripty] 2 onchange functions - 1 jquery, 1 prototype - not working in safari

2009-08-06 Thread Ram
Hi all, Im using the jNice plugin on a select box in a form of mine. Im also calling a custom JS function which uses prototype on the same select box. <%= f.collection_select :item_name, Item.all, :item_for_order, :name, { :name => "select", :onchange => "item_row($(this));"} %> now both jNice

[Proto-Scripty] Re: dom:loaded & exceptions

2009-08-06 Thread Alex McAuley
In your first code $('toto') does not exist. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Nicolas Terray" To: Sent: Thursday, August 06, 2009 12:47 PM Subject: [Proto-Scripty] dom:loaded & exceptions > > Hello, > > --- > > > > > document.observe('cl

[Proto-Scripty] Re: dom:loaded & exceptions

2009-08-06 Thread Nicolas Terray
2009/8/6 Alex McAuley : > In your first code $('toto') does not exist. Yes I know :D My message is not about 'toto' but about exception catched by dom:loaded. I do want my exceptions displayed by the browser. I don't want to add a try{}catch in all dom:loaded --~--~-~--~~

[Proto-Scripty] Variables Access in Event Handlers

2009-08-06 Thread Haseeb Khan
Hi All, I am working on the new Palm Pre WebOS, the Apps for Palm Pre are developed in MojoSDK which is developed on top of Prototype Javascript Framework. I am trying to access variables defined at assistant level in event handlers which are a part of the same assistant as well. When I access t

[Proto-Scripty] Re: Autocompleter getSelectionId additional variables

2009-08-06 Thread Scrooge
Thanks a lot. Best Regards, Benedikt. --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: HTTP OPTION REQUEST with FireFox 3.5

2009-08-06 Thread Andrew Dupont
Omar, can you try rewriting this code to use the native XmlHttpRequest API? If that version works, then the problem definitely lies with Prototype, and I'll open a bug for this. Cheers, Andrew On Aug 5, 4:30 pm, 0m4r wrote: > Hi All, > > I have a strange behavior with a pice of code I wrote usi

[Proto-Scripty] Re: HTTP OPTION REQUEST with FireFox 3.5

2009-08-06 Thread Omar Adobati
Sure, I will and I will let you to know. Thanks, Omar Sent from Düsseldorf, North Rhine-Westphalia, Germany On Thu, Aug 6, 2009 at 15:48, Andrew Dupont wrote: > > Omar, can you try rewriting this code to use the native XmlHttpRequest > API? If that version works, then the problem definitely

[Proto-Scripty] Re: function in prototype

2009-08-06 Thread Andrew Dupont
Here's one quick way to cut down on duplication: function applyCheckboxBehavior(checkboxes, toggleControl) { toggleControl.observe('click', function() { checkboxes.each( function(box) { box.checked = toggleControl.checked; }); }); } applyCheckbo

[Proto-Scripty] lightwindow not working after ajax update

2009-08-06 Thread Martín Marqués
We are working on and html page which has a div with id="container" that gets updated when pressing link buttons that are on the top. This is very simple code: new Ajax.Updater('container', 'somepage.html', { parameters: { method: GET } }); The thing is that one of the pages has a link with

[Proto-Scripty] Re: lightwindow not working after ajax update

2009-08-06 Thread DJ Mangus
Explain lightwindow for me, does it use javascript to display? If so then post that script too please. On 8/6/09, Martín Marqués wrote: > > We are working on and html page which has a div with id="container" > that gets updated when pressing link buttons that are on the top. > > This is very si

[Proto-Scripty] Re: dom:loaded & exceptions

2009-08-06 Thread mr_justin
Don't call a method on an element unless it exists. This is a basic defensive coding technique. var thing = $('toto'); if (thing) thing.update('some text'); // or in one line $$('#toto').invoke('update', 'some text'); -justin --~--~-~--~~~---~--~~ You received th

[Proto-Scripty] Re: Variables Access in Event Handlers

2009-08-06 Thread mr_justin
Very common problem when trying to use the "this" object for the first time. Please show the code where you are creating your event observer, as it needs to be bound to the current instance of "this" at runtime. See here for more info: http://www.prototypejs.org/api/function --~--~-~--~--

[Proto-Scripty] Re: 2 onchange functions - 1 jquery, 1 prototype - not working in safari

2009-08-06 Thread mr_justin
Please show the code of your item_row function. There is likely an exception occurring in Safari, halting your script execution. I am not familiar with jNice at all, never heard of it. I assume it is a jQuery plugin? -justin --~--~-~--~~~---~--~~ You received this

[Proto-Scripty] Detecting failure

2009-08-06 Thread Krish
This maybe a newbie questions but I am having some trouble with this. 1. I would like use prototype to make an ajax call to load a page .. grab a particular div target_div from that page and stick it into a destination div dest_div on this page. $("#dest_div").load("load_test.html #target_div

[Proto-Scripty] Re: 2 onchange functions - 1 jquery, 1 prototype - not working in safari

2009-08-06 Thread Ram
Hi, jNice is a jQuery plugin for nice form elements basically -> http://www.whitespace-creative.com/jquery/jNice/ i narrowed down the issue to one line of code in the item_row function. it tries to insert a value into a hidden_field which is kind of like hanging inside tags. Here's the HTML and