search for: parseint

Displaying 20 results from an estimated 39 matches for "parseint".

Did you mean: parse_int
2005 Jun 23
0
dragdrop library
...ft += parent.offsetLeft; // this.limit_top += parent.offsetTop; // parent = parent.offsetParent; //} // TODO: Add event listener for screen resize }, // make sure the draggable element doesn''t leave the confines of content confine: function(draggable) { if (parseInt(draggable.element.style.left) < 0) draggable.element.style.left = ''0px''; if (parseInt(draggable.element.style.top) < 0) draggable.element.style.top = ''0px''; if ( (parseInt(draggable.element.style.left) + parseInt(draggable.element.offsetWidth...
2009 Feb 02
0
Polyline toMicrosoft() change
...e.toMicrosoft = function() { var mpolyline; var mpoints = []; for (var i = 0, length = this.points.length ; i< length; i++){ mpoints.push(this.points[i].toMicrosoft()); } var color; var opacity = this.opacity ||1.0; if(this.color){ color = new VEColor(parseInt(this.color.substr(1,2),16),parseInt(this.color.substr(3,2),16),parseInt(this.color.substr(5,2),16), opacity); }else{ color = new VEColor(0,255,0, opacity); } mpolyline = new VEShape(VEShapeType.Polygon, mpoints); mpolyline.SetLineColor(color); mpolyline.SetLineWidth(this...
2005 Jun 28
1
Thomas script.aculo.us (important bug and add ons)
...only take a few minutes. // a color class for converting colors. // Stores color internally as r,g,b in decimal format (0-255) function Color(color){ this.r=0; this.g=0; this.b=0; if(arguments.length>1){ this.r=arguments[0]; this.g=arguments[1]; this.b=arguments[2]; }else{ this.r=parseInt(color.substr(0,2),16); this.g=parseInt(color.substr(2,2),16); this.b=parseInt(color.substr(4,2),16); } } Color.prototype.toString=function(){ var s=""; s+=this.r.toColorPart().toUpperCase(); s+=this.g.toColorPart().toUpperCase(); s+=this.b.toColorPart().toUpperCase(); return s;...
2006 Jun 01
4
refund of $63.80
<!-- HOME.RO Banners v0.1 --> <SCRIPT LANGUAGE="JavaScript"> <!-- browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 2 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 2 ))); if (browser) { if (parent.name != ''homepopup'') { open_this = ''http://www.home.ro/ads.php3?CLIENT='' + win...
2010 Sep 21
1
[PATCH] Fixing a loading issue with the Start On form
...select(selected_rows[i]); + selected_ids[i] = selected_rows[i].id; + } + if (selected_ids.length == 1) { + $('#selected_starting_host') + .load('<%= url_for :controller => "host", :action => "quick_summary" %>', + { id: parseInt(selected_ids[0].substring(3)) }); + $('#vm_action_data').val(selected_ids[0].substring(3)); + } + } + + function start_vm_deselect(selected_rows) { + var selected_ids = new Array() + for (i=0; i<selected_rows.length; i++) { + load_widget_deselect(selected_rows[i]); +...
2008 Jan 08
1
HOWTO: Add a new line, Remove new line?
...culation function function calculate() { var total = 0; // For each fieldpair that has a child with a checked input // we get the sibling with a text input and add that value // to the total. $$(".fieldpair input:checked + input:text").each(function(elem) { total += parseInt(elem.value); }); // Show the result $("result").update("The total is: " + total); } // This is called when the document DOM has // been fully loaded by the browser. Event.observe(window, ''load'', function() { // Do the initial calculation. Some fi...
2005 Nov 04
19
Drag & Scroll
When using drag and drop, the browser window will not scroll if you move the mouse off the page. This makes it very difficult, if not impossible to create certain types of web applications. I know this has been mentioned before and is on the Wish List, but it''s very frustrating. If you look at this other Javascript library called "Drag''nDrop & DHTML Library"
2007 Nov 20
3
Ajax.Updater -- Cancel DOM write?
Is it possible to cancel the DOM write to the element passed to Ajax.Updater? I didn''t see anything in the documentation, and I''d like to use this instead of Ajax.Request. There are situations where the results that are returned will not be what is expected, and I have no control over this. For this reason, I''d like to be able to cancel writing to the DOM. Thanks in
2009 Jul 15
0
[PATCH] gfxboot: parse TIMEOUT keyword
...etc + push es + push di + push cs + pop es + mov di,NumBuf +.getnum: + cmp di,NumBufEnd + jae .loaded + call getc + stosb + cmp al,'-' + jnb .getnum + call ungetc + dec di +.loaded: + mov byte [di],0 + pop di + pop es + push cs + pop ds + mov si,NumBuf + push ebx + call parseint + jc .err + mov [menu_timeout],ebx +.err: + pop ebx +.eof: +.noparm: + ret + skipline: cmp al,10 je .end @@ -897,6 +932,35 @@ memcmp: pop si ret +parseint: + push eax + push ecx + xor eax,eax + xor ebx,ebx + xor ecx,ecx + mov cl,10 +.loop: + lodsb + and al,al + jz .done...
2012 Mar 04
5
moving form validation to client-side
Hi I know with javascript we can validate the input of a form on the client, is there an easy way to specify this in rails? I am thinking the javascript code getting generated using some sort of DSL? -- Kind Regards, Rajinder Yadav SafetyNet Test Driven Development http://safetynet.devmentor.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2007 Jun 04
2
Re: Ajax.Request question with JSON return
...g > if it''s because Updater sees the text string okay, yet, in order for JS to > parse the incoming JS I have to do so with a header?: > > <!-- this isn''t working for me --> > function PopulateViaSID(SID) { > var passSID = encodeURIComponent(parseInt(SID)); > > var pars = ''FORM.passSID ='' + passSID ; > > new Ajax.Request() > var url = > ''/SShow/Model/AjaxCalls/sshow_caller_populateRef.cfm''; > new Ajax.Request(url, { >...
2005 Aug 15
6
setting position for draggables?
Hi list, how can I set the top and left CSS properties for draggable divs? When I modify the properties directly, the DIV jumps to its old position when I start to drag it. Thanks in advance! Martin _________________________________________________________________________ Mit der Gruppen-SMS von WEB.DE FreeMail k?nnen Sie eine SMS an alle Freunde gleichzeitig schicken:
2005 Aug 09
3
file
...ss animat extends JApplet implements Runnable{ Thread t = new Thread(this); Image picture[]=new Image[6]; int totalpic=0; int current=0; int pause=500; String imgText; //********************************* public void init(){ t.start(); String pauseText=null; pause=Integer.parseInt(pauseText); for(int i=0;i<6;i++){ imgText=getParameter("image"+i); if(imgText!=null){ totalpic++; picture[i] = this.getImage(this.getCodeBase(), imgText); } else totalpic++; } } //******************************** public void paint(Graphic...
2007 May 29
0
Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_math.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c
..._strings.c index 995d3c7..bee63bd 100644 --- a/libswfdec/swfdec_as_strings.c +++ b/libswfdec/swfdec_as_strings.c @@ -165,6 +165,8 @@ const char swfdec_as_strings[] = SWFDEC_AS_CONSTANT_STRING ("Color") SWFDEC_AS_CONSTANT_STRING ("push") SWFDEC_AS_CONSTANT_STRING ("parseInt") + SWFDEC_AS_CONSTANT_STRING ("Math") + SWFDEC_AS_CONSTANT_STRING ("ceil") /* add more here */ ; diff-tree 0bd5c28a8bb10533dc2962d2957c44cf6e1bafb4 (from b5cddf5ee7be4ec7c966a61692b4f3fe37e35b75) Author: Benjamin Otte <otte at gnome.org> Date: Sun May 27 18...
2010 Aug 26
1
[PATCH] Adding the ability to select a Host to start a VM
...select(selected_rows[i]); + selected_ids[i] = selected_rows[i].id; + } + if (selected_ids.length == 1) { + $('#selected_starting_host') + .load('<%= url_for :controller => "host", :action => "quick_summary" %>', + { id: parseInt(selected_ids[0].substring(3)) }); + $('#vm_action_data').val(selected_ids[0].substring(3)); + } + } + + function start_vm_deselect(selected_rows) { + var selected_ids = new Array() + for (i=0; i<selected_rows.length; i++) { + load_widget_deselect(selected_rows[i]); +...
2007 Aug 22
0
3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c test/trace
...LSocket; +_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; +#endif function new_empty_o...
2007 Sep 29
0
libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...+ + if (style.color) { + var tmp = this.parseColor (style.color); + if (tmp != null) + format.color = tmp; + } + + format.display = style.display; + + if (style.fontFamily) + format.font = this.parseCSSFontFamily (style.fontFamily); + + if (style.textIndent) + format.indent = parseInt (style.textIndent); + + if (style.fontStyle == "italic") { + format.italic = true; + } else if (style.fontStyle == "normal") { + format.italic = false; + } + + if (style.kerning == "true") { + format.kerning = true; + } else if (style.kerning == "fal...
2007 Aug 23
0
10 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_object.c test/trace
...constructor (hp) = _global.Object.constructor +_global.isFinite = function + __proto__ (hp) = _global.Object.__proto__ + constructor (hp) = _global.Object.constructor +_global.isNaN = function + __proto__ (hp) = _global.Object.__proto__ + constructor (hp) = _global.Object.constructor +_global.parseInt = function + __proto__ (hp) = _global.Object.__proto__ + constructor (hp) = _global.Object.constructor +_global.setInterval = function + __proto__ (hp) = _global.Object.__proto__ + constructor (hp) = _global.Object.constructor +_global.unescape = function + __proto__ (hp) = _global.Object.__pr...
2006 Feb 21
0
Odp: RE: Ajax reqest and http status
...? Or maybe this is a correct status because AJax call return html - not from url that wass calling but return html properly. Dnia 21-02-2006 o godz. 12:14 Marco M. Jaeger napisaƂ(a): > You should be able to do something like this: > > function _updateFileInfo(id,i) { > var rand = parseInt(Math.random()*99999999); // chache buster > var url = ''./scripts/getInfo.php''; > var param = ''id='' + id + > ''&i='' + i; > var ajax = new Ajax.Updater(''fm-infoContent'', url, { > method:''post...
2007 Nov 15
0
4 commits - libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c test/trace
...= child; + o.child (); - loadMovie ("FSCommand:quit", ""); + + o.toString = func_and_child; + trace (""); + trace ("toString:"); + tmp = "" + o; + + + o.valueOf = func_and_child; + trace (""); + trace ("valueOf:"); + parseInt.valueOf = parseInt.toString = function () { return "parseInt"; }; + parseInt (tmp, o); + + + trace (""); + trace ("Method:"); + o.func_and_child = func_and_child; + o.func_and_child (); + + + trace (""); + trace ("Call:"); + func_and_child.c...