1] http://www.w3.org/TR/css3-selectors/#nth-child-pseudo
HTH,
--
T.J. Crowder
tj / crowder software / com
On Nov 21, 12:18 am, Jlopez <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to get the text from the first of every in the
> of my table.
> To make it trickier I
Hi,
> IE doesn't know document.body
It does, but it's not an extended element[1] by default, you have to
extend it via $()[2]. This should work:
$(document.body).insert(a);
[1] http://www.prototypejs.org/learn/extensions
[2] http://www.prototypejs.org/api/utility/dollar
HTH,
--
> first-child
Doh!!
-- T.J. ;-)
On Nov 21, 6:06 pm, Matt Foster <[EMAIL PROTECTED]> wrote:
> var textFromTD = $("search").select("tr td:first-child").pluck
> ("innerHTML");
>
> On Nov 21, 12:32 pm, Jay <[EMAIL PROTECTED]> wrote:
>
> > another idea, you might try selectors -
>
> > a) if you can
hing we're doing
on the group. We do hold first posts for moderation, but they don't
get rejected, just held -- like this post was. You never know, it may
start working now that you've had a post approved and are no longer
moderated.
FWIW,
--
T.J. Crowder
tj / crowder softwar
(Although the invoke version would
be a bit slower in this case, if there are a lot of these blockbody
things.)
[1] http://www.prototypejs.org/api/utility/dollar-dollar
HTH,
--
T.J. Crowder
tj / crowder software / com
On Nov 24, 11:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]&g
totype 1.6.0.3 directly from prototype's server.
>
> I'm afraid that I have to keep observing the "load" event unless the
> problem is solved or I understand what I'm doing wrong.
>
> Paolo
>
> On Nov 18, 8:48 am, "T.J. Crowder" <[EMAIL
Hi,
I assume you're not using the "insertion" option on your Ajax.Updater
calls[1]? If so, there's your answer. If not, can you put together a
small, self-contained example that demonstrates the prblem?
[1] http://www.prototypejs.org/api/ajax/updater
HTH,
--
T.J.
Hi,
Not immediately seeing a problem, can you create a complete page that
demonstrates what you're seeing?
--
T.J. Crowder
tj / crowder softare / com
On Nov 30, 8:07 pm, Stucture_Ulf <[EMAIL PROTECTED]>
wrote:
> thanks for your answer. here is a short code snippet i'm using.
t').invoke('hide');
$$('.reason').invoke('hide');
});
The problem must lie elsewhere. Can you create a small, self-
contained page that demonstrates the problem and poast it to Pastie?
Along the way you may figure out the problem, and if not, it'll g
tant help! 2. If not, it gives people
trying to help you out a small, simple example of the problem.
--
T.J. Crowder
tj / crowder software / com
On Dec 1, 5:51 am, Grant Newton <[EMAIL PROTECTED]> wrote:
> Thanks TJ
>
> An example of where I have it in use is:
>
> http://w
Hi Sunil,
Welcome!
There are some recommendations for getting up-to-speed with Prototype
quickly and fairly painlessly in the unofficial Prototype &
scripta.culo.us wiki's FAQ: "How Can I Learn About Prototype?"[1]
[1] http://proto-scripty.wikidot.com/faq#learn
HTH,
unching the second request.
[1] http://www.prototypejs.org/api/ajax/responders
But what I'm not getting is the merging: Ajax.Updater *updates*, it
doesn't merge, unless you specify an insertion.
--
T.J. Crowder
tj / crowder software / com
On Dec 1, 2:01 pm, Stucture_Ulf <[EMAIL PROTECTE
Hi,
Check out this article on the unofficial Prototype & script.aculo.us
wiki:
http://proto-scripty.wikidot.com/prototype:tip-scripting-dynamically-loaded-elements
HTH,
--
T.J. Crowder
tj / crowder software / com
On Dec 1, 7:31 pm, "Geoffroy Gomet" <[EMAIL PROTECTED]> w
for via Enumerable#invoke()[3] (Enumerable is
mixed into arrays), but just deleting the comma should be all you
need.
[3] http://www.prototypejs.org/api/enumerable/invoke
HTH,
--
T.J. Crowder
tj / crowder software / com
On Dec 1, 11:39 pm, Grant Newton <[EMAIL PROTECTED]> wrote:
> > 1. 90% of the
ugh that
could cause click frustration for your users, or you could have your
handlers check whether the DOM is loaded and add themselves to a queue
of functions that will get executed by a dom:loaded handler, etc.
FWIW,
--
T.J. Crowder
tj / crowder software / com
On Dec 2, 1:35 pm, Stucture_Ulf
Hi,
It works for me in Firefox (3.0.3, Windows). Any errors? Do you have
Firebug loaded?
--
T.J. Crowder
tj / crowder software / com
On Dec 4, 3:30 pm, blechler <[EMAIL PROTECTED]> wrote:
> Here is the HTML:
> --
> "http://
http://blog.niftysnippets.org/2008/04/you-must-remember-this.html
http://www.alistapart.com/articles/getoutbindingsituations
...and example for how to do it correctly on the unofficial Prototype
& script.aculo.us wiki:
http://proto-scripty.wikidot.com/prototype:how-to-hooking-events#BoundExample
it looks
quite a lot like spam. (I'm not saying it _is_, you understand.)
FWIW,
--
T.J. Crowder
tj / crowder software / com
On Dec 4, 11:12 pm, ameshkin <[EMAIL PROTECTED]> wrote:
> Does anyone know why I'm getting so many errors in IE7, but it works
> perfect in firefox?
>
&
through-arrays
But again, it's totally fine for looping through the properties on an
object, like your RS[0].
HTH,
--
T.J. Crowder
tj / crowder software / com
On Dec 5, 12:18 pm, George <[EMAIL PROTECTED]> wrote:
> Hi Folks,
>
> This may be more of a pure JavaScript question tha
wser might suppress alerts.
But again, once you've sorted out whatever the issue is with hooking
the events, you'll need to handle binding in your original code.
FWIW,
--
T.J. Crowder
tj / crowder software / com
On Dec 5, 2:00 pm, Kyrus <[EMAIL PROTECTED]> wrote:
> I've
Hi,
There are errors on the page in IE, have you looked into them? From
the one I looked at, the most likely culprit is this one from the
unofficial FAQ:
http://proto-scripty.wikidot.com/faq#propnotsupported
HTH,
--
T.J. Crowder
tj / crowder software / com
On Dec 7, 10:21 am, fps <[EM
// Show loading message
$(div).update(loading_msg);
// Request the tab
new Ajax.Updater(div, tab, { method: 'get' });
}
FWIW,
--
T.J. Crowder
tj / crowder software / com
On Dec 8, 4:18 am, theQco <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> This is my first
h and call my worker function for the
ones that are checked. The event handler (I just used the one, click,
but obviously you'll want to use whatever) calls the worker function
when the box is clicked. Since 'check1' is checked on load, we see a
message from setUpOption for it when th
, y: h};
...then you can use the properties directly (fb.offSet.x) the way you
tried to initially.
[1] http://www.prototypejs.org/api/hash/tojson
[2] http://www.prototypejs.org/api/hash/get
HTH,
--
T.J. Crowder
tj / crowder software / com
On Dec 8, 4:10 pm, "Techno~" <[EMAIL PROTECTED]&g
ents
http://proto-scripty.wikidot.com/prototype:tip-scripting-dynamically-loaded-elements
HTH,
--
T.J. Crowder
tj / crowder software / com
On Dec 10, 9:01 pm, Ian R <[EMAIL PROTECTED]> wrote:
> Hey all!
>
> So. This has come up several times since I've been using Prototype/
>
Hi,
Can you post a *minimalist* example demonstrating the problem to
Pastie?
http://pastie.org
--
T.J. Crowder
tj / crowder software / com
On Dec 12, 9:57 am, Rauan Maemirov wrote:
> Hi list. I'm trying to prevent Opera's image save dialog when clicking
> Ctrl + mouseclick.
parent) just in case.
This page may be useful to you (depressing, but useful):
http://unixpapa.com/js/mouse.html
HTH,
--
T.J. Crowder
tj / crowder software / com
On Dec 12, 1:52 pm, Rauan Maemirov wrote:
> http://pastie.org/337589
>
> I have specific task, so I need mouseup. But anyway
hildren of this node. If the newChild is already in the tree, it is
first removed."[1]
[1] http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-184E7107
HTH,
--
T.J. Crowder
tj / crowder software / com
On Dec 12, 3:00 pm, Cyrus wrote:
> Hi there,
>
> I have a weird problem
- e.g., doing so from inline script. The dom:loaded
event[1] provided by Prototype can help.
[1] http://prototypejs.org/api/document/observe
Here's a page that successfully sets a hidden form field on load
(using dom:loaded), and then queries it later when you click a button:
http://pastie.or
etc. If
the server or the browser or both only allow two simultaneous
connections between the same two endpoints (which is common in both
browsers and servers), the browser queues the requests and completes
them when it can.
HTH,
--
T.J. Crowder
tj / crowder software / com
On Dec 13, 9:33 am, 42d
this morning, apologies if I misread the question
or code and the above is off-base.)
HTH,
--
T.J. Crowder
tj / crowder software / com
On Dec 15, 5:07 am, George wrote:
> Hi Folks,
>
> I'm wondering if there is a way to get a function to wait until an
> external Ajax.Request h
rying to do, you can't -- the ID of an
element must be unique within the document.[1] Names can be non-
unique, but IDs must be unique. So if you have this markup for the
input box:
You can only append that to the document *once*, because IDs must be
unique.
[1] http://www.w3.org/TR/REC-html
/javax/servlet/ServletResponse.html#setContentType(java.lang.String)
Sorry if I'm being dense, I just got up. :-)
HTH,
--
T.J. Crowder
tj / crowder software / com
On Dec 31, 2:36 pm, Naganirangen wrote:
> Hi,
>
> I'm new user to use this prototype API.Below is my requirem
prototypejs.org/api/element/
[3] http://proto-scripty.wikidot.com/faq#learn
HTH,
--
T.J. Crowder
tj / crowder software / com
On Jan 2, 4:23 pm, "Joris wijlens" wrote:
> Matt,
>
> 2009/1/2 Matt Foster
>
>
>
> > Its because FF allows for native prototype extension a
function declaration. For anything of any
size, I recommend named functions instead.)
There are lots of examples of event handlers, with discussion, on the
unofficial Prototype & script.aculo.us wiki:
http://proto-scripty.wikidot.com. Look under "Prototype Tips".
HTH,
--
T.J. Crow
> Also any reference to a function inside of an observer needs to be in
> the form of an anonymous function, not a literal function itself.
Doesn't have to be anonymous. Named functions are fine:
function myMouseUpThingy() {
alert('Howdy');
}
// later
Event.observe(window, 'mouseup', myMo
> Nope. Google "single origin policy" for the reason why.
Or "same origin policy". Here's the top hit when you do:
http://en.wikipedia.org/wiki/Same_origin_policy
HTH,
--
T.J. Crowder
tj / crowder software / com
On Jan 3, 4:37 pm, Walter Lee Davis wrote:
> Nop
27;s happening and how to deal with it; the
second is a "how to" specific to Prototype (on the unofficial
Prototype & script.aculo.us wiki):
http://blog.niftysnippets.org/2008/04/you-must-remember-this.html
http://proto-scripty.wikidot.com/prototype:how-to-hooking-events#BoundExa
re is part of the DOM; the
Element constructor is a Prototype thing that simplifies creating an
element with a given tag name and setting attributes on it.
HTH,
--
T.J. Crowder
tj / crowder software / com
On Jan 7, 6:44 am, "ph...@ryangibbons.net"
wrote:
> Hey all,
>
>
should start to get an idea how this stuff
works. There are also some examples and discussion on the unofficial
Prototype & script.aculo.us wiki[2].
[1] http://www.prototypejs.org/api/ajax/options
[2] http://proto-scripty.wikidot.com
HTH,
--
T.J. Crowder
tj / crowder software / com
On Jan 7,
ate issues in the server-side processing;
put debugging checks on the server-side resource it's calling; the
usual sort of stuff. I suspect an issue with the server-side
resource.
But the client-side part looks okay, FWIW.
--
T.J. Crowder
tj / crowder software / com
On Jan 7, 6:59 pm, &qu
repeating "ClassName"
in that, at the expense of readability and maintainability IMHO.)
[1] http://www.prototypejs.org/api/utility/dollar-dollar
[2] http://www.w3.org/TR/css3-selectors/#attribute-substrings
[3] http://www.prototypejs.org/api/enumerable/invoke
[4] http://www.prototypejs.or
esponseJSON property of the transport parameter in the
onSuccess handler. As it happens, the article I linked above does
exactly that, so it should get you going.
[1] http://json.org
[2] http://en.wikipedia.org/wiki/JSON
HTH,
--
T.J. Crowder
tj / crowder software / com
On Jan 8, 4:08 am, Ram wrot
kes easier in a variety of ways); see
the linked discussion above for details.
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer (consulting services available)
On Jan 8, 5:36 am, Ram wrote:
> I have various select boxes for currencies on a page. These can be
>
Hi,
I'm guessing by "partial" you mean an HTML fragment? Then yes, you
can easily do that with Ajax.Updater[1].
[1] http://prototypejs.org/api/ajax/updater
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer (consulting services available)
On Jan 8, 11:46
ation as well. So your id might be
> 'row_5day_#' but it can't be '5day_#' without causing you pain later
> (somewhere).
>
> Walter
>
> On Jan 8, 2009, at 5:52 AM, T.J. Crowder wrote:
>
> >> checkbox is checked. I need to adapt it to wor
"" part were on a separate line -- because then
div.firstChild would be a text node consisting of that newline. Or go
back to using an ID on the tracking pixel, if you prefer.)
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On
Hi,
Can you show up your code calling findAll? It sounds like you're not
passing in a function as the first parameter.
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 9, 11:56 am, Othon Reyes wrote:
> hi everyone
>
a literal JavaScript string).
This article[5] on the unofficial Prototype & script.aculo.us wiki
about Ajax requests and JSON may also be useful; it talks about making
"bulletproof" requests and happens to use a JSON response as its
example.
[1] http://prototypejs.org/api/ajax/
erver-side code to the structure of your page.
FWIW,
-- T.J.
On Jan 11, 12:24 pm, "T.J. Crowder" wrote:
> Hi Nick,
>
> For updating just a single div, look at Ajax.Updater[1] rather than
> Ajax.Request -- there's nothing wrong with how you did it, it's just
> that
; it only matters if
there are hundreds of these 'hours' elements.
[1] http://prototypejs.org/api/element/select
[2] http://www.w3.org/TR/CSS2/selector.html#descendant-selectors
[3] http://www.w3.org/TR/CSS2/selector.html#child-selectors
[4] http://prototypejs.org/api/enumerable/invoke
HT
pera 9.10 for Windows: It
returns two elements as expected.
Have you tried it using a different classname than "class" for the
inner element? (I tend to think you just used that in your example,
having seen this in something else, but just in case...)
--
T.J. Crowder
tj / crowder
is to work correctly (under Safari at least). Lots of
good reasons to do it _anyway_, so...
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 13, 11:13 am, Timo wrote:
> I have a div with the id "loginWindow" inside t
]
[1] http://prototypejs.org/api/utility/dollar-dollar
[2] http://prototypejs.org/api/element/select
[3] http://prototypejs.org/api/element/update
[4] http://prototypejs.org/api/enumerable/each
[5] http://prototypejs.org/api/document/observe
[6] http://www.w3schools.com
[7] http://www.ecma-international.or
Hi Juriy,
That inline script could muddy the water in terms of DOM availability,
etc. Perhaps a minor mod:
http://www.w3.org/TR/html4/strict.dtd";>
http://ajax.googleapis.com/ajax/libs/prototype/
1.6.0.3/prototype.js" type="text/javascript">
document.observe('dom:l
;t
be able to extend it in this way. Perhaps someone who's done more
with script.aculo.us can point you to a convenient way to achieve the
result you're looking for.
FWIW,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 1
sible" and then find the appropriate error box (perhaps by
classname by using Element#select[2] on the tab's element).
Apologies if I've completely misunderstood and told you things you
already know. :-)
[1] http://prototypejs.org/api/document/observe
[2] http://prototypejs.org/api/el
Serious question, you know more
about this stuff than I do.)
-- T.J. ;-)
On Jan 13, 2:17 pm, kangax wrote:
> On Jan 13, 8:30 am, "T.J. Crowder" wrote:
>
> > Hi Juriy,
>
> > That inline script could muddy the water in terms of DOM availability,
> >
are
functions).
[1] http://wiki.github.com/madrobby/scriptaculous/sortable
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 13, 7:53 pm, Dan wrote:
> You are confusing constructors with class definition.Class.create() is
> fo
ade2, grade3, etc.?
If so, how are they differentiated from Nitin's grades in the next
row? IDs have to be unique.)
Anyway, hope this gets you going.
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 14, 1:00 am, RNHurt wrote:
to be dynamic,
> > basically, but for now I'm trying to test it using hardcoded
> > variables. The #editProducts div/tab definitely contains a div with a
> > class 'test' but it doesn't run the effect when I display it. Is my
> > syntax wrong?
>
> &g
ing
for my ignorance of the overall context) rather than rewriting it to
work from IDs instead.
Happy coding,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 14, 2:51 pm, RNHurt wrote:
> Again, brilliant help on everything guys!
&g
trigger showErrorDiv, and of course because of bubbling that same
click eventually got given to the document and removed the div right
away -- deferring it lets me not worry about that. (I could have just
stopped it in my click handler on my test button; either works.)
FWIW,
--
T.J. Crowder
t
lideDown);
...in the various examples with something more expicit:
.each(function(elm) {
Effect.SlideDown(elm);
});
...or something like that.
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 15, 3:19 pm, redheat wro
s is being done (inline or in an event), etc.
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 16, 8:33 am, Felcita Edwin
wrote:
> When i try to run a sample to understand how prototype.js works i see
> a problem with Fire Fox.
is not just "Ajax" requests. This applies to page
loads involving lots of images, style sheets, script files, etc.
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 16, 12:26 pm, cb wrote:
> Dear All,
>
> I am
imized around parsing HTML and
building up the necessary internal structures, whereas their DOM
access methods can be markedly slower. Depends on the browser and
version. And again, if the table is small, it doesn't matter.
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Sof
can create a **very small, self-contained, but complete**
example of a page with a form that does what it is you don't want it
to do, we can probably help you figure out how to prevent it...
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services av
mented on the Element API page[2], Form.Element methods on the
Form.Element API page[3] (all of the Element methods also apply).
[1] http://prototypejs.org/api/form/element/disable
[2] http://prototypejs.org/api/element
[3] http://prototypejs.org/api/form/element
HTH,
--
T.J. Crowder
tj / crowder sof
just has to interpret; but if
you think in terms of the browser being specifically designed and
optimised for doing exactly that (reading HTML, setting up its
internal data structures), it actually kind of makes sense. Hopefully
over time browsers will make their mapping of the DOM onto thei
> On my machine, the DOM version takes at least 10 times longer than the
> HTML version.
Sorry, forgot to say: On Firefox 3 and IE7, using Windows XP.
(Didn't matter whether Firebug was enabled or not.)
-- T.J. :-)
On Jan 19, 11:18 am, "T.J. Crowder" wrote:
> Hi Manfr
element with type=image) -- just in case in the fullness of time
you add some other kind of element that happens to have a type
attribute = image. Not _likely_; I'm just saying...
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On
Hi Walter,
Yeah, I was curious about that too. There's no problem with multiple
submits that I'm aware of, perfectly good reasons for doing that, and
using an event handler to simulate built-in behavior seems less than
ideal barring some strong reason for doing it...
--
T.J.
/
[3] http://prototypejs.org/api/class/create
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 21, 2:47 am, river wrote:
> Where can I download the package? It seemshttp://code.google.com/p/protosafe/
> is no longer accessi
Hi again,
More info here (if you'd already seen it, I've removed the dead link
to Protosafe):
http://proto-scripty.wikidot.com/prototype:tip-minimizing-download-times
-- T.J.
On Jan 21, 8:04 am, "T.J. Crowder" wrote:
> Hi,
>
> (A single thread is sufficient,
issues could be/become
substantive maintenance issues). I'm not saying any of it necessarily
means you shouldn't use jQuery if the other arguments in favor of it
are compelling for you -- and it does seem to me that there are some
compelling arguments. I'm just saying, you ask
oned... (And that said, all of the browsers mentioned
also returned the correct info for the .width and .height properties,
so maybe that _is_ a reliable means of getting it.)
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 21,
('Error: ' + ex);
}
});
// Done
return result;
}
* * * *
(The above assumes your request returns JSON.)
But again, if you can possibly avoid it...
[1] http://prototypejs.org/api/ajax/options
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting s
ipty.wikidot.com/faq#xyzprob
(BTW, if you're using 1.6, Event#observe no longer has the fourth
parameter.)
FWIW & HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 21, 9:14 pm, n8cshaw wrote:
> I am doing the following o
typejs.org/api/document/observe
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 21, 11:42 pm, theG wrote:
> When I hardcode a form into a div and try to get a handle on it via $
> ('') it works. When I include
ers. The thing has to exist
in the DOM before you can retrieve and access it. You have no
guarantee that any Ajax calls are going to have completed before
window.onload is fired. That's what the onSuccess callback[1] is for.
[1] http://prototypejs.org/api/ajax/options
HTH,
--
T.J. C
dd a var at the top for
'field'):
field = e.findElement(); // The 1.6 way of doing Event.element(e)
(function(){
field.focus();
}).defer();
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 22, 9:39 pm, &qu
g/api/form/serialize
[2] http://prototypejs.org/api/hash
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 23, 8:53 am, coruscant wrote:
> Hello All,
>
> I want to use Ajax.updater in one of my PHP scripts. I would like to
>
Hi,
You need to pass 'true' to serialize() to get a hash rather than a
string. See the Form#serialize docs referenced earlier for details.
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 23, 10:28 am, coruscant w
);
formhash.key1 = 'value1'; // Or formhash['key1'] = 'value1'; if you
like
formhash.key2 = 'value2';
formhash.key3 = 'value3';
When you're passing the object into the updater, just pass it
directly.
HTH,
--
T.J. Crowder
tj / crowder software /
answer back, but instead you make a function call and expect
to handle the result in callbacks.
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 23, 12:38 pm, "david.0pl...@gmail.com"
wrote:
> First of all I'm
I'm with Jonathan on this: The blocking (which in many browsers will
completely lock up the UI, making the browser completely
nonresponsive) makes for a bad user experience, and you can almost
always do it better using callbacks. Takes a bit more thought, but
it's worth it.
--
T.J.
for both fields in the two different
forms, without causing this ID confusion.
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 24, 9:55 am, silverweb wrote:
> I worked on user management scripts and everything was working l
ded event? onload event?
Other event?
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 24, 4:25 pm, Alex K wrote:
> Hi All, I've noticed that document.viewport.getDimensions returns
> weird numbers on Opera 9.63 on Ubuntu.
it passes the text on to Element#update, which
will execute the scripts if they're there).
FWIW, I'd probably just use an Ajax.Request and set the value of the
target text area directly from onSuccess.
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer,
imalist
example?
Separately: Couldn't the dimming/undimming be handled using a
CSS :hover class, rather than JavaScript?
FWIW,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 25, 12:58 pm, Geoffroy Gomet wrote:
> hello,
>
&g
nter and mouseleave are what
you want for the above, but browser support for them varies.
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan 25, 3:15 pm, Geoffroy Gomet wrote:
> Here is an example of what I wa
Hi,
Ajax requests are *asynchronous*; more in this recent thread:
http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/6b593cf7e6be236c/bf42fddc38f2d8c5
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan
Hi,
The documentation of Element#fire (here[1]) actually makes a point of
saying that it can't be used to fire native events.
[1] http://prototypejs.org/api/element/fire
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jan
Hi,
Prototype's Hash object doesn't have a filter method, according to the
docs.[1] The only filter method I can find in Prototype is an
Enumerable alias for findAll().
[1] http://prototypejs.org/api/hash
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer,
Hi,
It's subtle, but the links to the licenses that Prototype is released
under are in the footer of the front page of the website:
http://prototypejs.org
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Feb 1, 10:57 am, fuf
s for minifying Prototype here:
http://proto-scripty.wikidot.com/prototype:tip-minimizing-download-times
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Feb 3, 6:42 am, "magi...@gmail.com" wrote:
> I am also curious
Hi,
Sorry, forgot to say: I'm assuming that the commented-out loadPage
call near the top of loadPages isn't actually commented out?
Otherwise, it's unclear why anything is happening...
-- T.J.
On Feb 3, 9:45 am, "T.J. Crowder" wrote:
> Hi,
>
> > It'
n created, and in the complete callback, use the
counter maintained by Prototype (discussed on the responders page[1])
to decide whether to stop it. Or use your own counter within the
timer, whatever route you want to go. I think if you look into those
issues a bit, the answer's probably somewhere
g an array, not
a Hash, and so having it return a Hash would be breaking the contract.
[1] http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/535
[2] http://prototypejs.org/api/enumerable/findall
Sorry again to have missed the Enumerable thing in the first place.
--
T.J. Crowd
901 - 1000 of 1586 matches
Mail list logo