We're having issues with the newly released Firefox 17.0.1. Weird syntax
error in places that don't make any sense (like line 642 of prototype.js):
return
this.stripTags().replace(/lt;/g,'').replace(/gt;/g,'').replace(/amp;/g,'');
I read
Hi,
I use Django framework to set up my webserver and try to use protype 1.7 .
When I call Ajax.Updater function to asynchronous reflash my page , I got
Forbidden 403 error: CSRF verification failed. Request aborted.
Anyone can help me on this?
Thanks
--
You received this message because you
I have a site with a considerable amount of work done and in IE 10...
the code is not working. Anyone experience issues with IE10?
The site is www.toddscycle.com and the section is Motorcycles if anyone
wants to see examples.
Any help would be greatly appreciated.
--
You received this
this.
Have a look here:
http://blogs.msdn.com/b/ie/archive/2009/06/17/compatibility-view-and-smart-defaults.aspx
Eric
On Dec 16, 11:47 am, Phil Petree phil.pet...@gmail.com wrote:
Unless you're getting paid by the hour, you loose nothing by temporarily
trying a later version of prototype. Try
the thing.
Eric
On Oct 1, 7:10 pm, Marty Amberg mar...@edenstreet.com wrote:
I agree, I own the book and it is helpful. My only complaint is that
the examples are using ajax calling javascript but I suppose that is
universal so good for everyone. A nice ebook to have as well as paper
ISBN-13 (pbk
Are you sure your returned json is encoded in UTF-8?
By using something like FireBug, you can see what is actually returned
from the server. This would be a priceless information to understand
your issue.
On Sep 2, 3:57 pm, nigeke...@googlemail.com
nigeke...@googlemail.com wrote:
When I
Hello Victor,
I already did. But I don't know the answer.
Thanks,
Eric J.
On Aug 29, 8:09 am, Victor vkhomyac...@gmail.com wrote:
Hi!
If you like to browse source code, then you can answer by yourself. Just
search for prototype_event_registry in sources.
--
You received this message
Hello,
The function Element.observe first lets _createResponder create a
responder. Then it calls
element.addEventListener(actualEventName,responder,false)
This seems enough. Why stores _createResponder the responder in
Element.Storage (behind a index connected with element)?
--
You
you can give an array
of class objects to your DOM init and invoke it.
Eric
On Aug 23, 10:04 am, Johan Arensman johanm...@gmail.com wrote:
Hey guys,
I'm redesigning a template set for different kind of websites. In the past
quite a lot of 'widgets' have been created in the form of prototype
(array_combine($fields,$line));
}
fclose($fh);
Eric
PS: You may want to add some error handling :o)
On Aug 20, 6:03 pm, Jason jwestbr...@gmail.com wrote:
I would use a small PHP script (assuming the first line is the field
names)
$fields = array();
$data = array();
$fh = fopen($filename);
$line
note that mobile browsers have special events like the ones on
http://www.quirksmode.org/mobile/tableTouch.html
Kangax had a very nice events testing page which seems to be offline
(http://yura.thinkweb2.com/isEventSupported/)
Eric
--
You received this message because you are subscribed
() {...},
onMyPrivateAppStatusUserDidSomethingWrong: function() {...},
onMyPrivateAppStatusMalformedJSON: function() {...}
});
Eric
On Jul 7, 2:27 pm, Walter Lee Davis wa...@wdstudio.com wrote:
On Jul 7, 2011, at 8:21 AM, T.J. Crowder wrote:
To my mind, HTTP response codes aren't for application logic
Element.purge() Yet another prototype 1.7 feature I was not aware
of :o)
Is there any way to export this online documentation into a convenient
PDF or anything I can print and turn into a book like the one for
prototype 1.6?
Eric
On Jun 16, 10:44 am, T.J. Crowder t...@crowdersoftware.com
Yes I mean that.
After googling, it seems that it is a know issue with chrome for
mobile to not show scrollbars when using overflow:auto...
On Jun 6, 4:09 pm, Walter Davis wa...@wdstudio.com wrote:
On Jun 6, 2011, at 9:26 AM, Eric wrote:
I did try it on Chrome on Windows with success
:
?php
$myCities = Array(Paris,Madrid,New-York,London);
header('Content-Type: application/json');
print json_encode($myCities);
?
Eric
On Jun 4, 11:15 am, Johan Arensman johanm...@gmail.com wrote:
You can use basic Json, but this is basic javascript, not specific for
prototype
{
cars
On Jun 1, 4:33 pm, Walter Davis wa...@wdstudio.com wrote:
On Jun 1, 2011, at 10:19 AM, Eric wrote:
On May 31, 5:51 pm, Walter Davis wa...@wdstudio.com wrote:
On May 31, 2011, at 11:12 AM, bill wrote:
I need the scroll of the div contents only.
You can back into that by using
() just return a
function,can not find any inheritance functionality
That may be because you're using prototype 1.4.
You may consider upgrading to 1.7.
Eric
Seehttp://api.prototypejs.org/language/Class/create/for more
information.
Greetings,
Johan
On Tue, May 31, 2011 at 3:26 PM
like this will:
f = function() {...}
Please let us know when you found what was wrong.
Eric
On May 31, 6:14 pm, Kristofer krishop...@gmail.com wrote:
On Tue, May 31, 2011 at 10:57:36AM -0500, Miguel Beltran R. wrote:
2011/5/29 Kristofer krishop...@gmail.com
Hello,
I am trying to figure
position relative to
top/left corner of your image.
More simple but I am not sure it is crossbrowser supported, events
*may* have clientX and clientY attributes which *may* contain what
you're looking at (if your event is attached to the img DOM object).
Eric
On May 29, 12:29 pm, bill
, but loading it before AppleAnimator.js in main.html does.
Hopefully that won't break much. ;)
Thanks,
-Eric
On Mar 25, 2011, at 1:21 AM, Eric wrote:
I'm using Dashcode 3.0.2 on OSX 10.6.6, and trying to write my
first dashboard widget using prototype.js 1.7.
I've got some things working
something as universal on mobile internet
than prototype.js on immobile internet :o)
Eric
On Feb 28, 9:26 am, Benedikt.Rothe benedikt.ro...@googlemail.com
wrote:
It has support for touch events -http://scripty2.com/demos/touch/
This is very interesting. I didn't know. Thank you.
But jqTouch
(and hide draggable item)
- drag X div
I did that using proprietary code, but it should be possible to do
that with scripty's draggables (and then to be able to use all nice
features like ghost).
If you successfully implement this, don't hesitate to share it ;o)
Eric
On Jan 16, 6:24 pm, Ben
exotic ways of fixing it, and
there isn't much I can think of.
Any hint/idea is welcome :o)
Eric
PS: Here is the code I use in case you don't want to go on jsbin:
var list = $('list');
var i;
for(i=1;i20;++i)
{
var elt = new Element('span').update('item '+i);
new Draggable(elt,{ghosting:true
. told
you (twice) prototype is designed to take care of it for you.
Eric
On 10 nov, 00:37, fashionpeople fashionpeople.busin...@gmail.com
wrote:
I tried use fixedEncodeURI like suggest in your links.
But doesn't work.
I didn't understand the problem.
On 9 Nov, 17:25, T.J. Crowder t
Reference explicitly says that
onCreate is only available to responders, as it wouldn't make a lot
of sense to individual requests .
Eric
--
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
you may disable the highlight effect of the InPlaceEditor, so the
cells you already clicked wont have different behavior than the ones
you haven't.
(I did at first try to implement the highlight effect on other td's
but with a big table, it is just very bad looking).
Eric
On Oct 28, 12:34 am
you
why (http://blog.niftysnippets.org/search/label/closures).
Eric
On Oct 22, 8:47 pm, JoJo tokyot...@gmail.com wrote:
Thanks T.J.
The solution is:
dynamicAnchor = new Element(
'a', {
href: 'javascript:void(0)'
}
).observe(
'click',
function(parameter
a gray background and dark gray text should do it)
Instead of enabling it again, you just set readOnly to false and
remove the custom class name.
HTH.
Eric
On Oct 20, 11:28 pm, JoJo tokyot...@gmail.com wrote:
I found out what was causing the issue. In my AJAX to add the comment
I had
Oooops,
After reading T.J's message (http://groups.google.com/group/prototype-
scriptaculous/t/38c587197bfb14e7), I noticed that what I called
readOnly attribute was in fact readOnly property.
Sorry for that, and thanks T.J. for teaching me this concept :o)
Eric
On Oct 21, 2:01 pm, Eric lefauv
of work to the browser (It would require some
tweaks, but I successfully used this technique with
Ajax.InPlaceEditor).
Eric
--
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-scriptacul
supported by
prototype.
If you try to use it already, you may need to put hands in the source
(once again, if you give more information about what you're trying to
do and what is actually happening, I am sure you will get some help
for solving your issue).
Best,
Eric
--
You received this message
On Aug 27, 5:43 am, Johan Arensman johanm...@gmail.com wrote:
I'm fully against marquee's in the first place but you also have an option
to add the attribute data-duration to your element. If you're making a class
to replace a depricated functionality you shouldn't use this way to add
features
am using the response body (responseJSON) and not the response
header.
- I noticed that my server uses Transfer-Encoding: chunked (in case
it may have an effect, since for shorter replies it uses gzip and
give a Content-Length) .
HTH
Eric
On Thu, Sep 2, 2010 at 9:27 AM, Dave Kibble davekib
://gist.github.com/548690
The gist includes an example usage HTML document. Although marquee is a
bad thing in most situations there are a few valid use cases. So for
people looking for something like this it is free for all to use however
they see fit.
Eric
--
You received this message because
to run on an intranet or an offline
computer, you may keep googleapi links.
It will optimise the browser's cache, and it is very likely that
google servers will serve your scripts faster than your hosting
company.
Eric
On Aug 16, 10:54 am, ColinFine colin.f...@pace.com wrote:
On Aug 13, 6:43 pm
for JavaScript,
CSS class names, and Java for app server integration.
Thank you, I'll try to have a look on it.
Eric
[1] Yes, this is on an intranet, so number of users is not very
impressive...
--
You received this message because you are subscribed to the Google Groups
Prototype
list their add-ons, a quick resume and a link could
help).
,
Eric
On Aug 11, 3:17 pm, Blaine blaine.simp...@admc.com wrote:
Thanks T.J. I've used Scripteka before... that's where I've found
most of the Prototype widgets that I use, but I didn't think it was
updated, due to half of the site
.
This means that if this limit is 2MB, you will not be able to send a
3MB file in your form, even if you fixed the POST limit size to
8MB[2].
Eric
[1] I said it would work. Not that it would be safe to do it :o)
[2] I lost a lot of time on this one first time I met this issue...
On Aug 11, 3:47 am
to use it if there is no other choice (safari users will
have a crappy experience, but it will work...).
Once again, try first to have a server side solution. It will work
better.
Eric
[1] Well, what you really should do is using observe :o)
[2] and like T.J. said, it will reduce user experience
Sorry for the late reply (Holidays :o) ) but why don't you just
disable the city field until the state field is filled?
On Jul 5, 9:19 pm, Jonathan Snelling jon.snell...@gmail.com wrote:
There should be a before or a conditional parameter you can pass. That
returns true to continue or false to
Eric
On Jul 13, 11:15 am, ColinFine colin.f...@pace.com wrote:
On Jul 12, 5:31 am, Hari hariharanwebm...@gmail.com wrote:
But even this doesn't help since function call happens by a call back
and not user action. So the browser popup blocker click in.
One way i could think is make the Ajax
call, Firebug sometime doesn't show anything.
For what it worth, did you try to put a breakpoint in Ajax.Request's
handler (the code that will actually call your callback)?
Eric
On Jul 28, 12:43 pm, Marcus Schwarz msspamf...@gmx.de wrote:
Hi there,
I'm using a login based on prototype's Ajax
camera to
your id badge until it beeps, and press a confirmation button) :o)
Eric
PS: Of course, don't remove the text input for peoples using an
iPad ;o)
On Jul 29, 1:41 pm, Richard Quadling rquadl...@gmail.com wrote:
Hi.
I'm developing a tiny little web page app which allows vehicle
inspectors
I think IE8 features a not that bad javascript debugger.
If you activate it and reload your page, it will stop on the faulty
line.
On Jul 30, 10:45 pm, KammylandSoftware kammyl...@gmail.com wrote:
Using the latest Prototype and Scriptaculous scripts hereto (July,
2010) I am getting this error
no matching element is found).
Any enlightenment on this topic is welcome :o)
Eric
--
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-scriptacul...@googlegroups.com.
To unsubscribe from
mouseup handlers to be called).
Eric
NB: Sorry I mismatched two languages: ihm is French accronym for
GUI (Graphic User Interface).
What I meant to say is that if you press any of your operating
system's button, the action will not be performed until you release
the mouse button.
On Jun 24, 6:47
Hi,
Have you consider using mouseup instead of mousedown?
This is indeed how standard ihm buttons works.
It doesn't explain or justify IE8's behavior, but if it works, you can
hit two birds with one stone.
Eric
On Jun 24, 1:55 am, max radin max.tomlin...@gmail.com wrote:
Hi-
I have a search
considered returning a custom HTTP status code and using either
onError or on5xx (where 5xx is the custom status code for my errors).
I am curious if someone tried this, to know if it was a good choice or
not.
Eric
On Jun 23, 4:24 am, joe t. thooke...@gmail.com wrote:
Oh thank god. i thought i
browser
by opening this page:
http://yura.thinkweb2.com/isEventSupported/
HTH,
Eric
Note: You may have to implement your own drag'n drop framework using
those messages since I have no idea if scriptaculous one support them
(probably not or you wouldn't have asked :o) ).
On May 30, 5:14 am, Shank
).
Good luck.
Eric
Thanks
M
--
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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous
(which would be equivalent to
false).
Eric
On Apr 12, 9:35 pm, Rüdiger Plantiko ruediger.plant...@astrotexte.ch
wrote:
Hi TJ,
I get the number 4711 in IE with $(test).innerText and in FF with $
(test).textContent - does Prototype provide a browser-independent
abstraction
On Apr 12, 7:04 pm, T.J. Crowder t...@crowdersoftware.com wrote:
Element.addMethods({
text: function(element) {
if (!(element = $(element))) return;
return element.innerHTML.stripTags();
}
});
wouldn't it be wiser to check for the native method once and use it?
element.innerText; }
: function(element) { if (!(element = $(element))) return;
return element.textContent; }
});
Eric
NB: I know, the testing condition is ugly... feel free to post a
better one :o)
--
You received this message because you are subscribed to the Google Groups
Prototype
) are a real added value and are not
available anywhere (afaik).
Of course, since the wiki is also about scriptaculous we may have to
find a clear way to not confuse users which just need prototype
information.
Eric
On Apr 9, 12:43 pm, T.J. Crowder t...@crowdersoftware.com wrote:
Hi,
I think
() {this.addClassName('tree'); },
createNode: function(...) {.../... }
});
You may have to play with Array.shift and Function.call if you want to
have extra parameters to your constructor (I've never needed it yet
but it should be possible).
Eric
Note: I've never tried to override a native method and I am
it doesn't load scripts in the
correct order (scriptaculous is loaded before prototype.js which screw
things up).
I hope this will be fixed soon.
Eric
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group, send email
Something like that should do it:
yourHash = $H();
You're affecting a new empty hash to your old hash, which should be
garbage collected by the browser.
Eric
On Mar 29, 8:47 pm, Walter Lee Davis wa...@wdstudio.com wrote:
So if you had a hash of N length and you wanted to end up with a hash
does oncomplete fire?
On Mar 10, 4:31 pm, JoJo tokyot...@gmail.com wrote:
I noticed that the onFailure callback never fires when there's
actually an error in Ajax.Request. Commonly, I just alert('server
busy') in the callback. I never see this alert when my web host is
overloaded and just
Surely has something to do with trying to toggle an item when it is
already in the middle if a toggle transition. You might be able to
bail out and start rendering the reverse of the current toggle
animation by usingone of the callbacks and starting your new render at
the complement of whatever
Just give the focus to something else.
Eric
On Feb 24, 11:02 pm, Jinsa jf.wesq...@gmail.com wrote:
Hi all!
Sorry for digging up such an old thread (see Disabling Scriptaculous
autocomplete at the bottom of my thread) but I'm working on the same
problem (more or less).
I have an input
before calling the effect.
Eric
On Mar 5, 9:44 am, T.J. Crowder t...@crowdersoftware.com wrote:
Hi,
You can use Effect.multiple[1] to apply the same effect to multiple
elements. So:
Effect.multiple($$('.fade-in'), Effect.Opacity, { from: 0, to: 1,
duration: 1.5 });
[1]http
Do you have any error/warning message in the Firefox console ?
If you're using Firebug's debuger, I've noticed that it sometimes just
stop code execution when reaching a line that will fail.
To see the error, you may go on script tab and click on Continue
execution (the VCR Play button like icon).
Didn't you mean :
this.frequency = frequency;
:o)
Thanks for the snippet!
Eric
On Feb 21, 8:14 am, Радослав Станков rstan...@gmail.com wrote:
There isn't PeriodicalExecuter#start method its
PeriodicalExecuter#registerCallback
You can do:
code
x.stop();
x.frequency = 1
see it working here: http://jsbin.com/afudi and play with the
code here: http://jsbin.com/afudi/edit
Eric
--
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-scriptacul...@googlegroups.com
(tr,{queue: 'end', afterFinish:
function() { tr.setStyle({'background-color': 'inherit'});}});
Can anyone tell me what I am doing wrong?
Eric
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group, send email
Thanks David,
It does work!
And do does tr.style.backgroundColor = '';
Why did I look for something complex when solution was so simple :o)
Thanks again!
Eric
On Dec 4, 1:08 pm, david david.brill...@gmail.com wrote:
Hi Eric,
do you try to reset the element style property for background
Well, since you're in Prototype, you can do this:
this.doSomething.bind(this).delay(1000, ...);
where the ... stand for other parameters of doSomething method (if
they are needed).
Eric
On Dec 3, 3:29 pm, Daan Mortier daanmort...@gmail.com wrote:
I'm sorry, I made some typos. This is correct
When you have a large piece of code to post, it is nice to also post a
link on
pastie.org or jsbin.com.
For example, I pasted the code you've posted on pastie here:
http://pastie.org/727583
Eric
On Dec 4, 8:09 am, fma f...@gbiloba.org wrote:
BTW, what is the tag to format code on this group
And next, because an array is much more flexible than variables. you
I am sorry David, but I don't agree with you on this :o)
An object variable is ways more flexible than an array. Especially if
you add some methods to its prototype to fit your needs.
And it is probably overkill in this case,
Hi,
I'd launch all Ajax.Request except the last one with a onSuccess
handler that:
- set a flag
- if all flags are set, launch the last Ajax.Request
This way, you don't have to use timer, or loop calling yourself
recursively.
Eric
NB: I didn't test it, but you may increment a counter instead
!= document)
{
var id = element.id;
// Do your stuffs here
}
}
Eric
On Nov 18, 1:47 pm, ColinFine colin.f...@pace.com wrote:
On Nov 17, 10:17 pm, phegaro pheg...@gmail.com wrote:
Delegation sounds like a good model for doing this although if i want
to pass parameters
to return something like:
Event.fire(parent.document,form:complete);
and to observe this event on your document, but it may not be that
simple to send event to/from iframe (I never tried).
Good luck,
Eric
On Nov 12, 1:37 pm, Stucture_Ulf maximilian.moulet...@gmail.com
wrote:
I'm using document
Hi Jacopo,
On Nov 12, 4:29 pm, jacoz jacopo.nu...@gmail.com wrote:
Hi Eric,
thanks for your suggests!
Well, now I answer all of your questions ;)
- I named Element.ajaxRequest() in that way because by default it
updates the element, but you can change the onSuccess function!
OK, but if you
is described here:
http://www.prototypejs.org/contribute
You may propose some of yours (I'd recommend proposing only the more
interesting methods) once you've validated that they don't break the
test cases.
HTH,
Eric
On Nov 10, 10:07 am, Jacopo Andrea Nuzzi jacopo.nu...@gmail.com
wrote:
Hi Tobie,
thanks
, mode: 'absolute',
duration:0.2});
For the tooltip script, I have no idea, but you may have a look at
http://scripteka.com/
Eric
On Oct 25, 5:17 pm, Peder Johnsen supp...@johnsendesign.no wrote:
Hi, is there anyway to speed up the move effect?
I am currently using it forwww.pixelgeddon.com
())
{
$posted = stripslashes($posted);
}
HTH,
Eric
On Oct 17, 8:12 pm, Alex McAuley webmas...@thecarmarketplace.com
wrote:
it sends a json object to the server which you remove the slashes and
decode -
example in php
$posted=str_replace(\\,\,$__POST['varaible_2'];
$json=json_decode($posted
it at the end to allows
chain calls :o)
You have a fully working example here: http://jsbin.com/itike3
Eric
NB: I've lost 20 minutes (sic) figuring why my disableAllLinks()
methods didn't work as expected before finding out that $$() DOESN'T
WORK on jsbin in edit mode (it works on save to public
Matt,
I like your way of doing it, but my concern is that the documented
toElement() method seems to be only half implemented.
A minor change to the $() function could make it work completely (see
it here: http://pastie.org/660553 ).
What do you guys think about this change?
Eric
On Oct 17
to use a custom class everywhere where a DOM
element is needed, and just add one line of code).
Eric
(*) This was the simplest way to explain the process, but you may
prefer dynamically create the DOM element on the first call of
toElement() for better efficiency.
On Sep 10, 10:56 am, T.J. Crowder t
, it is very important that you check your
generated file WILL BE CACHED (by default, most dynamic pages are NOT
cached).
That's all I can remember about this.
HTH
Eric
On Aug 14, 2:09 pm, Cyrus arianglan...@googlemail.com wrote:
I can't believe no one has tested his projects with a mobile / touch
them).
Simple workaround is to explicitly specify the value of the option,
like this: [['AB','AB'],['CD','CD']]
Thanks for any hint about the IE6 issue!
Eric
NB: Sorry if I don't reply straight away to your replies, but I am
trying to read all posts from this list in order, and I am a little
behind
that when you know what you're doing, it is not
that bad :o)
Don't anybody has a clue about my InPlaceEditor issue?
I would be very curious to know (at least) why using InPlace editing
on a TD element make it vanish...
Eric
--~--~-~--~~~---~--~~
You received this message
the whole table's cell...
I cannot think to something else to try...
If someone has an idea about how to make this work, I'd be glad to
read it!
Eric
Note: I use XHTML 1.0 Transitional doctype (see pastie link for the
complete source)
(*) I am aware it is bad to put divs in tables, but so far that's
Ooops, I forgot to tell that I am using Prototype 1.6.0.3 and Scripty
1.8.2 :o)
Eric
On Aug 14, 4:35 pm, Eric lefauv...@gmail.com wrote:
Hi,
I have a table with some editable cells.
The initial content of cells may be empty. I'd like the InPlaceEditor
(IPE) to start editing when user
part of code just after being
converted into a class instance :o(
And since it was overridden by the raw JSON object value, I stupidly
assumed that the casting didn't work.
At least, I now know what is the state of the art way of getting a
class instance through Ajax ;o)
Thanks again!
Eric
On Aug
)
if(myInstance.isB())...
= isB is undefined
What is the correct way of achieving this ?
Eric
--~--~-~--~~~---~--~~
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
?
Thanks for any hint,
Eric
--~--~-~--~~~---~--~~
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 from this group
if (parent) {
var subclass = function() { };
subclass.prototype = parent.prototype;
klass.prototype = new subclass;
parent.subclasses.push(klass);
}
How to understand these codes ?
--~--~-~--~~~---~--~~
You received this message
On 5月19日, 下午6时52分, Eric smcdl6...@gmail.com wrote:
if (parent) {
var subclass = function() { };
subclass.prototype = parent.prototype;
klass.prototype = new subclass;
parent.subclasses.push(klass);
}
How to understand these codes ?
If I was the author, I
I had understood it completely. I'm Chinese, sorry for my english.
Best Thank you.
On 5月19日, 下午7时28分, Tobie Langel tobie.lan...@gmail.com wrote:
Hi Eric,
If I was the author, I will new parent directly and assign it to
klass.prototype.
That would imply calling the initialize method
to read about all possible methods,
even if I am now (even more) confused about Javascript and hashes :o/
(I thought that native JS objects were great hashes, but I am
obviously wrong there...).
Eric
--~--~-~--~~~---~--~~
You received this message because you
was thinking to revert to vanilla DOM for performances issues but I
may revert to build some HTML string if it is that fast :o)
(Isn't it what scritaculous's Builder is doing internally?)
Eric
--~--~-~--~~~---~--~~
You received this message because you are subscribed
(but this could give some
interesting effects :o) ).
The interest here is to change a single variable and impact hundreds
(thousands?) of DOM objects in an eye blink.
Eric
NB: BTW, since classNames is a collection, you may not affect it this
way but instead use Element.addClassName
like to use the object form, which is working for other
style properties on the very same object.
(ex: $('mydiv').setStyle({'left':xpos+'px','top':ypos+'px'}); )
Am I missing something here?
Thanks for any hint.
Eric
--~--~-~--~~~---~--~~
You received this message
2009/2/3 Richard Quadling rquadl...@googlemail.com:
The attribute name should not be in quotes ...
Thanks for the reply Richard,
But I also tried without the quotes, which are optional (except for
'background-image' since in contains a dash).
Documentation says Element.setStyle should accept
Hi guys,
The following is my environment
Windows2000 English Professional
Prototype's version is 1.6.0.3,
IE6.0.2800.1106 test fail
Firefox2.0.0.20 test ok
The following is my code snippet
in window named 'A' :
SomeClass = Class.create();
in window named 'B' :
SomeClass =
in advance,
Eric
--~--~-~--~~~---~--~~
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 from this group, send
. Is
there something that I am missing, or would doing this require me to
extend Sortable's implementation myself?
Thanks,
Eric
By the way, in the course of implementing my drag-and-drop tree, I
found the tree-dump output of Sortable tree to be clumsy to use on the
server side, because
/api
Eric
On Jan 6, 8:52 am, Drakhul drak...@gmail.com wrote:
I am very new to Prototype and JavaScript, so this is prolly a no-
brainer for most of you.
Let me see if I can make sense...
On my page, there is a DIV where my ajax calls load pages. The main
page loads with a specific form
propagation in order to have key shortcuts working almost everywhere,
and observing the inputs where shortcuts are not supposed to be
enabled with a handler that stop propagation to the document.
Both solutions seems equally elegant to me, but I am not an expert :o)
Eric
On Mon, Dec 15, 2008 at 2
1 - 100 of 109 matches
Mail list logo