Displaying 9 results from an estimated 9 matches for "innerwidth".
2007 Mar 13
3
Prototype question invalid error in IE6
...;'m also using script.aculo.us to make the element move
negatively off the left of the window 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.clientW...
2006 May 30
1
DOM values in ERB Variable?
...ssion 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 Woodward
Email: ejw@statewood...
2007 Apr 04
2
Is Element in Viewing Range
How could I tell if an element is visible? Not visible as in the css display
property, but visible in the browser''s clipping area. So if I had a long
list of columns and wanted to know if the user has to scroll horizontally to
see the last one.
Thanks!
Daniel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
2006 Feb 03
0
Contribute: Center extension to Prototype''s Position object
...ement)
if(!element._centered){
Element.setStyle(element, {position: ''absolute'', 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 = (Posi...
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
...ty/100;
// 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)...
2018 May 25
0
Wine release 3.9
...Added more COM 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 hand...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...lize();
- dimensions[d] = (B.WebKit && !document.evaluate) ? self['inner' + D] :
- (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 {
+ dimen...
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