[Proto-Scripty] Ajax.request problem

2008-10-22 Thread akaballa
Hi There, I just started with protype and am really liking the concept. I am particularly using it to create my ajax requests to update my mysql DB of form information. Previously i used AJAX xmlHTTPrequest through creating the function myself. To conclude I had major cross-browser issues. So

[Proto-Scripty] Ajax.Request charset encoding problems

2008-10-22 Thread d_idaho
Hi, I'm using prototype 1.6.0.2. My page is generated by a cgi-bin program (a dll) on a IIS server. It is encoded in Windows-1252 charset. Users may both use Internet Explorer 6 or Mozilla Firefox browsers. The page uses the Ajax.Request object in order to send a request to the dll : new

[Proto-Scripty] Re: Ajax.Request charset encoding problems

2008-10-22 Thread T.J. Crowder
Hi, Weird, in the space of just a few days we've now had three separate threads on character encoding, more than we've had in several months. Here are the other two threads: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/06f7ab84ec0e7178

[Proto-Scripty] Re: Ajax.request problem

2008-10-22 Thread Aurélien DESMULIER
I suppose 'secid','Name' and 'cIns' are input elements from your 'trainingForm' form? Why don't you use the serialize() method from the Form object in order to send the parameters ? *ie*: var url = 'courseSecIdUpdate.php'; new Ajax.Request(url, {

[Proto-Scripty] Re: Dynamic javascripts, IE7 problems...

2008-10-22 Thread T.J. Crowder
Hi Dave, So in essence, you want to load a page (really a fragment of a page) from the server into a container element and execute the scripts in the page that comes back? Good news: You're working too hard. :-) Prototype will do that for you if you set Ajax.Updater's evalScripts option[1] to

[Proto-Scripty] Re: how to optimize?

2008-10-22 Thread T.J. Crowder
@All: You know how you plan to send a really brief, simple reply and things just get out of hand? Apologies for the long post... @RobG: doSomething($('elID')) I think he means using Prototype's element extensions (though I could be mistaken). Naturally if you like, you can code your own

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

2008-10-22 Thread Walter Lee Davis
On Oct 21, 2008, at 4:59 PM, Justin Perkins wrote: Hey man, you wanted an example and you got it. I gave you an example of a typical Rails RJS response, which are auto-generated from ruby-like code rather than written to leverage a particular framework's callbacks, etc. -justin No

[Proto-Scripty] Re: Ajax.request problem

2008-10-22 Thread Baglan
I see an error in your code which could have prevented it from working at all; the ',' (comma) after the onSuccess function definition is missing (happens to me all to frequently :)) - could that be the issue or is it a typo? I'd suggest you to use some kind of debugger for spotting that kind of

[Proto-Scripty] Re: Ajax request encoding

2008-10-22 Thread João Paulo Mafra
Hi Baglan, I'm already doing that. However, in the server I must convert from one charset to another programmaticaly. The problem seems to be the use of encodeURIComponent function by prototype: Mozilla Developer Core Javascript

[Proto-Scripty] Re: Dynamic javascripts, IE7 problems...

2008-10-22 Thread T.J. Crowder
Hi, // This kind of script WILL work if processed by Ajax.Updater: [snip] That’s a common trickster, biting beginners in the ankle. So watch out! Thanks for pointing that out. As far as I can tell, that part of the page (for lurkers: it's a quote from the Ajax.Updater page) is incorrect

[Proto-Scripty] Re: Ajax request encoding

2008-10-22 Thread João Paulo Mafra
(I'm resending my last message in plain text after viewing it on google groups, which is in html and with formatting errors) Hi Baglan, I'm already doing that. However, in the server I must convert from one charset to another programmaticaly. The problem seems to be the use of

[Proto-Scripty] Re: Implementing something like jQuery's oneClick in Prototype?

2008-10-22 Thread lfortin
Hi Keith, When you call Event#stopObserving, you have to use the exact same handler that was used for Event#observe. I have not tested it, but try something like this: var myHandlerObj = { handler: function(e) { Event.stopObserving(this, 'click', myHandlerObj.boundHandler); } }

[Proto-Scripty] Re: Implementing something like jQuery's oneClick in Prototype?

2008-10-22 Thread Trevan Richins
Keith Hughitt wrote: Could anyone help tell me what I'm missing? I could have sworn Prototype already had something like this (a function that fires only once and then removes itself), but I couldn't find it anywhere so I went about writing the code myself. First I tried to do it by

[Proto-Scripty] Re: Unoffiicial Prototype script.aculo.us wiki

2008-10-22 Thread Andrew Kaspick
A little late to this thread and maybe I missed something somewhere, so please ignore me if I have, but without core support (or at least mention of resources like this from the core prototype site) people won't find these resources. It took me long enough to find scripteka back in the day

[Proto-Scripty] Re: Unoffiicial Prototype script.aculo.us wiki

2008-10-22 Thread T.J. Crowder
Hi, ...without core support (or at least mention of resources like this from the core prototype site) people won't find these resources... Oh, I don't know. Try googling prototype tip or prototype tips, for instance. ;-) And that's after about a week. Give us some time, and I figure we'll

[Proto-Scripty] Portlets

2008-10-22 Thread Karthik
Hi Friends, I am using PrototypeJS for Portlets. I am able to make it work fine ... I have a new requirement of maximising and minimising the portlets. Can anyone help me out in this.? URL for reference : http://blog.xilinus.com/2007/8/26/pr...e-portal-class They have mentioned in that blog in

[Proto-Scripty] Re: PrototypeJS + Chrome + Observers

2008-10-22 Thread Jeztah
On Oct 7, 4:41 pm, kangax [EMAIL PROTECTED] wrote: On Oct 7, 3:21 am, Roland [EMAIL PROTECTED] wrote: Hi there, I have this little function within my class: var _setObservers = function(events, func, handle){         if(!events) return;         events = _getObservers(events);  

[Proto-Scripty] Re: Autocomplete : make not automatically select first item

2008-10-22 Thread luniki
You could fork the official scriptaculous git repository at github (http://github.com/madrobby/scriptaculous/tree/master), patch it and send a pull request to madrobby. I like your patch and would vote +1 if necessary :-) On Oct 20, 3:00 pm, Jesper Rønn-Jensen [EMAIL PROTECTED] wrote: Thanks

[Proto-Scripty] Re: Search Term Highlighting

2008-10-22 Thread Ben Mills
Hi Neil, A normal loop looks something like this: for (var i = 0; i searchTerms.length; i++) { // Do something in the loop. } I've been trying out this highlighting script and it works OK. The biggest problem seems to be that it doesn't highlight every instance of the search terms. I'm

[Proto-Scripty] Re: Unoffiicial Prototype script.aculo.us wiki

2008-10-22 Thread Tobie Langel
Agreed. :) Best, Tobie On Oct 22, 9:34 pm, T.J. Crowder [EMAIL PROTECTED] wrote: Hi, ...without core support (or at least mention of resources like this from the core prototype site) people won't find these resources... Oh, I don't know.  Try googling prototype tip or prototype tips,

[Proto-Scripty] Re: Implementing something like jQuery's oneClick in Prototype?

2008-10-22 Thread kangax
On Oct 22, 9:48 am, Keith Hughitt [EMAIL PROTECTED] wrote: Could anyone help tell me what I'm missing? I could have sworn Prototype already had something like this (a function that fires only once and then removes itself), but I couldn't find it anywhere so I went about writing the code

[Proto-Scripty] Re: Dynamic javascripts, IE7 problems...

2008-10-22 Thread DaveC
Hi T.J, I'm not able to use the AJAX.Updater because of policy regarding AJAX requests require me to use another ajax. Suffice to say by the time I see the response it's two strings one with HTML and one with JavaScript. Here is the path I followed to get where I'm at. The following sample code

[Proto-Scripty] Who do know: the problem with window.open

2008-10-22 Thread buda
I have a page in IE in Intranet zone!: html body input type=button value=button onclick=if (!window.dialogHeight) { window.showModalDialog('c:\\2.html', 'help:0;status:0;scroll: 0;center:1'); } else { window.open('c:\\2.html', '2html',

[Proto-Scripty] Re: Who do know: the problem with window.open

2008-10-22 Thread buda
What should I say the users - in first windows Billy cears about you invisible, but on 3th level his patience was broken - so lets go to bet Billy! :) On 23 окт, 02:42, buda [EMAIL PROTECTED] wrote: I have a page in IE in Intranet zone!: html body input type=button value=button

[Proto-Scripty] Re: Who do know: the problem with window.open

2008-10-22 Thread kangax
On Oct 22, 7:42 pm, buda [EMAIL PROTECTED] wrote: I have a page in IE in Intranet zone!: html body input type=button value=button onclick=if (!window.dialogHeight) { window.showModalDialog('c:\\2.html', 'help:0;status:0;scroll: 0;center:1'); } else { window.open('c:\\2.html', '2html',

[Proto-Scripty] Re: Unoffiicial Prototype script.aculo.us wiki

2008-10-22 Thread kangax
On Oct 22, 3:34 pm, T.J. Crowder [EMAIL PROTECTED] wrote: Hi, ...without core support (or at least mention of resources like this from the core prototype site) people won't find these resources... Oh, I don't know. Try googling prototype tip or prototype tips, for instance. ;-) And