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 have
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...
I don't really understand the logic,
You have multiple forms on a particular state in your ajax
application. If the user takes action to change this state you want
to prompt them with the confirm window of Changes have been made, are
you sure you want to discard? If they click yes- i want to
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
.
Matt
On 19 Mar, 09:53, ColinFine colin.f...@pace.com wrote:
On Mar 18, 2:21 pm, Chris Sansom ch...@highway57.co.uk wrote: At 05:51
-0700 18/3/09, Matt wrote:
So, like, keep track of what options the user has selected and add
these to an array or something that I can then use to send
After reviewing the behavior of the control I'd say it reinforces the
idea that you should just set it up in a scrolling div and modify the
scroll property, this would approach would alleviate much of the
intense processing. You could leverage the Effect.Tween[1] method to
handle most of the
, Alex Mcauley webmas...@thecarmarketplace.com
wrote:
There is no exception or error thrown in firebug !!
I went round it with an inline call instead !
Thanks for help guys
Alex
- Original Message -
From: Matt Foster mattfoste...@gmail.com
To: Prototype script.aculo.us
I've got to add my two cents as well,
For addressing the issue of attaching parameters to the Ajax.Request
object, they're actually available in the callbacks. Each callback
gets sent an Ajax.Response instance which contains the request
property which in turn has the parameters property,
Were the injected stylesheets being loaded, did you check it with
firebug? Also with firebug you should inspect the control's elements
and see if they're inheriting these properties and or if any of them
are being overridden by another selector. IE and FF have major
differences with links/hrefs
in the right direction for these things?
Thanks
Matt
--~--~-~--~~~---~--~~
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
So, like, keep track of what options the user has selected and add
these to an array or something that I can then use to send a $_GET
request to my script? I guess that sounds workable... watch this
space!
On 18 Mar, 12:37, Chris Sansom ch...@highway57.co.uk wrote:
At 04:30 -0700 18/3/09, Matt
You should rely more on the Effect.Morph to handle the animations and
less on your own setTimeout calls, I think its compounding multiple
timeout calls and morph effects which run their own intervals to
manage the effect. Try getting the effect to run with one call to
Effect.Morph.
--
Event.stop(e) does indeed prevent event propagation. I would assume
that your code is hitting an exception before Event.stop is being
executed.
Try calling Event.stop() at the very beginning of the script, before
anything else, then if there are no errors, call event.form.submit()
to carry
Hmm maybe I am not understanding what you're interface is trying to
accomplish...
If you've got a strip of images that you want to scroll across based
on mouse movements, why don't you just wrap them in a div with an
overflow and modify the scrollLeft property of the div to modify the
display.
$(ifr).observe(beforeunload, Event.stop);
Give it a whirl, I have no idea if that will work;
---
http://positionabsolute.net
On Mar 18, 5:27 am, Vladimir Tkach tea...@gmail.com wrote:
try to use beforeunload event
2009/3/18 Karlson azagnio...@gmail.com
Hi,
I am trying to
, Matt Foster mattfoste...@gmail.com wrote:
$(ifr).observe(beforeunload, Event.stop);
Give it a whirl, I have no idea if that will work;
---
http://positionabsolute.net
On Mar 18, 5:27 am, Vladimir Tkach tea...@gmail.com wrote:
try to use beforeunload event
2009/3/18 Karlson azagnio
can find how to pad the left of a nmber to a certain number
of places, but can't seem to find anythig about keeping decimals out
to a set number of places.
Just a guess:
Convert to a string and then back to a number as needed?
--
Matt Zagrabelny - mzagr...@d.umn.edu - (218) 726 8844
This is completely theoretical, and probably even more ludicrous as I
think of it being plausible cross-browser...
But in theory if you did something like this
var A = function(){ alert(First definition);}
A();
var A = function(){ alert(Second definition); };
A();
Would behave as such, so
, 9:03 pm, mafoo mafoos...@gmail.com wrote:
Im siding with freshteapot here, you've probably got an infinate loop.
On Jan 20, 5:25 pm, Matt guitarroman...@gmail.com wrote:
Hmm... that file's a Google file so there's nothing I can do with it,
plus you'd expect it to be working... hmm. I
Is there any way of knowing which submit button was pressed from the
post passed by Form.request()? I'm just getting the first submit
button in the form, no matter which one I press.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
It appears as though without accepts its values in individual
parameters. Looking at the documentation it does illustrate that each
value is set in as its own parameter.
http://prototypejs.org/api/array/without
Looking into the source it becomes clear that it uses the function's
arguments as
Hi there,
I have a webpage demo up at http://tinyurl.com/plstage (tinyURL so
Google doesn't pick up the name...). We're using a lot of scripts:
PTScripty, lightbox, a validation plugin and a slideshow script. I've
tried removing these to test out why it would break the page in IE6,
but short of
That works fine TJ, thank you! I really appreciate the help.
Matt
On Jan 15, 5:17 pm, T.J. Crowder t...@crowdersoftware.com wrote:
Hi Edd,
Just to confuse issues slightly, wouldn’t it be better to use #map
instead of #each?
Why? He isn't using the return value, so no need to create
? I tried this and it didn't work:
document.observe(dom:loaded, function() {
$$('#editProducts div.test').each(Effect.Fade({ duration: 3.0, from:
0, to: 1 });
});
Thanks
Matt
On Jan 15, 1:38 pm, T.J. Crowder t...@crowdersoftware.com wrote:
Hi Matt,
Yes, *slightly*: Element#select
After some tests, I can see that my code above isn't selecting the
element properly - am I using select() wrong?
Thanks
Matt
On Jan 13, 3:10 pm, Matt guitarroman...@gmail.com wrote:
Hi TJ, thanks for the reply - that does sound about right for what I
want, congrats!
I tried this code
If you're traversing a collection of elements, then the first
parameter in your findAll method is going to be an element.
Bind is a property of a Function, not an Element, so that it would be
failing on this attempt of execution.
http://prototypejs.org/api/function/bind
--
You can pass it an element reference, however your reference of this
isn't an element. It may have assumed element methods via
Object.extend in your constructor but the reference is still to a
function, not a DOM reference.
--
http://positionabsolute.net
On Jan 8, 12:04 pm, Ian R
Hey Everyone,
I'm working on a project that swaps out text nodes. I need to
save a reference to the new text node with the existing node. In FF I
am able to set custom properties no problem, IE however throws an
error of Object does not support this property or method. I was
thinking I
Its because FF allows for native prototype extension and IE does not,
such that any referenced element won't have proto's element extension
methods until its been explicitly extended.
a href=# onclick=$(this).up('.bla').remove()Back/a
But to be honest I wouldn't use that style of event
Browser is opening save dialog and saveing the response into an .xls file.
So your scripts are writing to the clients machine?
Is the data being received over an XHR request?
It wouldn't be the most fluid progress bar, but if it was an XHR you
could increment a progress bar each time it moves
You could use a canvas element or SVG elements.
https://developer.mozilla.org/en/Drawing_Graphics_with_Canvas
https://developer.mozilla.org/en/SVG
Prototype doesn't have much support for either of these options but
they're viable and you could use event listener/dom traversal with the
SVG
file that you're going
to use.
--
Calvin Lai
Business Developmenthttp://dealspl.us
On Mon, Dec 22, 2008 at 1:07 AM, Matt Andrews mattpointbl...@gmail.comwrote:
You could just make your code into a function and pass the same php
variable as the parameter:
function newInPlaceEditor
Double check for any console.logs you may have in your code.
Lingering debugging code has caused me a few headaches in the past.
On Dec 22, 3:05 pm, pedz pedz...@gmail.com wrote:
On Dec 22, 1:33 pm, Diodeus diod...@gmail.com wrote:
You could make Ajax calls back to a logging system on the
Any reason in particular you couldn't use application/x-www-form-
urlencoded for your contentType?
On Dec 19, 1:12 pm, Dalzhim Dalzhim dalzhim.ml...@gmail.com wrote:
I finally found out what was the problem with this multipart POST
which wasn't working. After many hours of investigation, I
...
Not as bad as the old Flash sites that automatically scrolled at a
fixed speed,
(or re-implemented scrollbars badly in ActionScript) but close.
--Matt
On Dec 17, 5:52 am, Craig cr...@europe.com wrote:
site im developing is not live but similar tohttp://www.aspecto.co.uk/
Is there much use in creating
,
or if it's at the bottom, it becomes #2, etc. The idea here is that
I'm allowing users to assemble a top 25 list out of a selection of
hundreds of items. Any tips on doing this?
Thanks
Matt
--~--~-~--~~~---~--~~
You received this message because you are subscribed
You could also listen to those events on the input, and stop their
propagation so that the document never hears of them.
On Dec 15, 7:06 am, Stucture_Ulf maximilian.moulet...@gmail.com
wrote:
Great, I got it! Many thanks.
On Dec 15, 12:35 am, Gabriel Gilini gabr...@usosim.com.br wrote:
I like the idea of modularity, which would be more practical for your
environment. I have written an article on how Ajax.Request could be
modified to accommodate for a timeout event. Feel free to read the
article / source code. I wouldn't really recommend it for your live
site but its perhaps
The text node can only exist within one div, it's not a quantum
particle happily living in superposition across all five.
I love it, what a brilliant way to put it.
On Dec 12, 12:08 pm, T.J. Crowder t...@crowdersoftware.com wrote:
Hi Cyrus,
The text node can only exist within one div,
please post some advice.
Regards,
Matt
--~--~-~--~~~---~--~~
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
Try ending the statement with a semicolon, it is probably hitting the
syntax error there.
var stuff = eval('(function(){ ... });');
On Dec 4, 1:59 pm, yoshi [EMAIL PROTECTED] wrote:
i think u guys are assuming firefox, in IE eval without the function
wrapped in () does not cause syntax
This is why I like using an Ajax Service it creates a central
instance in which all requests are generated and processed through
http://positionabsolute.net/blog/2007/07/javascript-service.php
On Nov 13, 5:45 am, matte [EMAIL PROTECTED] wrote:
Hi,
Yes it is more straight forward but
By using the keyup event you can avoid the conditions to check for
change, if the user has pressed and released a key on the input then
the value has changed. Also it is very wise to add the timeout, your
users will thank you.
document.observe(dom:loaded, function() {
var list = $$(#listAll
I'd say your DOM traversals might add quite a bit of weight to your
filter. Why select the LI element if you're really looking at its
child A element's innerHTML property ?
Select those nodes and skip the execution of down, should speed things
up quite a bit.
Also if you're using a text input
Try
Event.observe(tre, click, this.RowClick.bindAsEventListener(this));
On Dec 1, 9:15 am, Mauricio Díaz [EMAIL PROTECTED] wrote:
Hi all,
I have an iFrame that contains a page with my scripts, and I want to
show a popup dialog in the parent window. I can insert my popup (a div
element
Excellent - thanks!
On Nov 28, 12:05 pm, SWilk [EMAIL PROTECTED] wrote:
Matt Winward pisze:
Thanks for the advice SWilk .. that was pretty detailed and very very
useful!
I had a little hunt around on the net and found this page (http://
blog.code-purity.com/archives/2008/10/3
the 'drop' functionality slightly so
that it calls a function I've defined myself?
We're either going to do it this way, or take the user to a config
page with moveable panels and a save button.. I'm not sure this has
yet been decided.
On Nov 28, 10:02 am, Matt Winward [EMAIL PROTECTED] wrote:
Hi all
!
Matt
--~--~-~--~~~---~--~~
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 email
about maintenance is a
fair one.
Thanks again for the reply!
Matt
On Nov 28, 11:12 am, SWilk [EMAIL PROTECTED] wrote:
Hi,
Matt Winward wrote:
Hi all.
We've just started using Scriptaculous to allow the user to rearrange
their home page content panels. At the moment we have two unordered
You could create your slider with a range of 0 - array.length -1.
Then use that value as an index to your actual data array in the
onSlide/onChange events
On Nov 26, 3:10 am, Nicolas Cavigneaux [EMAIL PROTECTED] wrote:
Le 25 nov. 08 à 22:14, Matt Foster a écrit :
You're sample data
Why would you want to avoid position:absolute for an object which
needs to sit on top of everything in the center of the document?
On Nov 22, 6:10 am, Dave L [EMAIL PROTECTED] wrote:
I have been struggling to get the DOM popup kit, which uses prototype,
to display popups and modal dialog
A lot of JS is being executed, listening to scroll is like listening
to mousemove, the event fires often. Scrolling up and down your page
might fire off more than 100 scroll events, in combination with this,
you're executing an effect each time the event is fired, furthermore
the Effect
You're sample data isn't really a range though is it? Why would you
want to use an instance of ObjectRange over a regular Array?
--
http://positionabsolute.net
On Nov 24, 12:14 pm, T.J. Crowder [EMAIL PROTECTED] wrote:
P.S : Oh and by the way, I can't post from my mail software. My mails
No idea if this works or not, but a quick search on Google has
produced an almost identical question and answer to your issue.
http://chumby.net/2008/10/27/scriptaculous-sortablecreate-onupdate-event-isnt-firing/
--
http://positionabsolute.net
On Nov 22, 4:53 pm, patrick [EMAIL PROTECTED]
Hmm, I've double checked this idea, I have no problems with replacing
a TR element.
element.parentNode.replaceChild(content, element) = element is null
I'd have to make the assumption that your trId value doesn't correlate
to an ID of any element in the document.
On Nov 21, 12:06 pm, jason
To elaborate on Kangax's idea, a DOM element is a dynamic object,
being that you can add custom properties which can be referenced for
further processing...
var ele = new Element(div);
ele.eventHandles = { click : handleClick, mouseover :
handleMouseOver };
ele.observe(click,
You could try different variations of the declaration, maybe it just
doesn't like that format. Also note that you're not setting a unit
for your value, this could be considered an invalid declaration?
you could try...
margin:0px;
margin-left:auto;
margin-right:auto;
It should be able to
Oh wow...
Hate to be the bearer of bad news Ryan, but not really
You can attach an event listener to an area object, which you could
attempt to harness a fade, but that would require you to make a lot of
edits to the image maps. Secondly, the entire page is one image, if
you take this
What do I make wrong
Many things...
script
var a = new Element('div', {id: 'my_div'});
$('my_div').style.witdh = '200px';
/script
/head
-You create an element, but never attach it to the DOM.
-Even if you did attach it, the DOM wouldn't be ready at that point in
execution, you've
What is going wrong with your current approach, should be no reason
you can't generate a new TR element and replaceChild on the tbody
object...
On Nov 20, 11:46 am, jason maina [EMAIL PROTECTED] wrote:
Hi,
Is it possible to replace a whole row with new data/controls without
interfereing
Well if you're request method is GET and you're looking in POST, there
could be some issues, make sure you're using and expecting the same
method type on the client and the server.
On Nov 18, 7:56 am, James Hoddinott [EMAIL PROTECTED] wrote:
I'm stumped again :( I have the following HTML which
Instead of trying to keep the last reference to the XHR sent, just
enforce a singleton style approach, such that the user can't request a
refresh of data when a request is already pending.
function fireAjax(){
if(Ajax.activeRequestCount == 0)
new Ajax.Request(...);
}
new parent.Ajax.Updater('target', './refresh.php5, { method:
You're sending a string, try using a direct object reference...
var ele = window.document.getElementById('target');
ele.innerHTML = Loading...;
new parent.Ajax.Updater(ele, './refresh.php5, ...
On Nov 17, 4:37 pm, ronman [EMAIL
but it didn't.
On Tue, Nov 18, 2008 at 10:11 AM, Matt Foster [EMAIL PROTECTED]wrote:
new parent.Ajax.Updater('target', './refresh.php5, { method:
You're sending a string, try using a direct object reference...
var ele = window.document.getElementById('target');
ele.innerHTML
No, its all POST methods being used here.
new
Ajax.Updater('respanel','data/fetchrespanel.php',{method:'get'});
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To
= Matt;
this.speak = function(){
alert(this.name);
}
}
var YourClass = function(){
this.name = Miguel;
};
var yourObj = new YourClass();
var myObj = new MyClass();
var myHandle = myObj.speak.bind(yourObj);
myHandle.defer();
console.log(myHandle);
On Nov
= Matt;
this.speak = function(){
alert(this.name);
}
}
var YourClass = function(){
this.name = Miguel;
this.speak = function(){
alert(this.name);
}
};
var yourObj = new YourClass();
var myObj = new MyClass();
var myHandle
$(main_content).fade({ duration : 1.6, afterFinish : function(fx){
fx.element.update(img src='spin2.gif'/);
fx.element.appear({ duration : 1.0 });
}
On Nov 12, 10:32 am, Walter Lee Davis [EMAIL PROTECTED] wrote:
Use a queue, or create a new hidden image over top of the old and
fade
That's broadly right, but my problem is string concatenation. I'm
passing the div name to search for those spans in using a function,
so when I try to do:
var spanName = span_+levelID;
I just get a value of 'span_+levelID' for $spanName.
Matt
On Nov 7, 4:05 pm, Alex Mcauley [EMAIL PROTECTED
Can anyone help? I'm really close to solving this, I just need someone
with a better grasp of Javascript to prod me in the right direction...
On Nov 3, 9:51 am, Matt [EMAIL PROTECTED] wrote:
On Nov 1, 4:38 pm, Jarkko Laine [EMAIL PROTECTED] wrote:
1) your alerting with a string bar
What are the drawbacks of requestings the JS file via Ajax.Request and
stuffing the responseText inside the innerHTML property of a generated
script element?
Does it have the global scope restriction like eval?
Does it cause a processing bottle neck for the client?
Is it supported by all
'. This is why those classnames have to be unique - they
could easily be IDs instead, but I still have the same issue. Each
collection of options is contained within a div whose ID is
dynamically generated, so I only want to test for spans within that
particular div. Do you follow now?
Matt
On Oct 31, 8:20 pm, Jarkko Laine [EMAIL PROTECTED] wrote:
Matt, could you elaborate a bit more?
$$('#container_'+boxID+' span');
actually looks to be fine. What are you getting with it and what are
you expecting?
//jarkko
I'm getting the literal string, $$('#container_'+boxID+' span
Effect.Slide needs an immediate child to perform the clipping
necessary for the effect.
On Oct 31, 9:56 am, Paul Kim [EMAIL PROTECTED] wrote:
Thanks for the solution David. Do you have any idea why this worked for
Opera when the ul element wasn't encapsulated inside a div element? -
Paul
this is dynamic code, there might
be more than 3 spans etc, so I need something robust. Any simple one-
liners to test if all spans within #container have a class of 'on'?
Thanks
Matt
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Are you holding a reference to an object inside the iframe? Such as
contentDocument/contentWindow. These references would be bunk once
the iframe refreshes.
On Oct 29, 4:31 am, Thomas A [EMAIL PROTECTED] wrote:
Our application is built on a static interface with HTML controls and
an Iframe
Very strange, not sure if i understand completely. So there is an
internal iFrame object that is getting references from its containing
document object. When the iframe reloads it no longer has these
references? Wouldn't a reload of the iframe force it to retrieve fresh
references as everything
Apologies if this is painfully obvious/patronising, but have you made
sure that any file paths that may have changed on the new server are
correct?
On Oct 26, 8:20 pm, stoshski [EMAIL PROTECTED] wrote:
My script used to work. Now it doesn't. The only thing that has
changed is the hosting
onDrop : handleDrop.bind(this);
..
handleDrop : function(e){
this.setDragItem(...);
}
http://prototypejs.org/api/function/bind
On Oct 27, 2:24 pm, Kris S [EMAIL PROTECTED] wrote:
When creating behavior classes using lowpro, how can i reference the
parent class while in a child
You could do this a variety of ways, using prototypes $$ method you
could quickly select all form tags. Alternatively native JS dom has a
quick reference to such a collection, via document.forms.
As a side note, you'll want to point the onload to a reference of your
function, not the result of
This one is a little confusing, but bear with me.
Basically I have a three level navigation menu made up of vertical
columns of boxes. You click box A in column 1 and its children boxes
appear in column 2. You click box B in column 2 and its children boxes
appear in column 3, etc.
There's also
The easiest way - backup the 1.5.0 rc0 version you're using, and
replace it with the new one. Test it out and if everything works, then
fine. If not, revert to your backup. Unless you need to use a new
feature in the latest version though, do you really need to upgrade
just for the sake of it?
Its because he's referencing the object through the options array,
Proto never gets to sink its method into the object because of this
traversal, while the other browsers support native extensions it works
fine.
$($(Birth_Day).options[0]).remove();
On Oct 20, 8:55 am, delishus [EMAIL
, though.
Still thankful for any ideas, workarounds or pointers.
/P
On Oct 14, 10:27 pm, Matt Foster [EMAIL PROTECTED] wrote:
Apply a more specific class to the top level element that you wish to
make sortable.
On Oct 14, 7:57 am, Lapis [EMAIL PROTECTED] wrote:
Hi!
I hope
Try Googling around for lazy loading its the idea you're talking
about...
http://ajaxpatterns.org/On-Demand_Javascript
We should write an extension for proto that does this nicely, I
checked out http://www.scripteka.com/ and there is a lazy loading tag
but unfortunately nothing with loading
I built some stuff, i wouldn't consider it a very robust datagrid
control but I did develop two classes to deal with some basic datagrid
stuff.
GridBase is an abstract class that propagates events like rowover/
cellover stuff like that for handling highlights.
Apply a more specific class to the top level element that you wish to
make sortable.
On Oct 14, 7:57 am, Lapis [EMAIL PROTECTED] wrote:
Hi!
I hope someone has a good idea that can help me here.
I do Sortable.create(...) on some element (div class=block /) and
pass tag: 'div' and only:
Ditch the iframe object in favor of a DIV and things will work much
smoother..
On Oct 10, 12:17 pm, Miguel Beltran R. [EMAIL PROTECTED] wrote:
Hi list
I have the next code but not work, iframe show nothing
what I doing wrong?
html
...
body
div id=content
div id=form_search
I take it you're trying to handle the back button, take a look at my
approach, detailed in this article,
http://positionabsolute.net/blog/2007/07/javascript-history-service.php
On Oct 9, 3:19 pm, Mauro Marchiori Neto [EMAIL PROTECTED] wrote:
i guess i need to uptate the location.hash so
Looks like you're going to need more data in the checkbox. As you're
going to need the ID as well i'd leave that as is. But you can add an
extra attribute to help with this calculation.
input name=invoiveID[] value=?=$invoiceID? price=?=
$invoicePrice? type=checkbox /
Javascript has no
I like to apply a background image to the input for such cases, that
way the input's value is untouched yet the UI can indicate the purpose
of the field. Also with an image your watermark can be a faded grey,
further indicating its transparent presence.
On Oct 2, 9:40 am, Christophe Porteneuve
There is a trailing comma in your object that IE doesn't like,
considering a syntax error. Remember when evaling something that the
expression you're evaluating has to have perfect syntax as well.
On Sep 28, 12:39 pm, uncleroxk [EMAIL PROTECTED] wrote:
ok my JSON:
{messages: {message:[
A very good idea, something I had pondered as well but never came up
with a solution I was satisfied with.
First problem with your scenario is you're sending in a string as the
superclass, this isn't going to work regardless. You could use new
Element('div') but this is going to create a static
Instead of relying on the object's style, just give it a class that
you can filter on, that enforces the style of a blue background.
$$(.blue[name='pmt'])...
On Sep 24, 9:41 am, kangax [EMAIL PROTECTED] wrote:
On Sep 24, 7:31 am, ColinFine [EMAIL PROTECTED] wrote:
On Sep 24, 1:06 am,
You could improve performance a little bit by skipping the each and
using invoke. You'd have to modify some of the stuff, such as your
declaration of section_id but it wouldn't be too difficult to convert.
$$(a.more).invoke(observe, click, function);
http://prototypejs.org/api/enumerable/invoke
Your this scope is lost inside the this.exito method. You need to
use a closure, via the bind method to ensure the instance's reference
is maintained in the asynchronous callbacks.
onSuccess : this.exito.bind(this)
On Sep 22, 10:14 am, Miguel Beltran R. [EMAIL PROTECTED] wrote:
I don't know
Have an observer method assigned to the primary selects elements
select event. The observer method executes an ajax.request. Have
the onSuccess handler rebuild the secondary select element with the
options returned from the request.
On Sep 19, 4:33 am, jason maina [EMAIL PROTECTED] wrote:
Hi
by the function. I used inline CSS to hide the boxes, so it
shouldn't be that - each child div has a 'box' class, so I'm stumped
as to what's causing it.
Thanks
Matt
On Sep 18, 2:25 pm, bluezehn [EMAIL PROTECTED] wrote:
You should set style=display:none; in the actual html rather than
the css
That was it - I should have spotted it, sorry. Thank you so much, this
has really pulled me out of a rut!
Matt
On Sep 18, 2:46 pm, bluezehn [EMAIL PROTECTED] wrote:
Well I think it may be this:
if(!node.id == newBox)
which should be this:
if(node.id != newBox)
other wise use
1A
but then when the animation ends, div 1B flickers down to 30% so it's
the same size as 1A still. I've probably made this more complex
sounding than it is, but does anyone have any ideas?
Matt
--~--~-~--~~~---~--~~
You received this message because you
101 - 200 of 203 matches
Mail list logo