Displaying 15 results from an estimated 15 matches for "parsefloat".
2005 Nov 21
0
New Core Effect
...t.Base.prototype), {
initialize: function(element, property) {
this.element = $(element);
this.property = property;
var options = Object.extend({
toRight: null,
toLeft: null,
toTop: null,
toBottom: null
}, arguments[2] || {});
this.originalRight = parseFloat(Element.getStyle(this.element,
property + ''-right'') || ''0'');
this.originalLeft = parseFloat(Element.getStyle(this.element,
property + ''-left'') || ''0'');
this.originalTop = parseFloat(Element.getStyle(this.element...
2007 Oct 19
2
string.prototype.isNumeric
Hey all,
Just had a need for this, wondering if it is a candidate for inclusion as it
is only a single line and I can''t seem to spot any other way of acheiving
the same functionality in less code.
String.prototype.isNumeric = function() { return (this.match(/^\d+$/) !=
null); }
I used it in the context of:
Event.observe(el,''keypress'',function (e) { if
2008 Apr 18
5
show sum of textboxes
Hi all,
I have multiple textboxes containing numbers. I want to add up all the
numbers and show the sum. Can I select the textboxes by class and sum
the content?
This also has to happen realtime: when a number is changed ina textbox
the sum should also change.
can this be done?
regards,
Stijn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2006 Feb 08
6
Effect Help
I posted the following earlier:
"I need a way to do a blind up that makes the element APPEAR and a blind
down that makes the element DISAPPEAR. In essence, the opposite of the
current blindup/blinddown.
Thoughts?"
I think somebody responded in Dutch. Anyone else have any ideas?
--
Yehuda Katz
Web Developer
(ph) 718.877.1325
(fax) 718.686.4288
2007 Aug 20
0
IE7 invalid argument
...from inside Position.relavitize on IE7.
Using 1.5.1.1 of Prototype.
relativize: function(element) {
element = $(element);
if (element.style.position == ''relative'') return;
Position.prepare();
element.style.position = ''relative'';
var top = parseFloat(element.style.top || 0) -
(element._originalTop || 0);
var left = parseFloat(element.style.left || 0) -
(element._originalLeft || 0);
element.style.top = top + ''px'';
element.style.left = left + ''px'';
-----> //element.style.height = elemen...
2010 Nov 08
1
API Google MAPS
...ew google.maps.Map(document.getElementById("mapilla"),
myOptions);
// add the marker itself
var marker = new google.maps.Marker({
position: latlng,
map: map,
draggable: true
});
}
function add_marker(map, lat, lng) {
var point = new google.maps.LatLng(parseFloat(lat),parseFloat(lng));
var myOptions = {
zoom: 10,
center: point,
//mapTypeControl: false,
mapTypeId: google.maps.MapTypeId.ROADMAP,
navigationControlOptions: {
style: google.maps.NavigationControlStyle.ZOOM_PAN,
position: google.maps.ControlPosition.TOP_RIGHT
},
mapTypeContr...
2007 Aug 22
0
3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c test/trace
...= XMLNode;
+_global.XMLSocket = XMLSocket;
+_global.clearInterval = clearInterval;
+_global.clearTimeout = clearTimeout;
+_global.enableDebugConsole = enableDebugConsole;
+_global.escape = escape;
+_global.flash = flash;
+_global.isFinite = isFinite;
+_global.isNaN = isNaN;
+_global.o = o;
+_global.parseFloat = parseFloat;
+_global.parseInt = parseInt;
+_global.setInterval = setInterval;
+_global.setTimeout = setTimeout;
+_global.showRedrawRegions = showRedrawRegions;
+_global.textRenderer = textRenderer;
+_global.trace = trace;
+_global.unescape = unescape;
+_global.updateAfterEvent = updateAfterEvent;...
2006 May 30
0
problem with effect toggle - please help
...eight) {
if (!this.boolUpdate) {
Element.setStyle(treeBox.bContentWrap, {height:
(Element.getHeight(treeBox.bContentWrap) > 0) ?
(Element.getHeight(treeBox.bContentWrap) + oHeight) + ''px'' : 0 + ''px''});
Element.setStyle(treeBox.bContent, {height:
(parseFloat(Element.getStyle(treeBox.bContent, ''height'')) + oHeight) +
''px''});
}
},
update: function() {
(Element.visible(this.bContentWrap)) ?
this.bBtnToggle.setAttribute(''title'', ''Collapse'') :
this.bBtnToggle.setAttribute('...
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
2006 Dec 12
10
Scriptaculous loader ... how to clone it?
.../javascript"
src="''+libraryName+''"></script>'');
},
load: function() {
if((typeof Prototype == ''undefined'') || (typeof Element ==
''undefined'') || (typeof Element.Methods==''undefined'') ||
parseFloat(Prototype.Version.split(".")[0] + "." +
Prototype.Version.split(".")[1]) < 1.5)
throw("modulous requires the Prototype JavaScript framework >=
1.5.0");
$A(document.getElementsByTagName("SCRIPT")).findAll( function(s) {
//aler...
2007 Aug 23
0
10 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_object.c test/trace
..._properties (_global.unescape, "_global", "unescape");
+
+//trace_properties (_global.clearTimeout, "_global", "clearTimeout");
+//trace_properties (_global.enableDebugConsole, "_global", "enableDebugConsole");
+//trace_properties (_global.parseFloat, "_global", "parseFloat");
+//trace_properties (_global.setTimeout, "_global", "setTimeout");
+//trace_properties (_global.showRedrawRegions, "_global", "showRedrawRegions");
+//trace_properties (_global.textRenderer, "_global",...
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...gt;prototype instead of a new static function in isPrototypeOf
Fix an error causing Function.prototype's propflags to not be set
Set Object.constructor to Function.prototype even in v5
Managed to cause Function.__proto__ to not be added in my last commit, fixed
Implement parseFloat function
Initialize setInterval etc. in .as code. Add setTimeout and clearTimeout
Add a test for setTimeout
Add a test for parseFloat
Implement Array's sortOn method, support for multiple fields still missing
Implement sortOn for multiple fields, multiple options s...
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
...lobal.Function.prototype
+ constructor (hp) = _global.Function
+_global.isFinite = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor (hp) = _global.Function
+_global.isNaN = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor (hp) = _global.Function
+_global.parseFloat = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor (hp) = _global.Function
+_global.parseInt = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor (hp) = _global.Function
+_global.setInterval = function
+ __proto__ (hp) = _global.Function.prototype
+ const...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...(B.Opera) ? document.body['client' + D] : document.documentElement['client' + D];
+ if (B.WebKit && !document.evaluate) {
+ // Safari <3.0 needs self.innerWidth/Height
+ dimensions[d] = self['inner' + D];
+ } else if (B.Opera && parseFloat(window.opera.version()) < 9.5) {
+ // Opera <9.5 needs document.body.clientWidth/Height
+ dimensions[d] = document.body['client' + D]
+ } else {
+ dimensions[d] = document.documentElement['client' + D];
+ }
});
return dimensions;
},...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server