Hi,
You can reference a property of an object using a string key and
square brackets, so this:
var itemsToShow = "myOptions." + sel;
should be:
var itemsToShow = myOptions[sel];
...assuming that `sel` contains a string like "myOptions_group1", as
it appears to from the if/else structur
Sorry, meant to say: I also didn't see anything wrong with using a
variable to refer to `this` and not using #bind. If you do that,
though, I'd recommend using the same variable name every time you do
this, throughout all of your classes. The one I use is `self` because
lots of people seem to use i
Thanks T.J.,
Very good suggestions, and it's always interesting to see how other
people (more experienced too) would handle certain things.
What's most interesting to me is that my 'way' of programming has been
to do something like this:
var Foo = (functi
*sigh* I think I need more coffee. And a vacation.
The _other_ thing I meant to mention is that I find it handy to put
wrappers around the Ajax.Request (and similar) calls in Prototype. I
keep meaning to write this up properly because I know the ajax stuff
is being redesigned before too long, but
I have run across a bug which is really hindering the usage and
functionality of my application... I am hoping that someone here can
offer a trick to get around it (without having to change my design).
I've simplified the problem by extracting the stuff into it's own html
file with minimal css an
Anyone may have a clue? :(
--
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+unsub
According to the wiki:
http://wiki.github.com/madrobby/scriptaculous/effect-morph
...morph only works on length and color based attributes, so it won't
switch the background image for you. Why don't you just use setStyle
on the containing element and then use morph to change the size?
Cheers, Jun
Well, my solution was to do away with overflow: auto, and make my own
'scrolling'...
http://collinatorstudios.com/drag_bug_solution.html
-patrick
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email
Well, the problem seems to be that sound.js detects IE and then uses
the bgsound tag to play music - but IE8 doesn't support bgsound. Hence
the problem. I'll see if I can hack it so it uses a plugin instead
like all the other browsers; if I can get it to work I'll post it
here.
On Apr 10, 8:30 pm,
Hi,
I am very new to these frameworks at all.
Because of the many possibillities I have decided to use scriptaculous
and generaly it works just fine.
But: When I try to add some effects to my website, I fail. It works a
bit but not really good.
The site, that it is about is this one:
http://bitsc
Hey Junkshops :)
First I would thank you for your answer. The setStyle may solve the
problem linked to the background image (what a shame that morph don't
work with bgimage :/) but the problem is that I won't get the "morph"
effect between the bakground change which is what I am searching for.
I'm
That is all i can think of. Quite heavy handed to have such a
transition, but doable. Possibly always have a clone behind the
transitioning element and just morph the opacity of the one on top
anytime you want to change the background.
Btw, the reason morph only effects what it does is that the
If you're looking for a real morph effect, where one image slowly
flows and changes into the next, there's no way scriptaculous or
prototype could do that. Generally speaking, as I understand it, if
you couldn't do the animation yourself by changing css/style tags and
reloading over and over, scrip
In order to morph between two images, you need to have stacked both of
them, then fade the front one out. That gets you a perfect cross-fade
between the images. So to get behind your background image, if it's on
a DIV, just clone a div behind the background and fade out the
background. I th
On Apr 10, 8:36 pm, chrysanthe m wrote:
> Hi, again
> Sorry for being obtuse. But can someone help me and even understand how to
> write a function and call it on a hash that will take a value, compare it
> against each of the keys in the hash, on match delete the key/value, and
> return the ha
15 matches
Mail list logo