search for: innerheight

Displaying 8 results from an estimated 8 matches for "innerheight".

2007 Mar 13
3
Prototype question invalid error in IE6
...ow to create a scrolling effect. It works fine in Firefox, but I keep getting an Invalid argument error in IE6. Here my margin code in the header: var winWidth, winHeight, d=document; if (typeof window.innerWidth!=''undefined'') { winWidth = window.innerWidth; winHeight = window.innerHeight; } else { if (d.documentElement && typeof d.documentElement.clientWidth!=''undefined'' && d.documentElement.clientWidth!=0) { winWidth = d.documentElement.clientWidth winHeight = d.documentElement.clientHeight } else { if (d.body && typeof d.b...
2006 May 30
1
DOM values in ERB Variable?
...the user''s session file with a form_remote_tag call as follows: <%= form_remote_tag :url => url_for(:controller => "welcome", :action => "login", :iheight => "1", :iwidth => "2") %> But how do I get the DOM data for window.innerHeight and window.innerWidth into an ruby ERB variable such that I can put into the helper, and POST them in to the controller? Or is there a better way? I feel like I am missing some really simple here. Anyone come up against this, and / or know the answer? If so, please help. --ejw Eric Woodw...
2008 Jan 19
5
Open a (redbox) modal popup from inside a controller?
Hi, I''m trying to open a modal popup window using redbox to display a styled notification/alert to the user. The helpers in the redbox documentation only describe how to open a redbox when the user clicks on a link, e.g., link_to_redbox() or link_to_remote_redbox(). Is there any way to open a redbox, or a different type rails- compatible modal popup, from inside a controller action?
2006 Feb 03
0
Contribute: Center extension to Prototype''s Position object
...;, zIndex: options.zIndex }); element._centered = true; } var dims = Element.getDimensions(element); Position.prepare(); var winWidth = self.innerWidth || document.documentElement.clientWidth || document.body.clientWidth || 0; var winHeight = self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight || 0; var offLeft = (Position.deltaX + Math.floor((winWidth-dims.width )/2)); var offTop = (Position.deltaY + Math.floor((winHeight-dims.height )/2)); element.style.top = ((offTop != null && offTo...
2006 Feb 18
0
Move element into view
...sition des dargestellten Ausschnitts relativ zum gesamten Dokument var screen_bottom, screen_height, screen_scrolled; if (isIE){ screen_height = document.documentElement.clientHeight; screen_scrolled = document.documentElement.scrollTop; } else { screen_height = window.innerHeight; screen_scrolled = window.pageYOffset; } screen_bottom = screen_scrolled + screen_height; // Obere Kante des Elements sichtbar und Position des Elements + seine Höhe < screen_bottom // => Element wird schon komplett dargestellt if (element_kante_oben > screen_scr...
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"
2005 Dec 15
1
Some handy methods - perhaps cool enough to be committed some time
...Safari 1.2, newer firefox and Mozilla, CSS3 element.style.opacity = opacity/100; } }) var System={ getWindowSize:function(){ //var mywindow=window.parent; if (navigator.appName=="Netscape") { return new Geometry.Size(window.innerWidth,window.innerHeight); } if (navigator.appName.indexOf("Microsoft")!=-1) { return new Geometry.Size(document.body.offsetWidth,document.body.offsetHeight); } }, getScreenSize:function(availableSpaceOnly){ if(availableSpaceOnly) return new Geometr...
2018 May 25
0
Wine release 3.9
...aggregation tests. mshtml.idl: Added IHTMLCSSStyleDeclaration declaration. mshtml.idl: Added IHTMLWindow7 declaration. mshtml: Added IHTMLWindow7 stub implementation. mshtml: Implement supported IHTMLWindow7 event properties. mshtml: Added IHTMLWindow7::innerWidth and innerHeight implementation. mshtml: Expose IHTMLWindow7 interface to scripts. urlmon/tests: Handle ERROR_INTERNET_INVALID_CA security problem in https tests. urlmon/tests: Use the same thread for both connections in redirect tests. urlmon: Ensure that inner protocol handler reference is...