That's specified more clearly in the Es 3.1 draft, actually.
I was quoting the 3.1 draft from November (which had no substantive
changes from the 262 standard); do you have a link for a newer one?
And agreed, it would very weird indeed -- weird and, from an
engineering standpoint, JPW (Just
...I'd say it's
a tossup as to how often a bound function will/won't be passed
arguments
H. That would be worth checking. I almost never use bind() with
arguments other than the context; in fact, I don't recall the last
time I did.
--
T.J. Crowder
tj / crowder software / com
Hello,
I'm having a problem with getting my sliders a bit depending. They
should depend on a value in a text field.
I have 5 different sliders with a range from 0 to 100 and the text
field has the value of 300 which is the total amount that can be used
in these 5 sliders. This is my code:
Hi,
We are hitting the IE bug kb276228 9BUG: Internet Explorer Fails to
Set the innerHTML Property of the Select Object) with use of
prototype.js.
We were originally using prototype v1.5.0_rc1 and I updated to 1.6.0.3
and tested but made no difference. Could anyone advise if I could find
a
Hi,
...rebuild with the ajax updater so I figure I need to observe the second
select field again after it has been reloaded...
Right. And if you keep doing it that way, you'll want to stop
observing it before you update it (otherwise you're leaving an event
handler lying around and slowly
Hi,
I think you're going to need a bit more command of JavaScript before
you can take this on. Don't take that the wrong way, we're all new at
things periodically -- if we're smart enough to try new things!
I'd suggest spending a bit of time with a decent JavaScript book like
Flanagan's[1]. I
Hi Joe,
the problem is not the version of prototype, but an IE bug.
If you want to change the innerHTML of a select tag, you must modify
the way you do it for IE.
The solution given by Microsoft is at http://support.microsoft.com/kb/276228/
--
david
On 12 mar, 15:25, Joe joes...@gmail.com
Hi Cojones,
I think you will result in a Too meuch recursion error.
Why, because as the Doc says:
NOTE: when using setValue, the callback functions (below) are called.
the mentionned function (with below is onChange, ...).
That means that you will onChange calculate the new value, and change
You are correct David. This is definitely an IE bug and I would be
looking to apply the workaround mentioned in that page. But here the
problem occurs only when prototype is being called within the jsp
page. I verified this by removing prototype from the jsp page which
had the problem.
This jsp
Thx a lot. Doesn't work. Have this now:
var lang = all;
var liveStream;
Event.observe(window, 'load', function() {
livestart('all');
});
function livestart(lang,liveStream){
if(liveStream){
liveStream.stop();
liveStream = undefined;
It seems to me that by using 'var liveStream' inside this function you
are setting a new private variable rather than touching the existing
public one. So while you may call stop on the bare variable
liveStream, any further attempts to stop the actual running liveStream
will fail, because
Hi,
I have a simple page that fire an event but it doesn't work.. No
errors on page.
htmlhead
titleJavascript Events/title
script src=js/prototype.js/script
script
function firePrototypeEvent(element,event){
element.fire(event);
}
/script
input id=example5 value=example 5 size=15
hm, ok. But how can I change a runnig PUpdaters options?
Is there a better way?
btw: http://osdir.com/ml/lang.ruby.rails.spinoffs/2006-07/msg00269.html
I don't understand the article, but maybe...
--~--~-~--~~~---~--~~
You received this message because you are
That's a pretty old article and bug, from over a year and a major
version ago. As far as I know, you can't change a PU mid-stream, and I
also fight with it from time to time to try to get it to live-update
any variables, but that seems to run counter to how it works.
What you can do is
Hey,
input onclick=firePrototypeEvent(document.getElementById
('example5'),'event_2'); value=fire event_2 type=buttonbr
You can only fire custom event that is namespaced, that is: contains a
prefix and : sing. Eg. 'myEvents:event_2'. You also need to specify
the prefix when observing.
Are you sure you've tried this running 1.6.0.3 ?
I remember fixing that issue a long time ago (for 1.5.1 maybe). Note
that it's clearly fixed in trunk[1].
Best,
Tobie
[1]
http://github.com/sstephenson/prototype/blob/8f697f3e85aff85d121868261588dae6551821b1/src/dom/dom.js#L217
On Mar 13,
Hello, I have a problem with prototype just in the line 1372
if((readyState 2 !Prototype.Browser.IE) || readyState == 4) {
this.status = this.getStatus();
this.statusText = this.getStatusText();
this.responseText = String.interpret(transport.responseText);//
THIS
Hey
Here is a very nice tutorial on Sortable Lists:
http://zenofshen.com/posts/ajax-sortable-lists-tutorial
However; when trying this myself I always end up with a list that
works half way. The list loads and I can move an item, but that is it.
I can not move any other items unless I reload the
On Mar 13, 12:12 am, T.J. Crowder t...@crowdersoftware.com wrote:
...I'd say it's
a tossup as to how often a bound function will/won't be passed
arguments
H. That would be worth checking. I almost never use bind() with
arguments other than the context; in fact, I don't recall
It's this latter case where having the args array cached provides
significant performance benefit, which I would argue is worth doing,
even if it slightly lessens the performance of someFunc() with no
arguments. That's the tradeoff we're talking about.
I don't think that tradeoff is
On Mar 13, 8:08 am, T.J. Crowder t...@crowdersoftware.com wrote:
I was quoting the 3.1 draft from November (which had no substantive
changes from the 262 standard); do you have a link for a newer one?
T.J.: You'll find the drafts here:
Dear Walter ,
I am also facing the same problem. Ajax Periodical updater stop()
function is not working properly.but it is very
incosistent..certain number of times it works fine..but most of the
times it does not work.,...
could u please explain
liveStream = undefined;
???
about the
22 matches
Mail list logo