A.. Ok can someone please help me out. Prolly easy for someone else.
Here is the page in question:
http://www.louiswalch.com/beta/slide.php
Can you please tell me why when I tell it to show ONE of the divs, it
shows them ALL?!
I just want a simple nav where when you click the button, it hid
i took the prototype and all the scriptaculous .js files and combined them
into one, then i ran it through the compressor at
http://www.creativyst.com/Prod/3/
it was able to compress it down about 77%. what i am wondering is, is this
safe to use? i am just looking to chop down the 152kb of all the
oh dude.
must have been a bug in the old version. i upgraded to the latest version
and it works fine :)
thanks for all the help!
> Don't know... try digging into the code to see what that method is
> returning though. I would if I had that version of proto.
>
> The information transmitted in t
is there an easy way to echo whats inside it without looping content?
> But he already tried straight
>
> $A(document.getElementsByClassName("blah")).each(blah..);
>
> I don't use the pre_2 (or whatever) version (only the str8 1.4 release),
> otherwise I would check what getElementsByClassName is
no dice dude
editViewItems.each is not a function
> Try:
> var editViewItems = ...
> instead of
> var items = ...
>
> Just to make sure there's no variable conflict.
>
> -Matt
>
> On Mar 16, 2006, at 2:08 PM, Louis Walch wrote:
>
>> i have proto
i have prototype 1.4.0 pre_2
and the only other lib i have is scriptaculous
> For what it's worth, I may have been wrong when I said it returns a
> node list. I was thinking of getElementsByTagName
>
> getElementsByClassName comes with prototype (and other libs) and
> would probably return an Ar
yea its loaded...
i will just put it back into the for loop, i was just currious to start
using each.
> ...and you're sure that prototype is loaded?
>
> Otherwise, I guess just do a for loop.
>
> The information transmitted in this electronic mail is intended only for
> the
> person or entity to w
gt; it into an array:
>
> var nodeList = document.getElementsByClassName('editView');
> var items = $A(nodeList);
>
> -Matt
>
>
> On Mar 16, 2006, at 1:04 PM, Louis Walch wrote:
>
>> can you please tell me why this is not working? i got the example
>> for ho
'editView');
> var items = $A(nodeList);
>
> -Matt
>
>
> On Mar 16, 2006, at 1:04 PM, Louis Walch wrote:
>
>> can you please tell me why this is not working? i got the example
>> for how
>> to use each online and copied it to a t (except i added th
can you please tell me why this is not working? i got the example for how
to use each online and copied it to a t (except i added the if). its
telling me items.each does not exist.
var items = document.getElementsByClassName('editView');
if (items.length > 0){
items.each(function (result)
Ok cool.
The library sounds interesting, hope it goes well, and wish i knew enough
to help out :)
I will upload the file you sent and give it a shot.
> Not any of my stuff, no. I'm currently only working on my company's
> products (which are sold privately into Hospitals).
>
> Myself, Marco J
Is there a working demo of this online?
> Well, this is the modified version of Joe's calendar. It works... (Joe,
> I hope you don't mind my reposting the code here)...
>
>
>
> But I'm actually working on a different one that I'm deriving from the
> DHTMLGoodies one that we discussed that day, an
wondering if you have a suggestion for the best way to get child by class
name.
example would be to target a TR and return a TD with classname of icon in
order to use innerHTML
thanks!
--louis
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonr
i think it would be a good idea to map a shortcut to
getElementsByClassName like the much loved $(). i think $c() seems
applicable.
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-sp
duh, ok.
sorry and thanks for the help!
> On 2/23/06, Louis Walch <[EMAIL PROTECTED]> wrote:
>> whoops, sorry
>>
>>
>> function displayPreviewIcon(){
>> inputs = getInputsByAttribute('fldtype','filelocati
kgroundColor = '#ff00ff';
}
}
which is called onLoad
> On 2/23/06, Louis Walch <[EMAIL PROTECTED]> wrote:
>> the file is being included, it is in the top of my common.js
>>
>> i am getting the error before it does anything. could it be that my
>>
return elements;
}
> On 2/23/06, Louis Walch <[EMAIL PROTECTED]> wrote:
>> i made a function which was a near duplicate of getElementsByClassName
>> and
>> saved it as getInputsByAttribute and saved it in an external js file.
>>
>> but now i am gett
i made a function which was a near duplicate of getElementsByClassName and
saved it as getInputsByAttribute and saved it in an external js file.
but now i am getting "getInputsByAttribute can not be found" is there
something i need to do to make it part of prototype?
>
>
>
thanks rob, i will give input_.+ a shot.
i use a custom attrib named fldtype for some input items and am hoping to
assign different actions to each input based on that.
>
>
> Louis Walch wrote:
>> i would like to detect classnames of input_(ANYTHING) is this p
i would like to detect classnames of input_(ANYTHING) is this possible
with getElementsByClassName?
also, is tthere a way to get elements by attribute? or would that be too
heavy on the load time?
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.ruby
does it not work?
works fine for me on all other browsers and platforms.
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
bingo
how come draggable.id worked without element in there?
> Do you mean droppable.element.id?
>
>> -Original Message-
>> From: [EMAIL PROTECTED]
> [mailto:rails-spinoffs-
>> [EMAIL PROTECTED] On Behalf Of Louis Walch
>> Sent: Tuesday, February 07, 20
thanks, i misunderstood.
droppable.id in the function is coming through as "undefined" it does have
an id
>
> On 7 Feb 2006, at 17:47, Louis Walch wrote:
>
>> umm... if i remove the function name how does it know which
>> function to use?
>>
>>
umm... if i remove the function name how does it know which function to use?
>
> On 7 Feb 2006, at 17:35, Louis Walch wrote:
>
>> thanks for the help but you were right it should work - i just had
>> a typo :)
>>
>> next issue
>> tying to get i
fined"
dropAction: function(draggable, droppable) {
alert("DROPED:" + draggable.id +" ON " + droppable.id);
}
. . .
Droppables.add("drop_List'",{hoverclass:"highlightField",accept:["draggable"],onDrop:dropAction});
>
&
ns hash passed to Ajax.Updater.
>>
>> tom
>>
>> -
>> http://www.smallroomsoftware.com
>>
>> On 7 Feb 2006, at 15:28, Louis Walch wrote:
>>
>>> using Ajax.Updater to update a section of a page with a also
>>> want to
&g
using Ajax.Updater to update a section of a page with a also want to
write some javascript into it (because im trying to make each of the
draggable. but the are not being written. is this not
possible?
___
Rails-spinoffs mailing list
Rails-spinoffs@lis
ticles/prototype.js.html
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Louis
> Walch
> Sent: Friday, February 03, 2006 2:01 PM
> To: rails-spinoffs@lists.rubyonrails.org
> Subject: [Rails-spinoffs] help wit
im not a javascript programmer... so be nice.
scriptaclous uses a differnt format for writing functions and code then i
am used to. are there books or tutorials for helping a beginner understand
how to write like this and what everything is?
that said... i was readding this webpage:
http://partic
i wish but i work in a mac friendly office, and firefox on mac is not
that hot.
> "easy" remedy? Don't worry about Safari ;-)
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Louis
> Walch
> Sent: Friday, F
i have an autocomplete set up on a textarea. it works fine, but in safari,
when you select a word from the dropdown, it does not focus the cursor at
the end of the line.
can you think of an easy remedy?
thanks.
___
Rails-spinoffs mailing list
Rails-spinof
I would like to suggest that scriptaclous starts distrubuting with an
alternative js file which contains all 6 seperate .js files into one. This
will make it easier for js compression and gzipping to save on download
time.
Discussed at:
http://www.zimbra.com/blog/archives/2006/01/zimbra_ajax_css_d
; [mailto:rails-spinoffs-
>> [EMAIL PROTECTED] On Behalf Of Louis Walch
>> Sent: Tuesday, January 31, 2006 8:08 AM
>> To: rails-spinoffs@lists.rubyonrails.org
>> Subject: [Rails-spinoffs] Re: form elements in sortable lists
>>
>> Has anyone else experienced problems
Has anyone else experienced problems with this, and furthermore how to
allow it to work cross browser?
> i am having problems with editing items which are inside a sortable
> list...
> different on browsers
>
> PC IE - Works fine
> PC FF - select boxes work, input boxes are NOT editable
> MAC Saf
i am having problems with editing items which are inside a sortable list...
different on browsers
PC IE - Works fine
PC FF - select boxes work, input boxes are NOT editable
MAC Safari - select boxes are NOT edtable, input boxes work
thanks!
___
Rails-sp
not bother with all that, just do
> 'onChange' instead, which is called every time the order changes during
> the dragging.
>
> I ran into this same thing not too long ago.
>
> Greg
>
>> -Original Message-
>> From: [EMAIL PROTECTED]
> [mailto:rail
oh right, value... god i always do that.
but, its not even alerting 'hi' so its not getting to that point even.
its making the list sortable, but nothing happens after i drag around.
> Well, if they are hidden input fields, then I'm not sure you can use
> innerHTML (all self-enclosed tags
ids is an array of all elements with the class name of 'linkIndexNumber'
which is only the hidden fields.
i figured that getElementsByClassName would return them in the order they
appear on the page, so i am using that to base which number they are in
the list.
then i am setting each of them to t
here is most likely an easy question how come this will not work?
i am trying to change the values of a hidden input inside each sortable to
the current index.
thanks!
Sortable.create('list_filmLnks', {
onUpdate: function() {
..
> onDrop: doTheThing
> }
>
>
> If all this is contained in a single class definition, you might get
> better results using:
>
> onDrop: this.doTheThing.bind(this)
>
> in the above code.
>
>
>
> -Original Message--
thanks for the help, but i need to be able to pass in the id so i
guess i will have to put the whole funciton inside the Droppables.add.
however its not letting me...
Droppables.add('droptarget1',{hoverclass:'dropTargetHover',
ok thats what i was worried about... just seems like alot of code...
new Draggable('foo/one',{revert:true});
new Draggable('foo/two',{revert:true});
new Draggable('foo/three',{revert:true});
new Draggable('foo/one/a',{revert:true});
new Draggable('foo/one/b',{revert:true});
my list has ov
42 matches
Mail list logo