[Proto-Scripty] $("dialog_1") is null by firebug

2009-04-14 Thread SamuelXiao
I am writing an application using prototype.js and dialog.2.0.js (http://roland.devarea.nl/dialog/#e6) the iframe effect. But I encountered a problem when I try to fitting it into my application. What I want to do is that when a user click Show Iframe , a dialog box will be shown. Thus, I use th

[Proto-Scripty] Re: Named functions in onComplete not waiting for completion

2009-04-14 Thread T.J. Crowder
Hi, My guess is the problem lies in your code that calls exFetch (or at least code elsewhere), since that quoted code not only doesn't call the handler right away, it won't call it _at all_. This anonymous function: function (transport) { window[callBack] } ...doesn't call the handler. It

[Proto-Scripty] Re: Client-side File Processing

2009-04-14 Thread P. Douglas Reeder
I created the following HTML file to test your function and get the following errors: 1) The file input element returns only the file's name, so I don't see how your function could load the file in. 2) Under Safari 3 and later, I get a "TypeError: Result of expression 'xmlDoc.load' [undefined]

[Proto-Scripty] Named functions in onComplete not waiting for completion

2009-04-14 Thread Diodeus
Here is my function. It is a general purpose wrapper for various AJAX call in my program. Since the callback could be any function, I'm passing the callback function as a string and calling it via window [callBack], which kinda of works except it's not waiting for the actual AJAX call to complete

[Proto-Scripty] Prototype and Protovis

2009-04-14 Thread yoshi
I'm sure some of you have seen the nice work that is being done on protovis.. http://vis.stanford.edu/protovis/ I would like to implement a test of this graphing capability which returns a chart in response to an ajax.updater call. I have never quite understood how to get javascripts to run cor

[Proto-Scripty] Re: Processing Plain-Text Responses

2009-04-14 Thread MikeyLikesIt
Ah, gents, you're too fast for me. Adding a MIME mapping to the web.xml file for *.properties files fixed the problem for me. Yeah, TJ, you're right; we're probably off topic, but I think it's courteous to include the answer, in case someone else has the same problem I did. Here's what I added

[Proto-Scripty] Re: 1.6.1 RC2: What happened to $A()?

2009-04-14 Thread kangax
On Apr 13, 6:25 pm, mr_justin wrote: > > This is a regression. > > OK, that's good to hear. > > > so `$A('one', 'two', 'three')`, as in your example, should > > produce - ['o', 'n', 'e']. > > That doesn't seem right. In the past, it has always produced a 3-item > array out of the arguments, not t

[Proto-Scripty] Re: Processing Plain-Text Responses

2009-04-14 Thread Walter Lee Davis
Or .htaccess -- any server that mimics the Apache config mechanism might respect this and set the headers accordingly. Walter On Apr 14, 2009, at 9:27 AM, Nigel Peck wrote: > You should add something like this to your Apache config: > > AddType text/plain .properties --~--~-~--~

[Proto-Scripty] help needed.

2009-04-14 Thread anandperuma...@gmail.com
HI Friends ! I customized drag and drop with the script. I like it very much. But i got a problem. This works like this with me - I will drag and drop the contents from left to right. I will have block of texts for each item to drag and drop from left to right. If i drop the content before drop

[Proto-Scripty] Event stopped when its source element is removed

2009-04-14 Thread Clément
Hi all ! I wonder if there's a way to forward an event when its 'source element' (target ?) is removed. In my use, I have two inputs. I'd like to DOM-remove one of them when it 'blurs'. Till now, when I click elsewhere in the page, no problem. Now I'd like to switch fields with "tab" or click b

[Proto-Scripty] Re: Processing Plain-Text Responses

2009-04-14 Thread Nigel Peck
MikeyLikesIt wrote: > T.J., > > There was no Content-Type header. I imagine our server doesn't know > what to append for *.properties files. I'll have a look at the Tomcat > docs and see if I can figure that out. > > Thanks for all the help! It will no doubt default to text/html, which is why

[Proto-Scripty] Re: Firebug and Firefox don't show errors in Event Handlers

2009-04-14 Thread Dennis
hey, thanks for your fast answer. it's still not 100% satisfying, but I just built the onException handler and wrote my own firebug output. cheers, dennis On 14 Apr., 15:20, "T.J. Crowder" wrote: > Hi, > > (Hit send too fast.)  This article[1] from the unofficial wiki may be > useful as well.

[Proto-Scripty] Re: Processing Plain-Text Responses

2009-04-14 Thread T.J. Crowder
Hi Mikey, > There was no Content-Type header. I imagine our server doesn't know > what to append for *.properties files. That makes sense. > I'll have a look at the Tomcat > docs and see if I can figure that out. Slightly OT of me, but I might be able to point you in the right direction if yo

[Proto-Scripty] Re: Firebug and Firefox don't show errors in Event Handlers

2009-04-14 Thread T.J. Crowder
Hi, (Hit send too fast.) This article[1] from the unofficial wiki may be useful as well. [1] http://proto-scripty.wikidot.com/prototype:how-to-bulletproof-ajax-requests -- T.J. On Apr 14, 2:19 pm, "T.J. Crowder" wrote: > Hi, > > Exceptions in the Ajax callbacks are caught by Prototype and ro

[Proto-Scripty] Re: Firebug and Firefox don't show errors in Event Handlers

2009-04-14 Thread T.J. Crowder
Hi, Exceptions in the Ajax callbacks are caught by Prototype and routed to your onException handler, if you have one. Details in the docs[1]. This is specific to the Ajax callbacks, not event handlers generally. [1] http://prototypejs.org/api/ajax/options HTH, -- T.J. Crowder tj / crowder soft

[Proto-Scripty] Re: Processing Plain-Text Responses

2009-04-14 Thread MikeyLikesIt
T.J., There was no Content-Type header. I imagine our server doesn't know what to append for *.properties files. I'll have a look at the Tomcat docs and see if I can figure that out. Thanks for all the help! On Apr 13, 10:22 pm, "T.J. Crowder" wrote: > Hi Mikey, > > > In this case, I'm just

[Proto-Scripty] Firebug and Firefox don't show errors in Event Handlers

2009-04-14 Thread Dennis
Hey everybody, my problem is the following: i have a lot of javascript code that should be executed after an ajax request: sendRequest: function(url, method, [...]){ new Ajax.Request (url, { method: method, requestHeaders: {Accept: