Displaying 20 results from an estimated 200 matches similar to: "Retrieve a property defined in a css"
2008 May 30
7
Styling an Anchor Tag With Prototype
I have a question: How do you style the various components of the
anchor tag? I am doing it this way:
$$(''a:link,a:visited'').each(function(link){ //links
link.setStyle({ color: ''#''+$F(''cp4_Hex'') });
});
$$(''a:hover'').each(function(link){ //links
link.setStyle({ color: ''#''+$F(''cp5_Hex'')
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
2019 Apr 16
2
Measure network bandwidth per process
Hi,
Is there a way to measure network bandwidth per process in CentOS Linux
release 7.6.1810 (Core) using any utility? I was reading about nethogs but
it does not have the option to run it in daemon mode so that we can take a
look at historical data to figure out the process which was consuming high
network bandwidth instead it is a good tool for Live monitoring.
Please suggest. Thanks in
2005 Dec 08
6
Bug in Effect.Highlight ?
Hi All,
I''ve just discover scriptaculous and it is a really good library. Even
if I have some difficulties with short syntax in javascript code :/
I have a strange behaviour with Effect.Highlight, and as it''s said on
bug report page :
"It''s also a good idea to discuss this on the Mailing List beforehand,
maybe it''s already known and in the works, or it
2006 Mar 31
2
evalScript && onComplete
Howdy all,
I have an Ajax.Updater with evalScript = true and I would like to
execute some javascript *after* the scripts in the answer have been
eval''ed.
How can I do that ?
I''ve tried with onComplete, but onComplete seems to be fired before
the inner scripts.
Thanks,
Nicolas
2005 Dec 08
6
What does mean $(element) ?
Hi All,
In scriptaculous scripts, I don''t understand this syntaxe : $(element)
--8<---------------------------------
Effect.Highlight = Class.create();
Object.extend(Object.extend(Effect.Highlight.prototype,
Effect.Base.prototype), {
initialize: function(element) {
this.element = $(element);
...
--8<---------------------------------
I had never seen this syntaxe, I
2009 Apr 08
4
Having trouble extending a class from a Rails plugin
I have class in a plugin that I want to crack open and add some
functionality to for a particular application. So, I created a file by
the same name as the class in my app/models folder and added some
methods to the class, but, I can''t seem to get Rails (2.2.2) to pick-up
the extended definition.
I did find while trying to debug the problem that if I paste the
extended definition into,
2006 May 22
2
using Singleton with Prototype
Hello all. I''m writing my own object using prototype and I
wonder how you write and call only one instance of class. Can
anyone share his idea of singleton?
thanks
Gregor
----------------------------------------------------
Gdy nadchodzi przełomowy moment w historii, musisz zdecydować,
po czyjej stronie będziesz.
"X-Men: Ostatni bastion" - w kinach od 26 maja.
2006 Jun 13
0
Code comments?
A little OT. Hope you don''t mind... here is a function which modifies a
value in an external stylesheet (works in Firefox, IE 6, IE 5.5)...
I''ve rewritten it using prototype.js structures and suspect there are some
additional optimizations which could be made. There may be a way to use
findAll or another equivalency operator to test for the innermost equality
and perform the
2005 Dec 08
3
Uncomplete hiding on Firefox 1.5
Hi all,
I have observed the following on Firefox 1.5 (both on XP and OSX):
My page has some div containers that hold sortable ul. The div's also
contain links for showing/hiding the contained ul's. No matter which
effect I use to do the hiding and showing (Fade/Appear, SlideUp/Down,
BlindUp/Down) the hidden ul's don't hide completely, leaving a blank
'trace' behind.
2009 May 31
7
[mapstraction commit] r11 - Added functionality to automatically load scripts needed.
Author: robert.moran
Date: Sun May 31 11:13:23 2009
New Revision: 11
Modified:
trunk/source/mxn.core.js
trunk/source/mxn.js
trunk/source/mxn.yahoo.core.js
trunk/tests/index.htm
Log:
Added functionality to automatically load scripts needed.
Allowed mapstraction default constructor to have provider omitted (will use
first loaded provider).
Minor change to yahoo implementation -
2005 Dec 20
9
Performance issues with Prototype
Hi
I''ve tried to use Prototype as a base for few large intranet
applications I''m working on. Unfortunately I encountered some
serious performance problems when working with Internet Explorer.
It''s really sluggish when it comes to DOM operations and Prototype
could really benefit from some small optimizations. I created a
testase to show a difference between my optimized
2006 Mar 01
9
sortable tree?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi *,
I am new to this list, so please excuse me if this has been covered
before (unfortunately the search function at
http://www.ruby-forum.com/forum/10 is disabled at the moment).
If yes, then a pointer to a solution would be great.
I want to create a sortable tree with scriptaculous Sortable. There are
several categories and subcatgories:
cat_a
2006 Mar 15
4
sub-selection with $
Hello,
I have 2 navigations ( mainnav and subnav ) with 2 lists
List have same names ( li0 li1 li2 )
What is the best way to select li1 of subnav with prototype 1.4 in this
case ? I just want to hide/show it
Thanks
<div id="mainnav">
<ul>
<li name="li0"><li name="li1"><li name="li2">
</ul>
</div>
<div
2006 May 24
6
enumerables problem?
I was wondering whether anybody could please tell me why this is causing an
error in IE (works in Firefox):
$A(container.getElementsByTagName(''*'')).each( function(el) {
Element.cleanWhitespace(el);
}.bind(this));
What would be an alternative of achieving the same?
Thank you
Marco M. Jaeger | Url: http://mmjaeger.com <http://mmjaeger.com/> | E-mail:
2006 Dec 17
12
Best practices for conditional display in views?
Hi.
I am writing an application that has a lot of boolean conditional
display logic, like this:
<% if user.description then %>
<p class="css_class"><%= user.description %></p>
<% end %>
Often the displayed content is more complex than the above, and to clean
up my views I am trying to pull a lot of this sort of thing into
partials.
However, the problem
2006 Feb 26
1
Help with ruby=>html
Hi!
I''m new to ruby and rails and got problems with using basic methods like
form_tag or link_to etc to create what i need, i.e. to specify css class
or id or name of html elements.
I have problem with understanding rails api (it''s just as an example):
form_tag(url_for_options = {}, options = {}, *parameters_for_url)
what parameters can i pass to form_tag? How to specify
2016 Apr 17
2
Last
Hi all,
I am trying to read data from a particular excel sheet.
library(xlsx)
dat1=read.xlsx("las.xlsx", sheetIndex = 5)
I know that this is sheet is the last one and this number grows over time
When I run my script to read the last sheet then I have to change this
number every time manually.
Is it possible to read the last sheet of an excel file?
Thank yo in advance
Val
2011 Aug 02
1
xlsx error
Hey All,
I'm trying to use the xlsx package to read a series of excel spreadsheets
into R, but my code is failing at the first step.
I setwd into my the directory with the spreadsheets, and, as a test ask for
the first one:
read.xlsx(file = "Argentina Final.xls", sheetIndex = 1)
I promptly get an error message:
Error in .jcall(row[[ir]],
2006 Jun 19
13
PNG and Alpha-Transparency
Is there a prototype / extension which will assist in cross-browser support
of PNG images?
http://www.alistapart.com/articles/pngopacity/
It seems to me that a class could be developed which would zip through the
DOM and make changes where needed for IE 5.5 / IE 6.0 to handle PNG images.
I don''t want to write one if it''s been done before.
Sam