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

2008-10-22 Thread DaveC
This is kind of related to previous post "Dynamic script file loading", but I cant solve the following problem. Please help. It's basically an IE problem. I'm writing an AJAX application where each page of the site is loaded dynamically by the client side application. So for example the user clic

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

2008-10-22 Thread doofus
thanks for the tip guys. Setting the index to -1 works, but i get the following error when I actually hit enter to submit the form (the form does submit though, but I can see the error): Index or size is negative or greater than the allowed amount" code: "1 on this line: return this.update.fi

[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 Aja

[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 http://groups.google.com/grou

[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]

[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 me

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

2008-10-22 Thread DaveC
" // This kind of script WILL work if processed by Ajax.Updater: coolFunc = function() { // Amazing stuff! } That’s a common trickster, biting beginners in the ankle. So watch out! " (reading retard) :) thanks.. I'll try this tomorrow and report back. DaveC On Oct 22, 11:00 pm, "T.J. Crow

[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

[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 Guide

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

2008-10-22 Thread João Paulo Mafra
Hi, The same problem happened with me, and I found a possible solution. View the thread below for details: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/06f7ab84ec0e7178 :D 2008/10/22 T.J. Crowder <[EMAIL PROTECTED]> > > Hi, > > Weird, in the space of just a few

[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 inc

[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 "encodeURICompone

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

2008-10-22 Thread Keith Hughitt
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 intuition using several variation

[Proto-Scripty] a problem with accordion on IE6

2008-10-22 Thread zaher ghaibeh
hello every one : i have this code - start this.options = Object.extend({ activeElement: null, activeIndex: 1, effect: 'blind', duration: 0.2, activeClassName: 'active', onActivate: me,

[Proto-Scripty] Re: Ajax.request problem

2008-10-22 Thread akaballa
Well I implemented what you said and debugged my code through firebug and found out that the request is not sent because of the following error: Prototype is not defined dispatchException()Prototype.js (line 1355) respondToReadyState()Prototype.js (line 1322) onStateChange()Prototype.js (line 124

[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); } } myHa

[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 b

[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 becaus

[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

[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 t

[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 = _getOb

[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 go

[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

[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 cod

[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!: only on 3th window location bar appears (window opens dialog, then dialog opens window) why??? what is a stange care about users in Intranet zone - who may kick Billy on ass?!! :) --~--~-~--~~~---~--~~ You received

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

2008-10-22 Thread buda
I mean IE7 On 23 окт, 02:42, buda <[EMAIL PROTECTED]> wrote: > I have a page in IE& in Intranet zone!: > > > > > > > > only on 3th window location bar appears (window opens dialog, then > dialog opens window) > > why??? what is a stange care about users in Intranet zone - who may > kick

[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!: > > > > > > > > only on 3th window location b

[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!: > > > > > > > Do you really need to use an inline event handler here? Snippets like this usually lead to a maintenance nightmare in the future (not to mention inability of a browser to cache the

[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 in