You can filter out the bogus values of the original or create a new
object and only set the valid values.
var data = $H(form.serialize(true));
var transportData = $H();
data.each(function(pair, itr) {
if(pair[1] != "")
transportData.set(pair[0], pair[1]);
});
--
http://positionabsolute.
yeah, try $("myContainer").scrollTop
On Nov 7, 5:10 pm, Shane McCarron wrote:
> I have an element that has overflow:auto. The contents of the element are
> updated from time to time via ajax calls. I want to ensure that when this
> happens, if the user has scrolled down into the content, thei
"Thanks for that but like most things in the prototype documentation,
it
lacks the type of clarity that I can understand. "
Nice way to get help... "Your docs suck so just spoon feed me the
answer"
The answer to your initial approach is an issue with basic javascript
string behavior and was naile
just store the reference to the listener and re-attach it to the
element after the user has successfully purchased more comment tokens
or whatnot.
var myListener = function(){};
$("button").stopObserving();
//.. user buys tokens...
$("button").observe('click', myListener);
--
http://positiona
I did something similar in that I just patched Ajax.Request with some
extra functionality to allow timeouts, I never fussed with it further
than fundamental tests but it certainly worked. Take a peak and maybe
you can learn how to write something to meet your own needs
http://positionabsolute.net
You can just add parameters to the bind call and they will show up in
execution.
$(id).observe('mousedown', this.myFunction.bind(this, otherParam);
Then I believe it shows up after the event.
function myFunction(event, param){...
but in your case, simply binding to "this" will allow you to refe
tag = tag || node.tagName.toLowerCase();
> >>> if (node.tagName.toLowerCase() === tag)
> >>> results.push(node)
> >>> else
> >>>
This is probably too obvious to be right but if you're simply looking
for all of the paragraph tags at that level could you simply go up to
the parent and select down from there?
On Feb 22, 12:57 pm, Paul Kim wrote:
> Hi Alex, thanks for the tip. I've modified the function based on your tip
>
Feel free to post questions or comments here as I disabled them on the
actual article.
I think this is a valuable plugin for Prototype, it certainly isn't a
common use case but there are instances where data gets too big to
handle in one shot.
On Jan 11, 9:51 am, Matt Foster wrote:
Hey Everyone,
I've completed work on a new Prototype plugin to handle massive
datasets elegantly and avoid the dreaded Stop Script dialog. It uses
a chunking algorithm to split up the dataset into small pieces, and
then loop over those using chained setTimeout executions to allow a
break i
You could use a closure to ensure you're dealing with the right
element.
$$('.my_table td').each(function(cell){
cell.observe('mouseover', listener.curry(cell));
});
function listener(cell, evt){
if(evt.element() != cell)
return false;
}
Are you trying to have a clean w
I'd just put it in a variable.
parameters : '?method=saveData&data='+data.toJSON();
--
http://positionabsolute.net
On Dec 17, 6:48 pm, "T.J. Crowder" wrote:
> Hi,
>
> Ajax.Updater (and the rest) don't claim to post object graphs to the
> server, and in fact they don't. They only pass name-val
Ext.js has a ton of UI stuff prebaked
http://extjs.com
--
http://positionabsolute.net
On Dec 18, 4:40 am, Frédéric wrote:
> Hi,
>
> I'm wondering: does it exist a complete graphical toolkit in javascript?
> Something like Qt or Gtk, which allows to build complex GUI?
>
> I found several nice l
I'd recommend taking a look at my Ajax Service Queue approach, such
that all requests go through the service object, and in the subclass
for the queue's case won't send the next request until its predecessor
has returned. It needs to be updated for 1.6 but the idea is on the
wall for you to look a
> > I'd like to use enumeration functions to select from a sorted list
> > where I know that if the select function has passed and then starts
> > failing (returns false)
This isn't a prime situation for Enumerable but certainly nothing it
can't handle.
> Never mind - I just discovered $break in
ow.onload = function()...
By executing your code in those methods, you can be sure that DOM
elements are loaded and ready for manipulation via Javascript.
--
http://positionabsolute.net
On Nov 5, 3:22 pm, Matt Foster wrote:
> Hey Kiran,
>
> Function.defer is simply delegati
Hey Kiran,
Function.defer is simply delegating the functions execution to
Function.delay which in the end delegates it to a wrapper of
window.setTimeout.
By using defer it enforces the timeout to be a value of 0.01 which is
just enough to hiccup the browser's procedural processing.
If your appl
You could use a fisheye...
http://positionabsolute.net/blog/2007/08/prototype-fisheye.php
On Nov 3, 12:55 pm, "ph...@ryangibbons.net"
wrote:
> Richard,
>
> Thanks for the response. Question though, I am not quit sure what you
> mean. I would like the image the enlarge upon mouse over and g
ing wrote:
> 2009/11/3 Matt Foster :
>
>
>
>
>
> > Hey Everyone,
>
> > I've put the finishing touches on a JS based gadget to handle
> > site translation. It uses Prototype for class structure and element
> > collection etc and the Google T
Hey Everyone,
I've put the finishing touches on a JS based gadget to handle
site translation. It uses Prototype for class structure and element
collection etc and the Google Translate API to handle the actual text
translations. It handles all of the requests async style and never
reload
This one was a SOB and as always, IE is at fault...
Here is what I found on researching this...
now this is for IE only of course..
var cell = new Element("td");
This is all well and good w/o any attributes, the Element constructor
delegates the attributes object, the second parameter to
Elemen
What is ES5?
On Oct 23, 1:31 pm, Tobie Langel wrote:
> We removed it because it conflicted with an identically named method
> specified in ES5.
>
> If you really need to use it, I strongly sugest you find another name
> for it.
>
> Best,
>
> Tobie
--~--~-~--~~~---~-
n could make it work completely (see
> it here:http://pastie.org/660553).
>
> What do you guys think about this change?
>
> Eric
>
> On Oct 17, 12:11 am, Matt Foster wrote:
>
> > Quick and dirty, im sure there are errors but conceptually this would
> >
rguments))); };
}
});
--
http://positionabsolute.net
On Oct 16, 3:01 pm, Matt Foster wrote:
> The "has a" relationship is the only way to go for sure.
>
> You could create an ElementProxy class that inherits all the Element
> methods but just keeps a reference to the actual DOM refe
The "has a" relationship is the only way to go for sure.
You could create an ElementProxy class that inherits all the Element
methods but just keeps a reference to the actual DOM reference
internally. All of the Element.Methods are parameterized so I'm sure
there'd be an easy way to delegate the
gt; Yogesh
> Yogesh Agashe wrote:Thanks for pointing out this error Matt. I should have
> noticed this.
> But even after defining the function earlier, form submit doesn't work :(
> Sorry.
> Sincerely,
> Yogesh
> Matt Foster wrote:You've defined your function after you refere
Oct 12, 3:04 pm, "Alex McAuley"
wrote:
> Hence the note on it "This might not work as its divs."
>
> Alex Mcauley
>
> http://www.thevacancymarket.com
>
> - Original Message -
> From: "Matt Foster"
> To: "Prototype &
$('class_id').value=li.id;
> document.forms['searchcustomerform'].submit(); } Thanks,
> Yogesh
> Matt Foster
> wrote:http://wiki.github.com/madrobby/scriptaculous/ajax-autocompleterafterUpdateElement
> function... you receive an input obje
> var nextElements=$(element).descendants();// returns everythign that
This would return all children of the element, not siblings.
On Oct 10, 4:26 am, "Alex McAuley"
wrote:
> If you use "Event" with element you can find the element that was clicked
>
> $$('.blah').each(function(e) {
>
ee his point.
>
> Ctrl + mouse wheel scales the page not the text - it scales images,
> elements, text and everything
>
> LOL
>
> Alex Mcauleyhttp://www.thevacancymarket.com
>
> - Original Message -
> From: "Matt Foster"
> To: "Prototype &a
So just as a recap, you're looking to simulate the ctrl + mouse wheel
event such that the native processing for zoom magnification applies?
> This is a highly useful feature, I would love to add some "widgets"
> type icons (magnifier glasses with a + and -) on my site that allows
> people to resc
http://prototypejs.org
On Oct 6, 7:45 am, WLQ wrote:
> Sounds plausible, I would like to have more information on that
> please.
>
> On 5 Okt., 08:14, "Alex McAuley"
> wrote:
>
> > Why not give your list a class name thats specific to the list and select
> > with $$
> > Alex Mcauleyhttp://www.t
http://wiki.github.com/madrobby/scriptaculous/ajax-autocompleter
afterUpdateElement function...
you receive an input object and some element that was representing the
field. At this point you could execute form.submit..
--
http://positionabsolute.net
On Oct 7, 11:19 am, Yogesh wrote:
> He
; would be picked up by garbage collection. is this not true?
>
> So, what you're saying, to answer my question, is that I don't have to worry
> about using Event#stopObserving?
>
> On Tue, Oct 6, 2009 at 10:22 AM, Matt Foster wrote:
>
> > The removed element?
>
The removed element?
Just because an element has been detached from the visible DOM doesn't
mean that the reference can be maintained elsewhere. It would be no
edge case to detach and re-attach a particular element, so to think
that an element should be trashed just because it has no parent node
; this.end;
> return value <= this.end;
> }
>
> So if you create a NumberRange of even numbers from 2 to 6 and ask it
> if 3 is included, unless you override that behavior in your
> NumberRange class, `include` will return true.
>
> -- T.J.
>
> On Sep 28, 9:20
better things to do than
> > write some amazing class to achieve what can be done in 30 seconds -
> > evidently you do not so good luck with that.
>
> > Alex Mcauleyhttp://www.thevacancymarket.com
>
> > - Original Message -
> > From: "Matt Foster"
u wanted every 5th number ...
>
> Better to go with my/TJ's loop
>
> Alex Mcauleyhttp://www.thevacancymarket.com
>
> - Original Message -
> From: "Matt Foster"
> To: "Prototype & script.aculo.us"
> Sent: Friday, September 25, 2009 5:5
I'd just use an 'iterator' class to do this...
var EvenNumber = Class.create(
{
initialize : function(num){
this.num = (num % 2 == 1) ? num - 1 : num;
},
succ : function(){
return new EvenNumbe
I'm going to give the disclaimer that i can't make much sense out of
the example you've posted. You're referencing 'comment-form' and
'comment_parent_id' which are nowhere to be found in the actual HTML.
The facts that I am going to assume are...
A) That you're inserting a form element inside of
>
> --
> mona
>
> On Mon, Sep 21, 2009 at 7:00 PM, Matt Foster wrote:
>
> > Hey Everyone,
>
> > I've finished a project that handles the problems of browser history
> > when implementing ajax solutions. It's built to integrate with
> > prot
Hey Everyone,
I've finished a project that handles the problems of browser history
when implementing ajax solutions. It's built to integrate with
prototype perfectly and borrows a lot of the same concepts. The idea
is an event driven system where all XHRs go through a single 'service'
object
Rick, that sounds like you delay the entire page load, or i should say
the display of the page until the DOM has loaded?
What I believe Zion is requesting is show the entire page as fast as
possible, for what can be rendered quickly. Then as a seperate
request begin loading these massive images
I agree with Jim,
If I remove an element from the DOM for whatever reason, perhaps its a
control widget that only gets inserted for inline editing or
something. I don't want to re-apply listeners and proprietary data
each time I reinsert the control back into the document.
And this leads to ano
> > Ajax.Updater('menu',
try "new Ajax.Updater..."
--
http://positionabsolute.net
On Sep 3, 4:39 pm, Bob wrote:
> Sorry pulled this from a template /%libr%/ will actually get filled in
> with the correct path to that program on the server
>
> > Ajax.Updater('menu',
> >
var eventName = pair.key, responders =
> pair.value;
> responders.each( function(r) {
> Element.observe(dstdecend[i],
> eventName, r.handler);
> });
> });
>
Good luck with this, let us know if it works out.
Quick glance at your code I can see an obvious error...
> var newElement = element.clone(true); //clone the node
Element doesn't have a clone method. The native DOM element does have
a cloneNode method though.
--
http://positionabso
The down arrow. Perhaps the preceding key up, key left and key right
options could have given you a clue...
On Aug 25, 8:07 am, Ooypunk wrote:
> OK, then I'll go with that. Thanks!
>
> Only thing left for me to complain is that I still don't know what
> names like KEY_DOWN are for, or how th
http://prototypejs.org/api/function/delay
var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
var delayConstant = 1;
arr.each(function(value, index){
(function(val){
$("myInput").value = val;
}).delay(delayConstant * index, val
> I am trying to code an OS X-style menu bar with prototype
Are you talking about the dock?
http://positionabsolute.net/blog/2007/08/prototype-fisheye.php
On Jul 13, 4:05 pm, Mario Colombo wrote:
> Hi everybody,
>
> I am trying to code an OS X-style menu bar with prototype and
> scriptaculous
You could just have the server return code that instantiates the
object to begin with. You aren't limited to JSON its just convienent
because the structure is simple and there are plenty of processors
that understand it. But you can evaluate any JS code just as is.
--
http://positionabsolute.
var keys = $H(obj).keys();
http://prototypejs.org/api/hash/keys
--
http://positionabsolute.net
On Aug 10, 10:46 am, "Alex McAuley"
wrote:
> You can prolly sort the order if you wanted it in some kind of order but its
> not needed in my opinion!
>
> Alex Mcauleyhttp://www.thevacancymarket.com
I've never actually used this component but in researching the docs,
could you use the callback for afterUpdateElement and then
programatically execute the form's submit method?
http://wiki.github.com/madrobby/scriptaculous/ajax-autocompleter
--
http://positionabsolute.net
On Aug 7, 10:11 am,
Depending on when you wanted to pass the additional argument you could
just attach it to the argument chain on bind
this.changeContent = this.changeContent.bindAsEventListener(this,
extraArgument);
Since we're already looking at that line of code, be careful,
reassigning the function to a bound
In an effort to keep the code clean I'd delegate this functionality to
a dedicated method other than the constructor.
On Aug 4, 2:16 pm, Matt Foster wrote:
> If you really wanted to avoid bind you could just use closures within
> the initialize method
>
> var Sub4 = Cl
Class:"+self.fu+self.baz);
};
document.observe("click",f);
}
});
On Aug 4, 3:35 am, Cédric wrote:
> On 3 août, 22:38, Matt Foster wrote:
>
> > Regardless of the JS framework. A closure is necessary for attaching
> > cla
Regardless of the JS framework. A closure is necessary for attaching
class methods to a particular instance and preserve the instance
reference via the "this" keyword.
http://www.javascriptkit.com/javatutors/closures.shtml
I thought Function.bind was pretty clean myself, but I guess you've
got
totype & script.aculo.us"
> > Sent: Wednesday, July 29, 2009 10:22 PM
> > Subject: [Proto-Scripty] Re: Masked Input in Prototype
>
> > something like this:http://digitalbush.com/projects/masked-input-plugin
>
> > On 24 jul, 06:48, Richard Quadling wrote:
>
You must further define your idea of "masked input"
http://www.google.com/search?q=define%3A+masked+input&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
On Jul 23, 3:58 pm, Celso wrote:
> Anyone know a masked input in prototype?
>
> Thanks,
> Celso.
--~--~-~--~--
Hey Diego,
I'd suggest learning CSS, in particular CSS Selectors. Second
read up on prototype, you were a dollar sign away from almost having
it.
In your case, the name is too inconsistent, you could have almost
gotten away with $$("input[name~=opt") but alas there is no space
after it so
I think one of the easiest ways to handle tooltips is just let the
native browser deal with it, using the title attribute with imgs and
anchor elements will pop a 100 word tip on what the action will take.
So just create the tool with a title attribute and then you're good to
go.
---
http://posi
That is nice, you should submit it to http://scipteka.com
--
http://positionabsolute.net
On Jul 17, 4:14 am, "Alex McAuley"
wrote:
> Nice data grid! ... what about inline editing of the cells ? .. i cant get
> it to work on firefox in your demo
>
> - Original Message -
> From: "nirbha
Guiness is one of my favorites, mix it together with Newcastle for a
delicious blend, The Black Castle!
On Jul 15, 6:24 pm, Ron Newman wrote:
> Guinness or Stout?
>
>
>
> On Wed, Jul 15, 2009 at 4:58 PM, Matt Foster wrote:
>
> > Hmm, well you'd have to do a
> I have tried the second approach which works fine. Is it possible to
> get the added variable at the top of the email?
Top of the email? This is probably how your cgi script is rendering
the post variables, but you could rearrange the parameters by just
doing...
params = "code_given="+escape(c
t;,
> "height": "0.50",
> "width": "1.11",
> "fontsize": "10.00",
> "fontcolor": "white",
> "pos": [
> 326,
> 167
> ],
> "
> @Matt Foster: your patch didn't work for me ??
Yes you've said this now 3 times... Unfortunately for you, the patched
Ajax.Request along with my implementation works fine in both browsers,
so somewhere along the line you've misconfigured things.
Looking at the code
Yeah I discuss the idea of having its own event for timing out in my
article. The argument is a timeout is a failure, its failed to
retrieve a response in the given time. So a timeout is basically like
an inherited event from onFailure. Question remains do you seperate
the event or just add a f
;t help.
>
> As before, I'm not getting why anything whatsoever that's in an array
> shouldn't automatically return length > 0.
>
> On Jul 14, 1:47 pm, Matt Foster wrote:
>
> > > $A(attr.edges).each(function(edge) {
> > > this.edge
> $A(attr.edges).each(function(edge) {
> this.edge.set(id, new GraphEdge(cv, id, edge));
>}, this);
edge is your variable, why bother trying to set function ownership?
The function is sent the parameter it needs to act upon. Just remove
"this" from your "this.edge..." line and you shou
> must have bin offline :'(
>
> i think the zero comes from that part:
> --- line: 1499--
> getStatus: function() {
> try {
> return this.transport.status || 0;
> } catch (e) { return 0 }
> }
> --
ass object, so there is no
> inheritance ...
> // simply mix in all the arguments as methods:
> var Person = Class.create(Vulnerable, {
> initialize: function() {
> this.health = 100;
> this.dead = false;
> }
>
> });
>
> var bruce = new Person;
> bruce.wound(55);
The second argument is accepting attributes of the HTML element. It
isn't just assigning values to the object like Object.extend style.
I'd recommend using Element.addMethods, and scope it to only canvas
elements, that way each time you create a canvas you'll have this
method available, but it w
update on that, i didn't highlight it in red but patched it all the
same.
Came to the same conclusion TJ did, just removed the preceding !
status...
success: function() {
var status = this.getStatus();
return (status >= 200 && status < 300);
},
On Jul 13, 11:25 am, "T.J. Crowder" wr
Hey Rick,
I wrote the positionabsolute article on this topic. I double
checked the code. I had patched the success method as well in my
scenario(look for red syntax in the code block), but it does seem to
be working for me in both FF3 and IE7. If you'd like to collaborate
further on
Besides the $ function and using for(var in ) for iteration over an
array. I can't think of other conflicts prototype would cause with
existing code.
--
http://positionabsolute.net
On Jul 10, 2:41 pm, Josh Powell wrote:
> You cannot safely add Prototype to the target pages. Prototype
> cha
Pretty sure you can run
jQuery.noConflict()
and then make sure anything dependant on jQuery's version of $ will
now have to use the more verbose reference of "jQuery"
There still may be issues, but Prototype was designed to be powerful,
not play nice.
--
http://positionabsolute.net
On Jul
You could use many of the enumerable methods, this seems a bit verbose
but gets the job done.
Enumerable.find will iterate over the collection until the iteration
function returns a value of true. I could have used each, but
potentially would have iterated more than necessary, as we'd really
wan
function($super){
> $super();
> },
>
> foo : function(){
> this.fire('onFoo');
> }
>
> });
>
> is only a prototype for testing. Is it the right way or not?
>
> thanks,
>
> rgds sven
>
> On 29 Jun., 20:17,
I ran into this same issue and made a class to extend others from to
inherit this sort of functionality.
This is the article but the JS itself is a bit outdated
http://positionabsolute.net/blog/2007/06/event-dispatcher.php
To get the freshest JS...
http://positionabsolute.net/includes/javascript
When your event fires just get the scroll properties from the window,
Prototype has a convenient method just for this purpose.
http://prototypejs.org/api/document/viewport/getscrolloffsets
--
http://positionabsolute.net
On Jun 11, 9:30 am, Jeztah wrote:
> At the time of a function call is it
gain,
>
> > I've been running addslashes() on the input before running json_encode
> > () and it still creates problems when I pass it through AJAX - breaks
> > HTML tags etc. If I turn addslashes() off, any occurence of "" in the
> > body text (eg quotes fr
> Is there a way to initially load the page with the map open
> and then close it after a timed period? Better yet, is there some way
> to load it with it hidden but not chopped up?
Yeah, having it display:none or visibility:hidden can muck up the
calculations of the containers dimensions. I'd
> The iframe element doesn't support any events[1].
You can indeed listen to the load event directly from the IFrame
element.
http://pastie.org/493154
> The document that it contains may support various events (such as load,
> click, etc.).
Why would a document inside an iframe not support the
o the page context when its src changes.
> The underlying problem was how to keep an iframe sized to match its
> contents. While you get one onload event when the frame finishes
> loading, no others are ever fired, even when you navigate to a
> different page within the iframe.
>
What is surprising to me is that the "this" scope ever actually worked
inside the event handlers.
Had you left the handle alone I know that Proto would have bound the
element to the handler such that "this" would assume the value of the
element, but since you explicitly set "this" via bind in the
You could find a list of all events and listen to them each, there
isn't an "all" operator to listen to any event that is fired as far as
I know...
function allYourEventAreBelongToUs(e){
console.log("You hit an event %o", e);
}
$w("load unload click dblclick ...").each(function(evenType){
function.
>
> Matt. I tried swapping bind for curry and it gave an error.
>
> On May 14, 3:32 pm, Matt Foster wrote:
>
> > > var test = ['foo', 'bar', 'foob'];
> > > if (test.any(element.hasClassName.bind(element))) {
>
>
Be sure you're doing this operation after the document has loaded.
Attempting to access/modify DOM elements before the "load" event has
fired will certainly cause issues.
window.onload = function(){
var c =new Element('input', {'type':'text', 'id': 'var1Value' ,
'value':'var1 default value'})
> var test = ['foo', 'bar', 'foob'];
> if (test.any(element.hasClassName.bind(element))) {
I believe using the non-methodized version of this method would be
better
Element.hasClassName.curry(element);
--
http://positionabsolute.net
On May 14, 12:30 pm, "T.J. Crowder" wrote:
> Hi,
I think he's looking for a snippet handout, by the looks of the
spaghetti that he's pasted he's trying to highlight a single item in a
menu.
var activeElement = false;
$$("ul.menu li").invoke("observe", "click",
function(e){
var element = e.element();
if(activeElement)
Another good one is www.mindmeister.com, I doubt they've got an API
for you to work with but maybe you can get some ideas. Its built with
Proto/scripty, but they use a canvas object instead of SVG so it could
be a bonus for your IE requirement.
--
http://positionabsolute.net
On May 5, 11:21
In looking at your code, there were a few HTML mistakes.
First your "try me" element doesn't have a proper closing div tag its
just
it should be
--
http://positioanbsolute.net
On Apr 30, 10:55 pm, alpineedge3 wrote:
> thanks for the reply. i removed the quotes from the duration but it
> s
I'd set up each class or major structure, such as Element, Enumerable,
etc etc as its own file, then define packages such as minimal,
efficient, advanced, ajax...etc. Then in a server side script it will
bundle these files together depending on the package so you could make
a request something li
Just to have fun with it...
var val = $F("file");
if(val.lastIndexOf(" ") > val.lastIndexOf("/"))
On Apr 29, 2:52 pm, Walter Lee Davis wrote:
> Aha, but what about spaces in folders leading up to that filename? I
> don't mind those, since I only end up with the file, not the entire
> loc
Hey Brent,
Do you have a demo page that displays this issue? My only
thoughts are that the elements are getting reloaded in the DOM yet not
getting the events attached.
--
http://positionabsolute.net
On Apr 29, 2:59 pm, BrentNicholas wrote:
> Hi all,
>
> So I posted about this before
What are you sending to PHP's json_encode? It is expecting a
structure to serialize into a JSON syntax string.
$struct = array("message" => "Hello WorldWho says we can't
have any kind of \"quotes\" we want?");
echo json_encode($struct);
If you try to run json_encode on your already JSONified s
Anath's idea would be ideal but I am not sure how supported that event
actually is.
Alternatively, it'd be a bit more work but still would satisfy your
event requisite of just firing off you own event when you update.
var oldHTML = ele.innerHTML;
ele.update(text);
ele.fire("x:update", { oldHTM
class and super are reserved words that we actually never use, but
think of them as words like _if_ or _case_
Use className as the appropriate property for setting the HTML
attribute of class, a bit hoaky but that is just the way it is, with
or w/o prototype...
http://www.webreference.com/javasc
Ooo to be honest, that is quite ugly Amlan...
Having a ton of code written to an inline handler is just bad form, it
would be much better to just delegate to an event handler, and even
better yet, hook into this event via Event.observe...
$("category").observe("change", handleChange);
You'll h
Yeah I'd say thats a pretty good approach, if you've got 8 active
requests then the timeout duration of the 9th should be affected by
the number of currently active predecessors. I'd do something in the
onCreate method to just set the instance's timeout universally instead
of trying to micromanag
1 - 100 of 208 matches
Mail list logo