[Proto-Scripty] Re: Stacked AJAX Calls Not Working

2009-07-15 Thread Alex McAuley
if(response.status == 100) { --- if(response.status == 100) { Just a thought (untested) - Original Message - From: Bobby.D bobby.d...@gmail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Wednesday, July 15, 2009 3:37 AM Subject: [Proto-Scripty]

[Proto-Scripty] Re: Help! Is it possible to tell which element I invoked without the use of id attribute

2009-07-15 Thread Paul Kim
Thanks Alex, this was exactly what I was looking for: for(i=0;i=$$('#slidebtn li').length) { if(i==3) { alert('Got the 4th list element'); } - Paul On Tue, Jul 14, 2009 at 11:08 PM, Alex McAuley webmas...@thecarmarketplace.com wrote: You can collect the LI's under the UL like this if you

[Proto-Scripty] Re: Is this proper use of bind?

2009-07-15 Thread keemor
Thanks for this tip, I didnt know that What about this fragment: xhrRequestFake: function(e){ //now this is a li which I want to use to read id from itemManager.json = [{'key':'no'},{'key':'way!'}]; itemManager.createHTML(); } Is it a good

[Proto-Scripty] Re: Ajax Request Timeout

2009-07-15 Thread Rick
@Matt Foster: your patch didn't work for me ?? in ff i didn't get the onTimeout event or if you get then it happend when the server is back online an the as often as it should happend while the offline time. i don't know why? i use an PeriodicalExecuter for my ajax request ... that's

[Proto-Scripty] Help! Unable to defer function to run when interpreter is idle

2009-07-15 Thread Paul Kim
Hi, I have been working to modify a fading slideshow image gallery script w/ controls, but I am having problems deferring a function to run when the interpreter is idle using Prototype's defer() method. Here is a snippet of my code and I want to defer the showSlide() function: var slideshow = {

[Proto-Scripty] readAttribute for event attributes (onclick etc) fails

2009-07-15 Thread Ilya Furman
Since different IE versions returns differently wrapped anonymous function while reading element onclick (for example) _getEv method should use regular expression to parse function body rather that string.slice(). I suggest following patch for this: diff --git a/src/dom.js b/src/dom.js index

[Proto-Scripty] Scriptaculous and jQuery

2009-07-15 Thread Bobbie
I am using Scriptaculous and jQuery in the same website (because I don't like jQuery's drag/drop code) and am having some issues. With the following code, my draggables and droppables will work, but my upload button will NOT work. Below is the code for the upload button and for the images, any

[Proto-Scripty] Re: prototype 1.6.1_rc2 causes nonsecure page warning message on SSL in IE 6

2009-07-15 Thread mrmanishs
I recently upgraded to 1.6.1_rc3 and am seeing this issue on my end. Can someone please let me know how to fix it? It's pretty bad for users to see this... Thanks. Manish On May 18, 5:02 pm, Rubens rubens.s.go...@gmail.com wrote: prototype.js (version 1.6.1_rc2) causesSSLnonsecure warning

[Proto-Scripty] transitions library

2009-07-15 Thread dudesouth
Hello everyone, Back in august of last year, Sam Stephenson said that he would release a Transitions library that he used in BackPack. Does anybody know if this happened and where I can find this transitions library? The original post is here:

[Proto-Scripty] Re: Scriptaculous and jQuery

2009-07-15 Thread T.J. Crowder
Hi, If you use jQuery's noConflict mode, the $() function is Prototype, not jQuery, but you're using $() in your upload code. Use jQuery() or the alias you created with the noConflict call -- J() -- instead. See jQuery's documentation of noConflict for details. HTH, -- T.J. Crowder tj /

[Proto-Scripty] Re: Help! Unable to defer function to run when interpreter is idle

2009-07-15 Thread Mike Glen
Paul Kim wrote: Basically, this is the error I get from firebug when I run slideshow.showSlide(i).defer(): slideshow.showSlide(i).defer() is undefined How can I defer the showSlide() function so that when users click on the buttons too quickly, it will wait for the interpreter to idle

[Proto-Scripty] Re: Stacked AJAX Calls Not Working

2009-07-15 Thread T.J. Crowder
Hi, Nothing for it but to walk through it with a debugger like Firebug (using Firefox); don't know if there's anything like that for Safari. Otherwise, frankly, we're just guessing without more context. For instance, in your parameters to the second request you're referencing the symbols (not

[Proto-Scripty] Re: Help! Is it possible to tell which element I invoked without the use of id attribute

2009-07-15 Thread T.J. Crowder
Hi, Since you already have a reference to the slidebtn element at the point you need it (it's this within the event handler), you can be a bit more efficient just using Element#down[1] directly: fourthitem = this.down('li', 3); [1] http://prototypejs.org/api/element/down FWIW, -- T.J.

[Proto-Scripty] Re: Help! Unable to defer function to run when interpreter is idle

2009-07-15 Thread Paul Kim
Hi Mike, I think you are most likely right because Firebug doesn't output any errors. However, defer() does not seem to be doing what I expected it to. When a user clicks the buttons very quickly, the fading images might either flicker or disappear. I didn't want to queue the fade/appear effects,

[Proto-Scripty] Re: Ajax response encoding type changing depending on windows (UTF-8) vs unix (ISO-8859-1)

2009-07-15 Thread Douglas
Prototype has _nothing_ to do with the response code. Your backend is sending the wrong encoding. Problably, you have not set the correct send headers. Are you using a PHP backend? If yes, maybe your local php.ini have default_charset set to utf-8 and the unix one has not, by default, php uses

[Proto-Scripty] Re: readAttribute for event attributes (onclick etc) fails

2009-07-15 Thread david
Hi, patch, bug, discussion about prototype core, in a world what is not about using prototype scriptaculous has its own google group. So this post will have much response in prototype-core google group: http://groups.google.com/group/prototype-core. Or with this patch, open a ticket to

[Proto-Scripty] Re: Ajax response encoding type changing depending on windows (UTF-8) vs unix (ISO-8859-1)

2009-07-15 Thread yuval dagan
hi I had a similar problem when I moved to apache2 on ubuntu from win 2000 server. try to add the line AddDefaultCharset Off to the site virtual directory thats because in the new linux apache2 versions, the conf file is seperate to many files and in one of them which its name is 'cahrset' if

[Proto-Scripty] Re: Ajax response encoding type changing depending on windows (UTF-8) vs unix (ISO-8859-1)

2009-07-15 Thread husky
That is a possibility! There is an Apache server sitting in front of the WebLogic server. Thank you for this, I think this should be the cause of the encoding problem (I hope anyway)! Best regards, -h On Jul 15, 2:25 pm, yuval dagan dag...@gmail.com wrote: hi I had a similar problem when

[Proto-Scripty] Re: readAttribute for event attributes (onclick etc) fails

2009-07-15 Thread Ilya Furman
Oh, I'm sorry, will repost there, thanks. --~--~-~--~~~---~--~~ 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] checked !status in line 1496? (prototype-1.6.1.RC3)

2009-07-15 Thread foolged
1494: success: function() { 1495: var status = this.getStatus(); 1496: return !status || (status = 200 status 300); 1497: } prototype-1.6.1.RC3 Why !status checked in line 1496? Because of this, an event onFailure not triggered when the status is 0.

[Proto-Scripty] Re: Help! Unable to defer function to run when interpreter is idle

2009-07-15 Thread T.J. Crowder
Hi, Mike was indeed right in terms of the Function#defer. All that defer does is execute the function later. It doesn't prevent it from being executed more than once. If you want to prevent the effect from being fired a second time, you'll have to check for that condition. There are any

[Proto-Scripty] Re: Slider doesn't work anymore?

2009-07-15 Thread T.J. Crowder
Hi, As I don't want the whole code to be visible to everyone, I tried splitting the HTML from the Javascript. That doesn't change anything, anyone who wants to see it can still see the JavaScript. They have to look a *little* harder, but it's trivial to look at the HTML, see the script tag

[Proto-Scripty] Re: Objects that return zero length

2009-07-15 Thread Matt Foster
Hmm, well you'd have to do a little extra filtering but no reason this isn't possible. assuming obj is your main structure you just posted do something like this... var edgeArr = $H(obj.nodes).keys().findAll(function(itr){ return ! (obj.nodes[itr].edges instanceof

[Proto-Scripty] Re: Objects that return zero length

2009-07-15 Thread Ron Newman
Guinness or Stout? On Wed, Jul 15, 2009 at 4:58 PM, Matt Foster mattfoste...@gmail.com wrote: Hmm, well you'd have to do a little extra filtering but no reason this isn't possible. assuming obj is your main structure you just posted do something like this... var edgeArr =

[Proto-Scripty] Re: Slider doesn't work anymore?

2009-07-15 Thread bambell...@hotmail.com
Thank you very much for the reply T.J. Crowder. I don't want to make it impossible to understand (obfuscate), as you said, it wouldn't be well spent time in my case. All I want is to remove the Javascript from the source page (right click - View Source) so comon people wouldn't see it. I also

[Proto-Scripty] Re: Slider doesn't work anymore?

2009-07-15 Thread bambell...@hotmail.com
I've made a quick search on Google and realised it's because the sliders are being created before the HTML elements are initialised (as script.js loads in the header). I used a setTimeout and it now works fine! Thanks anyways! --~--~-~--~~~---~--~~ You received