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]
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
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
@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
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 = {
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
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
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
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:
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 /
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
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
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.
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,
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
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
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
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
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
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.
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
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
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
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 =
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
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
26 matches
Mail list logo