Displaying 20 results from an estimated 5000 matches similar to: "Get first class name"
2006 Jan 31
5
resizing multiple images using getElementsByClassName
I am building a iPhoto like (Read rip-off) interface for thumbnails
and I am having a couple problems that I thought some one on the list
might be able to assist me on ...
first off here is the page: http://v4.incontrolsolutions.com/galltest/
I am no Javascript whizz and I am sure there is a FAR more efficient
way to do what I am trying. Having said that, the 2 things I was
looking for
2006 Jun 15
8
Loading CSS for AJAX apps.
I am working on an update to my content management system and I am
using a lot of AJAX to load in the different "Modules"
I want each module to be self contained, including all its specific
js and CSS.
Does any one know of a good solution for loading in new CSS to go
with the code loaded in via the AJAX call?
Thanks.
2006 Jan 16
2
Behaviour.js and prototype Event.pointerX
is there a way to take advantage of prototypes Event.pointerX when
using Behaviour to manage my events?
somthing like..
var myrules = {
''body'' : function(el){
el.onclick = function(){
alert(Event.pointerX(e));
}
}
};
thanks
______________________________________________________________________
Alex Duffield . Principal . InControl Solutions . http://
2006 Jan 20
2
Effect.moveTo??
I cant seem to find an effect to move an element to a given XY position
new Effect.Move(''elid'',{x:10, y:10});
Will move the element 10px down and 10px to the right, but I want to
move my element to 10px from the top left corner of the page.
I know I could find the current position, and do the math to find out
how far to move it, but is there already a built in function in
2006 Feb 17
6
Ajax.Updater and loading new javascript functions.
I working on rebuilding my CMS software using AJAX, and have run into
a couple problems I cant seem to find the solution to.
I am loading up a new component of my system using the Ajax.Updater,
and it loads up the HTML fine but as the component I am loading up is
fairly complicated I want to load up its relevant javascript
functions as well at the same time.
I am using the
2006 Jan 20
2
FireFox JavaScript Console
The new version of Firefox displays a bunch of CSS errors for things
that I am forced to use to make IE Windows work... Does any one know
a way to get the Javascript Console to only show actual Javascript
errors, disabling the CSS errors???
Oh ya, im on OSX.
Thanks.
______________________________________________________________________
Alex Duffield . Principal . InControl Solutions .
2006 Jan 21
8
scriptaculous accordion feature - Jump?
Trying the accordion feature as offered at:
http://wiki.script.aculo.us/scriptaculous/show/accordion+feature
The objective is to remove the "jump" reported in the Rico accordion
feature. My demo of the scriptaculous feature, however has a noticeable jump
when tested if FireFox. and IE Win. See:
http://www.jimdavis.org/accord3.html
Have I implemented this incorrectly?
Jim
2006 Jun 16
11
Detecting Body Onload
I have a piece of code that "waits" for body onload. Every 30ms, it tests
$(''body'').
Seems that isn''t always good enough. I''ve hit situations where the DOM is
"partially" loaded somehow.
I fixed matters by setting a global flag...
<body onload="bodyLoaded=true;">
which provides a better test... of course I could
2006 Jun 20
5
Multiple Ajax.Request or Ajax.Updater
I''m having a problem with multiple Ajax.Updater instances. I have five
small chunks of data being loaded into my homepage, and they seem to
be firing off one at a time. So the pieces load up in the order they
were called. Maybe I''m being a noob, but shouldn''t all those requests
just fire away and then place the content as it gets received?
I was doing multiple versions,
2006 Mar 01
2
RE: manipulate <td>''s and their content bygrabbingtheir classNames
> Or...
>
> var myTDs = new Array();
> $A($("main").childNodes).each(function(tr)
> {
> $A(tr.childNodes).each(function(td)
> {
> myTDs.push(td);
> });
> });
You''ll probably want to make sure the tr elements are TR tags and the
same for the td''s, as empty text nodes are inserted randomly by the
gecko engine (and maybe others).
Greg
2006 Sep 29
3
no setClassName or removeAllClassNames in prototype - why?
Often I have the need to set one class name to an element. I don''t care
what was there before, just remove it and set it to the new class. I
don''t see any easy way to remove all the class names or to set just one
class name. Why is this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
2005 Dec 28
6
Sudden Javascript Console noise in firefox
I have been using the latest version of Firefox and Scriptaculous for about
a week now, with no problems.
Now I get a lot of noise in the javascript console out of the blue:
http://img481.imageshack.us/img481/7913/screen4nt.jpg
--
============================
Brian Peiris
Brampton, Ontario, Canada
brianpeiris-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org or
2006 Apr 27
14
cleanWhitespace and parentNode
Hey cats,
I seem to have ran into a problem in IE trying to use parentNode with
the cleanWhitespace method.
doing something like:
var div = $(''mydiv'');
Element.cleanWhitespace(div);
works really great, but try doing:
var div = $(''mydiv'');
Element.cleanWhitespace(div.parentNode);
or
var div = $(''mydiv'');
div = div.parentNode;
2006 Mar 17
10
good javascript xml parser
Anyone know of a javascript function that will take an xml document and
turn it into an associative array?
Basically it would take something like this:
<body>
<item>
<id>1</id>
<name>Bob</name>
</item>
<item>
<id>2</id>
<name>John</name>
</item>
</body>
And turn it into something like this:
{
2006 Feb 23
25
reloading fragments of pages
Hello,
I have a treeview, that works with scriptaculous in order to load the nodes
dynamically.
I also have in the main part of the page, a table with the list of elements.
The lists of elements can be drag-dropped on the treeview in order to move
them around
(they are also draggable on other parts of the page)
I need though, to refresh the treeview to reflect changes when a folder was
moved
2006 Feb 17
4
RE: Ajax.Updater and loading new javascriptfunctions.
<p align=\"left\"><b><font face=\"Arial\" size=\"2\">GFI MailSecurity''s HTML threat engine found HTML scripts in this email and has disabled them.</font></b></p>Also... with the evalScripts method, try assigning your functions
differently so they stay in memory (assign them as variables)...
myalert = function(txt)
{
2006 Feb 14
5
Yahoo! User Interface Libraries
Yahoo! recently unveiled their UI Libraries which appear to provide a
lot of the functionality that script.aculo.us and prototype does.
I''ve tried some of the demos and the effects run quite smooth/fast.
Could be an opportunity for us to adapt some ideas/approaches to
improve.
http://developer.yahoo.net/yui/
2006 Jun 16
3
onCreate not getting triggered.
I am trying to get a loader to display during ajax requests, but the
"onCreate" is not getting triggered. The onComplete does.
function loadComponent(section){
values = arguments[1]
pars = $H(values).toQueryString()
pars = "section="+section+"&"+pars
var url = ''/internal/ajax/requests.php'';
var ComponentLoader = new
2006 Jun 20
4
Prototype Array bug??
function CreateTOC(){
var $aTOC = document.getElementsByClassName(''tocitem'');
var $temp = '''';
if(isArray($aTOC)){
for($t in $aTOC){
$temp += ''t='' + $t + '', '' + $aTOC[$t].name +
''<BR>'';
}
$(''test1'').innerHTML = $temp;
}
}
When I run this code
2005 Nov 09
1
Element.removeClassName(..) - bug or incorrect usage?
Hi,
I have just started using prototype.js and scriptaculous.js in one of
my projects. These libraries are awesome and they let me do so much
more, so easily.
At some point in my web interface, I have an element with multiple
classes, out of which one class needs to be removed.
I am using
Element.removeClassName(element, "classname to remove");
to achieve this.
This call does remove