From skip at bigskypenguin.com Tue Mar 11 23:19:34 2008 From: skip at bigskypenguin.com (Skip Evans) Date: Tue, 11 Mar 2008 23:19:34 -0500 Subject: [Javascript] Changin pop up location? Message-ID: <47D759D6.8050606@bigskypenguin.com> Hey all, Just joined the list so I'll preempt your "welcomes" now: Thank you, thanks, great to see you all. I'm here all weekend at the Flamingo Lounge, enjoy the buffet. Now here's my question. I'm using Scriptaculous to create a pop up with the following class definition: .popup_panel { position: absolute; text-align: left; top: 100px; left: 180px; margin: 0 0 1px 0; border: 2px solid #555; z-index: 100; background-color: #fff; color: #999; } The HTML code used to create the template has an id value of the same name: Then in the javascript I try to adjust the position of the pop up with the following var xpos=e.pageX; var ypos=e.pageY; // set the position of the pop up in the browser. var popup=document.getElementById('popup_panel'); popup.style.top=xpos-50; popup.style.left=ypos-50; It gets the pageX and pageY values fine (tested with a call to alert function), but does not adjust the popup's position beyond what is set in the CSS. Any help would be greatly appreciated. -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison, WI 53703 608-250-2720 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL, AJAX & DHTML development framework. http://phpenguin.bigskypenguin.com/ From peter at brunone.com Wed Mar 12 01:02:17 2008 From: peter at brunone.com (Peter Brunone) Date: Tue, 11 Mar 2008 23:02:17 -0700 Subject: [Javascript] Changin pop up location? Message-ID: <47f7f68231a949e08d8a82e0c09e46c5@maila15.webcontrolcenter.com> Hi Skip, I haven't looked lately, but are pageX and pageY integers or do they include units? If the former, then you may need to add the units since the current standards require them. Just typing out loud here... Peter ---------------------------------------- From: Skip Evans skip at bigskypenguin.com Hey all, Just joined the list so I'll preempt your "welcomes" now: Thank you, thanks, great to see you all. I'm here all weekend at the Flamingo Lounge, enjoy the buffet. Now here's my question. I'm using Scriptaculous to create a pop up with the following class definition: .popup_panel { position: absolute; text-align: left; top: 100px; left: 180px; margin: 0 0 1px 0; border: 2px solid #555; z-index: 100; background-color: #fff; color: #999; } The HTML code used to create the template has an id value of the same name: ... Then in the javascript I try to adjust the position of the pop up with the following var xpos=e.pageX; var ypos=e.pageY; // set the position of the pop up in the browser. var popup=document.getElementById('popup_panel'); popup.style.top=xpos-50; popup.style.left=ypos-50; It gets the pageX and pageY values fine (tested with a call to alert function), but does not adjust the popup's position beyond what is set in the CSS. Any help would be greatly appreciated. -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison, WI 53703 608-250-2720 http://bigskypenguin.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.evolt.org/pipermail/javascript/attachments/20080311/17e41abd/attachment.htm From skip at bigskypenguin.com Wed Mar 12 09:41:21 2008 From: skip at bigskypenguin.com (Skip Evans) Date: Wed, 12 Mar 2008 09:41:21 -0500 Subject: [Javascript] Changin pop up location? In-Reply-To: <47f7f68231a949e08d8a82e0c09e46c5@maila15.webcontrolcenter.com> References: <47f7f68231a949e08d8a82e0c09e46c5@maila15.webcontrolcenter.com> Message-ID: <47D7EB91.8080209@bigskypenguin.com> Hey Peter & all, Yup! That did it. I don't know I missed that since I did use +'px' for the width!!! D'oh!!! Thanks much! Skip Peter Brunone wrote: > Hi Skip, > > I haven't looked lately, but are pageX and pageY integers or do they include units? If the former, then you may need to add the units since the current standards require them. > > Just typing out loud here... > > Peter > > ---------------------------------------- > > From: Skip Evans skip at bigskypenguin.com > > Hey all, > > Just joined the list so I'll preempt your > "welcomes" now: > > Thank you, thanks, great to see you all. I'm here > all weekend at the Flamingo Lounge, enjoy the buffet. > > Now here's my question. I'm using Scriptaculous to > create a pop up with the following class definition: > > .popup_panel { > position: absolute; > text-align: left; > top: 100px; > left: 180px; > margin: 0 0 1px 0; > border: 2px solid #555; > z-index: 100; > background-color: #fff; > color: #999; > } > > The HTML code used to create the template has an > id value of the same name: > > ... > > Then in the javascript I try to adjust the > position of the pop up with the following > > var xpos=e.pageX; > var ypos=e.pageY; > > // set the position of the pop up in the browser. > var popup=document.getElementById('popup_panel'); > popup.style.top=xpos-50; > popup.style.left=ypos-50; > > It gets the pageX and pageY values fine (tested > with a call to alert function), but does not > adjust the popup's position beyond what is set in > the CSS. > > Any help would be greatly appreciated. > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Javascript mailing list > Javascript at lists.evolt.org > http://lists.evolt.org/mailman/listinfo/javascript -- Skip Evans Big Sky Penguin, LLC 503 S Baldwin St, #1 Madison, WI 53703 608-250-2720 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL, AJAX & DHTML development framework. http://phpenguin.bigskypenguin.com/ From chettinger at visionary.com Wed Mar 12 16:48:02 2008 From: chettinger at visionary.com (Chris Hettinger) Date: Wed, 12 Mar 2008 16:48:02 -0500 Subject: [Javascript] Point me to the path, resize a div to fill window upon resize Message-ID: <20080312214759.3B253560086@pop.visionary.com> Good afternoon, I am new to the list. I am working on a project for a client, for which I will be drawing a page with a Microsoft Virtual Earth map as the main element after the page header. Below the map will be grid of data. An illustration of what I am looking for can be viewed by visiting www.redfin.com . Complete a real estate search in one of their markets; you will be taken to a results page that fills the browser with a map, a summary box to the right and grid of data below. I need to recreate one aspect of what they are doing, that is on window resize, I must grow/shrink the map div to fill the browser window. What I am hoping for is that someone could point me to a good resource article, tutorial size, or bit of pseudo code. . I'm comfortable digging through doc and language references for more detail. I've not know exactly the best keywords to search for find relevant results. Thanks in advance, -- Chris Hettinger Project Manager chettinger at visionary.com Visionary Service, Inc. www.visionary.com p: 515.369.3545 x 113 t: 888.303.2848 x 113 f: 515.369.3546 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.evolt.org/pipermail/javascript/attachments/20080312/31326685/attachment.html From rer at datacompusa.com Wed Mar 12 20:14:13 2008 From: rer at datacompusa.com (Roger Roelofs) Date: Wed, 12 Mar 2008 21:14:13 -0400 Subject: [Javascript] Point me to the path, resize a div to fill window upon resize In-Reply-To: <20080312214759.3B253560086@pop.visionary.com> References: <20080312214759.3B253560086@pop.visionary.com> Message-ID: <47D87FE5.4030202@datacompusa.com> Chris, Chris Hettinger wrote: > An illustration of what I am looking for can be viewed by visiting > www.redfin.com . Complete a real estate search > in one of their markets; you will be taken to a results page that > fills the browser with a map, a summary box to the right and grid of > data below. > > > > I need to recreate one aspect of what they are doing, that is on > window resize, I must grow/shrink the map div to fill the browser window. > Using the css width property in percent #map { width: 100%; } will get the layout you want. Although you will probably need to specify a minimum width, which is more challenging in css assuming you want to support ie6. The other issue is that you will probably want to recompute the map, so you will need to attach a handler to the window's resize event By the way, redfin is doing a poor job of browser sniffing and giving me a fixed width layout in firefox 3 because it says I'm using an 'unsupported' browser. and I should go download firefox :-). -- Roger Roelofs Datacomp Appraisal Services 3215 Eaglecrest, NE E: rer at datacompusa.com Grand Rapids, MI 49525 W: http://www.datacompusa.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.evolt.org/pipermail/javascript/attachments/20080312/23822fa9/attachment.htm From philthathril at gmail.com Thu Mar 13 09:00:37 2008 From: philthathril at gmail.com (Philip Thompson) Date: Thu, 13 Mar 2008 09:00:37 -0500 Subject: [Javascript] Point me to the path, resize a div to fill window upon resize In-Reply-To: <20080312214759.3B253560086@pop.visionary.com> References: <20080312214759.3B253560086@pop.visionary.com> Message-ID: <2565F116-1A72-485F-B23A-20BE77ED4BAC@gmail.com> On Mar 12, 2008, at 4:48 PM, Chris Hettinger wrote: > Good afternoon, I am new to the list. > > I am working on a project for a client, for which I will be drawing > a page with a Microsoft Virtual Earth map as the main element after > the page header. Below the map will be grid of data. > > An illustration of what I am looking for can be viewed by visiting www.redfin.com > . Complete a real estate search in one of their markets; you will be > taken to a results page that fills the browser with a map, a summary > box to the right and grid of data below. > > I need to recreate one aspect of what they are doing, that is on > window resize, I must grow/shrink the map div to fill the browser > window. > > What I am hoping for is that someone could point me to a good > resource article, tutorial size, or bit of pseudo code. > > ? I?m comfortable digging through doc and language references for > more detail. I?ve not know exactly the best keywords to search for > find relevant results. > > Thanks in advance, > > -- > Chris Hettinger I'll start off by saying that I'm no expert by any means - PHP is my forte. Now that that's out of the way, I do this exact thing in the application I'm working on now. This seems to work in FF2 (haven't tested 3), IE 6 and 7 and Safari. I begin with a page that has a div ("alert") that I initially set display:none. Upon an alert being prompted, I call promptAlert, which grabs window dimensions and displays whatever message I'm needing to display. Example... [html] [/html] [CSS] #alert { background: #FFF url('../images/background-line.gif') repeat; border: solid 3px red; left: 0; opacity: .7; filter:alpha(opacity=70); margin: 0; padding: 0; position: absolute; top: 0; width: 100%; z-index: 1000; } #alertContent { background: #000; border: solid 3px red; color: #FFF; font-size: 12pt; font-weight: bold; margin: auto; opacity: 1; filter:alpha(opacity=100); padding: 10px; position: relative; text-align: left; width: 40%; z-index: 1001; } [/CSS] [js] var SHOW_ALERT = true; var ALERT_MSG = ''; function promptAlert (cancel, fields) { var theWindow = windowDimensions(); var scrolling = getScrollXY(); var msg = document.getElementById('alertMsg'); msg.innerHTML = ALERT_MSG; var alertDiv = document.getElementById('alert'); resizeElement (alertDiv, theWindow['w'] + scrolling['x'], theWindow['h'] + scrolling['y']); alertDiv.style.position = 'absolute'; alertDiv.style.display = ''; opacity ('alert', 0, 70, 0); opacity ('body', 100, 50, 300); var alertContent = document.getElementById('alertContent'); var alertDims = elementDimensions('alertContent'); alertContent.style.top = ((theWindow['h'] / 2) - alertDims['h']) + 'px'; if (SHOW_ALERT) { SHOW_ALERT = false; window.onresize = promptAlert; } } function resizeElement (element, w, h) { if (!element) { return false; } element.style.width = w+'px'; element.style.height = h+'px'; } function processAlert () { changeOpacity (100, 'body'); opacity ('alert', 100, 0, 100); if (!SHOW_ALERT) { SHOW_ALERT = true; window.onresize = null; ALERT_MSG = ''; } document.getElementById('alert').style.display = 'none'; var form = document.alertForm; if (form.call_method && document.pressed == 'okAlertBtn') { window[form.call_method.value](); } return; } [/js] The opacity function does a transition of element opacity from the specified values - it's just for *looks*. Notice in the last line of promptAlert I specify the onresize event: window.onresize = promptAlert. Be sure to unset this value when it's no longer needed. Otherwise, every time your user resizes, this alert will pop up. I unset mine in processAlert by specifying: window.onresize = null. There is one bug in this which I can't quite figure out. Let's say your page scrolls. If you're at the top of the page (not scrolled down), then the partially-transparent message that covers the page only covers the current viewing area - not the area below. So, if you scroll down, then it's not covered by the alert window. Anyway, I'm sure that was way more than anyone needed. Hope it helps. If you need help with the functions for setting the opacity or whatever, lemme know. ~Philip From chettinger at visionary.com Thu Mar 13 09:29:47 2008 From: chettinger at visionary.com (Chris Hettinger) Date: Thu, 13 Mar 2008 09:29:47 -0500 Subject: [Javascript] Point me to the path, resize a div to fill window upon resize In-Reply-To: <2565F116-1A72-485F-B23A-20BE77ED4BAC@gmail.com> Message-ID: <20080313142947.C3E75560093@pop.visionary.com> Thank you Roger and Philip for your responses. Roger, you hit the nail on the head with "The other issue is that you will probably want to recompute the map, so you will need to attach a handler to the window's resize event". This is the hurdle for me right now, which functions to use to get and compute the pixel measurements of available space and the current map div. Perhaps I'll find some of that in Philips examples. Philip, I will work with this and your examples today and report back. Thank so much for taking the time to share this code. -- Chris Hettinger chettinger at visionary.com Visionary Service, Inc. 515-369-3545 x 113 -----Original Message----- From: javascript-bounces at lists.evolt.org [mailto:javascript-bounces at lists.evolt.org] On Behalf Of Philip Thompson Sent: Thursday, March 13, 2008 9:01 AM To: JavaScript List Subject: Re: [Javascript] Point me to the path,resize a div to fill window upon resize On Mar 12, 2008, at 4:48 PM, Chris Hettinger wrote: > Good afternoon, I am new to the list. > > I am working on a project for a client, for which I will be drawing > a page with a Microsoft Virtual Earth map as the main element after > the page header. Below the map will be grid of data. > > An illustration of what I am looking for can be viewed by visiting www.redfin.com > . Complete a real estate search in one of their markets; you will be > taken to a results page that fills the browser with a map, a summary > box to the right and grid of data below. > > I need to recreate one aspect of what they are doing, that is on > window resize, I must grow/shrink the map div to fill the browser > window. > > What I am hoping for is that someone could point me to a good > resource article, tutorial size, or bit of pseudo code. > > . I'm comfortable digging through doc and language references for > more detail. I've not know exactly the best keywords to search for > find relevant results. > > Thanks in advance, > > -- > Chris Hettinger I'll start off by saying that I'm no expert by any means - PHP is my forte. Now that that's out of the way, I do this exact thing in the application I'm working on now. This seems to work in FF2 (haven't tested 3), IE 6 and 7 and Safari. I begin with a page that has a div ("alert") that I initially set display:none. Upon an alert being prompted, I call promptAlert, which grabs window dimensions and displays whatever message I'm needing to display. Example... [html] [/html] [CSS] #alert { background: #FFF url('../images/background-line.gif') repeat; border: solid 3px red; left: 0; opacity: .7; filter:alpha(opacity=70); margin: 0; padding: 0; position: absolute; top: 0; width: 100%; z-index: 1000; } #alertContent { background: #000; border: solid 3px red; color: #FFF; font-size: 12pt; font-weight: bold; margin: auto; opacity: 1; filter:alpha(opacity=100); padding: 10px; position: relative; text-align: left; width: 40%; z-index: 1001; } [/CSS] [js] var SHOW_ALERT = true; var ALERT_MSG = ''; function promptAlert (cancel, fields) { var theWindow = windowDimensions(); var scrolling = getScrollXY(); var msg = document.getElementById('alertMsg'); msg.innerHTML = ALERT_MSG; var alertDiv = document.getElementById('alert'); resizeElement (alertDiv, theWindow['w'] + scrolling['x'], theWindow['h'] + scrolling['y']); alertDiv.style.position = 'absolute'; alertDiv.style.display = ''; opacity ('alert', 0, 70, 0); opacity ('body', 100, 50, 300); var alertContent = document.getElementById('alertContent'); var alertDims = elementDimensions('alertContent'); alertContent.style.top = ((theWindow['h'] / 2) - alertDims['h']) + 'px'; if (SHOW_ALERT) { SHOW_ALERT = false; window.onresize = promptAlert; } } function resizeElement (element, w, h) { if (!element) { return false; } element.style.width = w+'px'; element.style.height = h+'px'; } function processAlert () { changeOpacity (100, 'body'); opacity ('alert', 100, 0, 100); if (!SHOW_ALERT) { SHOW_ALERT = true; window.onresize = null; ALERT_MSG = ''; } document.getElementById('alert').style.display = 'none'; var form = document.alertForm; if (form.call_method && document.pressed == 'okAlertBtn') { window[form.call_method.value](); } return; } [/js] The opacity function does a transition of element opacity from the specified values - it's just for *looks*. Notice in the last line of promptAlert I specify the onresize event: window.onresize = promptAlert. Be sure to unset this value when it's no longer needed. Otherwise, every time your user resizes, this alert will pop up. I unset mine in processAlert by specifying: window.onresize = null. There is one bug in this which I can't quite figure out. Let's say your page scrolls. If you're at the top of the page (not scrolled down), then the partially-transparent message that covers the page only covers the current viewing area - not the area below. So, if you scroll down, then it's not covered by the alert window. Anyway, I'm sure that was way more than anyone needed. Hope it helps. If you need help with the functions for setting the opacity or whatever, lemme know. ~Philip _______________________________________________ Javascript mailing list Javascript at lists.evolt.org http://lists.evolt.org/mailman/listinfo/javascript From java.script at cutterscrossing.com Thu Mar 13 09:37:06 2008 From: java.script at cutterscrossing.com (Cutter (JSRelated)) Date: Thu, 13 Mar 2008 09:37:06 -0500 Subject: [Javascript] Point me to the path, resize a div to fill window upon resize In-Reply-To: <20080313142947.C3E75560093@pop.visionary.com> References: <20080313142947.C3E75560093@pop.visionary.com> Message-ID: <47D93C12.2050809@cutterscrossing.com> Perhaps you can look at JQuery and it's Dimensions plugin for assistance?... Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _____________________________ http://blog.cutterscrossing.com Chris Hettinger wrote: > Thank you Roger and Philip for your responses. > > Roger, you hit the nail on the head with "The other issue is that you will > probably want to recompute the map, so you will need to attach a handler to > the window's resize event". This is the hurdle for me right now, which > functions to use to get and compute the pixel measurements of available > space and the current map div. > > Perhaps I'll find some of that in Philips examples. > > Philip, I will work with this and your examples today and report back. Thank > so much for taking the time to share this code. > From tedd at sperling.com Thu Mar 13 15:37:41 2008 From: tedd at sperling.com (tedd) Date: Thu, 13 Mar 2008 16:37:41 -0400 Subject: [Javascript] Point me to the path, resize a div to fill window upon resize In-Reply-To: <2565F116-1A72-485F-B23A-20BE77ED4BAC@gmail.com> References: <20080312214759.3B253560086@pop.visionary.com> <2565F116-1A72-485F-B23A-20BE77ED4BAC@gmail.com> Message-ID: At 9:00 AM -0500 3/13/08, Philip Thompson wrote: >-snip- a lot of good looking code > >Anyway, I'm sure that was way more than anyone needed. Hope it helps. >If you need help with the functions for setting the opacity or >whatever, lemme know. ~Philip: I'm not sure what your code was trying to do -- I tried it and zip. Can you explain? Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From philthathril at gmail.com Thu Mar 13 16:44:51 2008 From: philthathril at gmail.com (Philip Thompson) Date: Thu, 13 Mar 2008 16:44:51 -0500 Subject: [Javascript] Point me to the path, resize a div to fill window upon resize In-Reply-To: References: <20080312214759.3B253560086@pop.visionary.com> <2565F116-1A72-485F-B23A-20BE77ED4BAC@gmail.com> Message-ID: On Mar 13, 2008, at 3:37 PM, tedd wrote: > At 9:00 AM -0500 3/13/08, Philip Thompson wrote: > >> -snip- a lot of good looking code >> >> Anyway, I'm sure that was way more than anyone needed. Hope it helps. >> If you need help with the functions for setting the opacity or >> whatever, lemme know. > > > ~Philip: > > I'm not sure what your code was trying to do -- I tried it and zip. > Can you explain? > > Cheers, > > tedd Nice to see you over here, Tedd. ;) Well, I didn't include all the code, so it's not going to work. However, if you'd like all of it, then write me off-list. ~Philip From tam_soft at yahoo.co.in Fri Mar 14 02:46:46 2008 From: tam_soft at yahoo.co.in (Tamilarasi Elumalai) Date: Fri, 14 Mar 2008 13:16:46 +0530 (IST) Subject: [Javascript] doubt about page height Message-ID: <701088.11530.qm@web94611.mail.in2.yahoo.com> An HTML attachment was scrubbed... URL: http://lists.evolt.org/pipermail/javascript/attachments/20080314/d6fc1238/attachment.html From rer at datacompusa.com Fri Mar 14 05:54:44 2008 From: rer at datacompusa.com (Roger Roelofs) Date: Fri, 14 Mar 2008 06:54:44 -0400 Subject: [Javascript] doubt about page height In-Reply-To: <701088.11530.qm@web94611.mail.in2.yahoo.com> References: <701088.11530.qm@web94611.mail.in2.yahoo.com> Message-ID: <98446871-20B9-4007-8C6E-D6B929DBB81F@datacompusa.com> Welcome! On Mar 14, 2008, at 3:46 AM, Tamilarasi Elumalai wrote: > am using div control to place all my web page content and set its > width as 80% and center align. but i couldnot set page height for > all size of browser. > This is more likely a css question, and you will get more complete answers on the CSS-D mailing list at http://css-discuss.org/. The short answer is that you must set height: 100%; on html, body and any other element that contains the div you are trying to position. In most cases I recommend against setting the height because it puts the scroll bar on your content rather than on the window where users expect it. hth -- Roger Roelofs Datacomp/MHVillage -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.evolt.org/pipermail/javascript/attachments/20080314/87215b06/attachment.htm From davidh126 at writeme.com Sat Mar 15 16:04:06 2008 From: davidh126 at writeme.com (David Hucklesby) Date: Sat, 15 Mar 2008 14:04:06 -0700 Subject: [Javascript] doubt about page height In-Reply-To: <98446871-20B9-4007-8C6E-D6B929DBB81F@datacompusa.com> Message-ID: <20083151446.821866@DAVIDS> On Fri, 14 Mar 2008 06:54:44 -0400, Roger Roelofs wrote: > Welcome! > On Mar 14, 2008, at 3:46 AM, Tamilarasi Elumalai wrote: >> >> >> am using div control to place all my web page content and set its width as 80% and >> center align. but i couldnot set page height for all size of browser. >> > > This is more likely a css question, and you will get more complete answers on the CSS-D > mailing list at http://css-discuss.org/. The short answer is that you must set > height: 100%; on html, body and any other element that contains the div you are trying > to position. > > > In most cases I recommend against setting the height because it puts the scroll bar on > your content rather than on the window where users expect it. > Roger is correct if you use "height" on the content DIV, except for IE 5.x and 6, which tend to treat "height" similar to "min-height". Solution: Use 100% on html and body as suggested, then add: #wrapper {min-height: 100%;} /* for modern browsers */ * html #wrapper {height: 100%;} /* for IE 5 and 6 Win */ (Assuming your centered DIV has an ID of "wrapper".) Cordially, David -- From peter at brunone.com Mon Mar 17 09:03:56 2008 From: peter at brunone.com (Peter Brunone) Date: Mon, 17 Mar 2008 07:03:56 -0700 Subject: [Javascript] "Click to activate" for Quicktime in IE7 Message-ID: <8673716cbea248809078e8f7648c418a@maila15.webcontrolcenter.com> I've recently come up against this problem and none of the purported solutions seem to work. Basically, I have a quicktime ActiveX control on the page and I want to assign a .mov file to it using the SetURL method. The problem, of course, is that the QT control must be clicked before I can do this (some stupid patent lawsuit that forced MS to change the way they implement this functionality). This makes for a jerky user experience. I've tried the replacing the object's outerHTML, I've tried writing the entire tag with Javascript, and I've tried a simple object.focus() or object.select() call -- even tried calling the click event on the object itself -- and nothing seems to get around this little roadblock (or perhaps it's more of a speed bump). Has anyone gotten IE7 to play the movie without a user click? TIA, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.evolt.org/pipermail/javascript/attachments/20080317/00dd11e1/attachment.html From tam_soft at yahoo.co.in Tue Mar 18 07:20:44 2008 From: tam_soft at yahoo.co.in (Tamilarasi Elumalai) Date: Tue, 18 Mar 2008 17:50:44 +0530 (IST) Subject: [Javascript] how to get browser height Message-ID: <323220.70893.qm@web94614.mail.in2.yahoo.com> An HTML attachment was scrubbed... URL: http://lists.evolt.org/pipermail/javascript/attachments/20080318/d4d0a068/attachment.htm From peter at brunone.com Tue Mar 18 08:07:31 2008 From: peter at brunone.com (Peter Brunone) Date: Tue, 18 Mar 2008 06:07:31 -0700 Subject: [Javascript] how to get browser height Message-ID: <8dc35e032a904a1a839bf330623ab3cf@maila15.webcontrolcenter.com> You know, everywhere I look I see "use document.body.clientHeight or document.body.offsetHeight", but those don't seem to do the job. In IE, they don't account for some of the browser chrome, and in Firefox, they measure the entire scroll height of the body element. The best I can find is window.resizeTo(width, height) which will set the window's dimensions to the integers that you specify. That isn't what you asked for, but maybe it will help a little...? Peter ---------------------------------------- From: Tamilarasi Elumalai Sent: Tuesday, March 18, 2008 7:24 AM To: javascript at lists.evolt.org Subject: [Javascript] how to get browser height hi friends, i am trying to get browser height using java script. I have used screen.availHeight. but it doesn't return correct height of the browsers. when i resized my browser it seems the same value even the height is very lower .. is there any way to find exact browser height . its should be excluded the task bar. please help me. its urgent thanks & regards Tamilarasi.E ---------------------------------------- Unlimited freedom, unlimited storage. Get it now -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.evolt.org/pipermail/javascript/attachments/20080318/64664652/attachment.html From schneegans at internetique.com Tue Mar 18 09:49:30 2008 From: schneegans at internetique.com (Claude Schneegans) Date: Tue, 18 Mar 2008 10:49:30 -0400 Subject: [Javascript] how to get browser height In-Reply-To: <323220.70893.qm@web94614.mail.in2.yahoo.com> References: <323220.70893.qm@web94614.mail.in2.yahoo.com> Message-ID: <47DFD67A.7030209@internetique.com> I'm using this at my satisfaction for a slide show page: maxHeight = (window.innerHeight ? window.innerHeight : document.body.offsetHeight); -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: piegeacon at internetique.com) Thanks. From tam_soft at yahoo.co.in Tue Mar 18 23:23:05 2008 From: tam_soft at yahoo.co.in (Tamilarasi Elumalai) Date: Wed, 19 Mar 2008 09:53:05 +0530 (IST) Subject: [Javascript] how to get browser height In-Reply-To: <47DFD67A.7030209@internetique.com> Message-ID: <349881.10527.qm@web94602.mail.in2.yahoo.com> An HTML attachment was scrubbed... URL: http://lists.evolt.org/pipermail/javascript/attachments/20080319/ba818b7e/attachment.htm From lester at denhaag.org Wed Mar 19 06:51:57 2008 From: lester at denhaag.org (J. Lester Novros II) Date: Wed, 19 Mar 2008 12:51:57 +0100 Subject: [Javascript] how to get browser height In-Reply-To: <349881.10527.qm@web94602.mail.in2.yahoo.com> References: <349881.10527.qm@web94602.mail.in2.yahoo.com> Message-ID: <47E0FE5D.1030405@denhaag.org> Tamilarasi Elumalai wrote: > thank you for your reply. but this maxHeight always returns 24. i think > its cant be a browser's height. Assuming you want the height of the viewport [the area where a browser displays its pages], try document.documentElement.clientHeight. l8R lES -- Trotting out new, unfinished technologies and dropping older, unfinished technologies and charging for it is Microsoft's bread and butter. It's one big hamster wheel. /. comment http://www.supermarionation.tv From tam_soft at yahoo.co.in Wed Mar 19 07:01:28 2008 From: tam_soft at yahoo.co.in (Tamilarasi Elumalai) Date: Wed, 19 Mar 2008 17:31:28 +0530 (IST) Subject: [Javascript] how to get browser height In-Reply-To: <47E0FE5D.1030405@denhaag.org> Message-ID: <878310.4075.qm@web94616.mail.in2.yahoo.com> An HTML attachment was scrubbed... URL: http://lists.evolt.org/pipermail/javascript/attachments/20080319/371db4cc/attachment.html From info at professionalwebpages.biz Sun Mar 23 20:18:33 2008 From: info at professionalwebpages.biz (Professional Web Pages - Information) Date: Mon, 24 Mar 2008 12:18:33 +1100 Subject: [Javascript] Javascript and CSS Message-ID: <003001c88d4c$fabc8970$6401a8c0@hawkeye> To whom it may concern, I am trying to obtain an element with Javascript but would also like to include certain classs with the element to weed out the specific element For example in css you can do this " #CntOverlayExpandedInformationContainer .InformationContainer" and that will identify a certain div with a specific class on it. Currently I do not know how to do this with javascript - could someone please make a recommendation. my current code is(but it only returns that div not the div with the class) var eEicShowContainerHider; eEicShowContainerHider = document.getElementById("CntOverlayExpandedInformationContainer"); Thank you for any responses Regards GT -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.evolt.org/pipermail/javascript/attachments/20080324/f5d91c40/attachment.htm From paul at juniperwebcraft.com Mon Mar 24 00:24:00 2008 From: paul at juniperwebcraft.com (Paul Novitski) Date: Sun, 23 Mar 2008 22:24:00 -0700 Subject: [Javascript] Javascript and CSS In-Reply-To: <22470836.1206321627285.JavaMail.root@m04> References: <22470836.1206321627285.JavaMail.root@m04> Message-ID: <3289180921-366887459@mail.columbiawireless.ca> At 3/23/2008 06:18 PM, Professional Web Pages - Information wrote: >I am trying to obtain an element with Javascript but would also like >to include certain classs with the element to weed out the specific element > >For example > >in css you can do this > >" #CntOverlayExpandedInformationContainer .InformationContainer" Hi GT, You can retrieve the class of an element with the className property, e.g. var eEicShowContainerHider = document.getElementById("CntOverlayExpandedInformationContainer"); // not found? if (!eEicShowContainerHider) return alert('Hider not found'); // get the element's class (will be null if no class name exists) var sClass = eEicShowContainerHider.className; // locate the desired class name as a discrete word var rRegExp = /(^|\s)InformationContainer(\s|$)/; // if there is a class and it's the one we're seeking... if (sClass && rRegExp.test(sClass)) { ... } I've used a regular expression to test for the desired class name to accommodate the fact that an element's class attribute can contain more than one class name, e.g.: