473,320 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

window.onresize problem in IE6

Hi,

I'm using chunked transfer-coding to send an "unending" page, but IE
_NEVER_ fires onresize events until the page is finished.
Unfortunately, the page never is "finished". How do I handle this?
Feb 21 '06 #1
8 7838
David Gravereaux wrote:
I'm using chunked transfer-coding to send an "unending" page, but IE
_NEVER_ fires onresize events until the page is finished.
Unfortunately, the page never is "finished". How do I handle this?


Not possible. Why do you think you need `onresize' anyway?
PointedEars
Feb 21 '06 #2
On Tue, 21 Feb 2006 15:46:37 +0100, Thomas 'PointedEars' Lahn
<Po*********@web.de> wrote:
David Gravereaux wrote:
I'm using chunked transfer-coding to send an "unending" page, but IE
_NEVER_ fires onresize events until the page is finished.
Unfortunately, the page never is "finished". How do I handle this?


Not possible. Why do you think you need `onresize' anyway?


Because the user is resizing the window and the pertinent text falls
out of view. onresize events work fine when the chunked transfer is
over, though.

Try it (about 3 minute of log playback):
http://www.pobox.com/~davygrvy/chat
Feb 21 '06 #3
David Gravereaux wrote:
[...] Thomas 'PointedEars' Lahn [...] wrote:
David Gravereaux wrote:
I'm using chunked transfer-coding to send an "unending" page, but IE
_NEVER_ fires onresize events until the page is finished.
Unfortunately, the page never is "finished". How do I handle this? Not possible. Why do you think you need `onresize' anyway?


Because the user is resizing the window and the pertinent text falls
out of view.


Well, that happens also if client-side script support is not available, or
if `onresize' as a host-defined property is not supported. Or on numerous
other occasions.
onresize events work fine when the chunked transfer is over, though.
I am not sure if this helps, but have you tried the scroll*() methods?
Try it (about 3 minute of log playback):
http://www.pobox.com/~davygrvy/chat


I am redirected to http://69.181.232.71/chat and get "no such path" as
plain text response. Probably I am too late.
PointedEars
Feb 22 '06 #4
On Wed, 22 Feb 2006 15:30:24 +0100, Thomas 'PointedEars' Lahn
<Po*********@web.de> wrote:
I am redirected to http://69.181.232.71/chat and get "no such path" as
plain text response. Probably I am too late.


sorry, just changed that a few minutes ago, actually:

http://69.181.232.71/chat/logtest
Feb 22 '06 #5
David Gravereaux wrote:
[...] Thomas 'PointedEars' Lahn [...] wrote:
I am redirected to http://69.181.232.71/chat and get "no such path" as
plain text response. Probably I am too late.


sorry, just changed that a few minutes ago, actually:

http://69.181.232.71/chat/logtest


You are using the public identifier for HTML 4.01 Transitional and the
system identifier for HTML 4.01 Strict. You cannot have the cake and
eat it.

`script' element content, which is CDATA, should not and need not to be
tried to commented out with `<!-- ... -->'.

Your CSS code is not Valid, and you use colors that are not True Web-Safe.

Try triggering the automatic scroll-down feature with window.setInterval()
or a repeated window.setTimeout() (use interval/timeout values greater than
or equal to 50 ms). You should then clear the interval or timeout if the
`scroll' event or any mouse or keyboard event occurs.

Accesses to properties of Components.classes is not going to work in
unprivileged script; and without having the script signed or the user
agent's security restrictions lowered per pref, you will not be able to
get the UniversalXPConnect privilege for your script. As indicated by
your source code itself:

| // to do this add this line to your prefs.js file in your firefox/mozilla
| user profile directory
| // user_pref("signed.applets.codebase_principal_suppo rt", true);
| // or change it from within the browser with calling the "about:config"
| page

The JavaScript 1.6 script engine in my Firefox 1.5.0.1/Linux, for example,
always throws the exception. Tested with

javascript:void(netscape.security.PrivilegeManager .enablePrivilege('UniversalXPConnect'));

| uncaught exception: A script from "http://69.181.232.71" was denied
| UniversalXPConnect privileges.

Therefore, `undefined' is returned always here:

| /* this important but stands has been nowhere clearly mentioned: */
| try {
| netscape.security.PrivilegeManager.enablePrivilege ('UniversalXPConnect');
| }
| catch (errorObject) {
| return;
| }

See
<URL:http://developer.mozilla.org/en/docs/Bypassing_Security_Restrictions_and_Signing_Code>
for details.

BTW: I also get

| Warning: function getRef does not always return a value
| Source file: http://69.181.232.71/chat/logtest
| Line: 107, Column: 1
| Source code:
| }
| --^

You should return `null' if other branches return object references, not
`undefined'.
HTH

PointedEars
Feb 22 '06 #6
On Wed, 22 Feb 2006 16:26:29 +0100, Thomas 'PointedEars' Lahn
<Po*********@web.de> wrote:
Your CSS code is not Valid, and you use colors that are not True Web-Safe.


Thanks for the code review. You gave me a lot to chew on. If by CSS
not valid, you mean the IE-only DHTML expression for the .reverse
class, I know, but there's no available behavior for that in Moz. I
can live with that error.

What are "True Web-Safe colors"? Do you mean a viable fall-back for
B&W modile phone browsers?

When I run that live (http://www.pobox.com/~davygrvy/chat/tcl), full
24-bit color is possible by the server backend. As I don't know the
broswer capability, isn't it best for the browser to decide how to
interpole "color: rgb(x,y,z)"?

If not, what methods do you suggest? I could interpole on the
server-side for the generation instead.

Thanks for your comments!
Feb 22 '06 #7
Thomas 'PointedEars' Lahn wrote:
<snip>
BTW: I also get

| Warning: function getRef does not always return a value
Mozilla really don't want people to take their warnings seriously or
they would do something about wording them in a way that says something
meaningful instead of stating absolute falsehoods. All javascript
functions return undefined whenever they don't explicitly return
something else so all functions always return a value.
| Source file: http://69.181.232.71/chat/logtest
| Line: 107, Column: 1
| Source code:
| }
| --^

You should return `null' if other branches return object
references, not `undefined'.


Code design-wise, yes it probably should, but it is a pity to see yet
another example of a Mozilla warning that is essentially false.

Richard.
Feb 23 '06 #8
David Gravereaux wrote:
On Wed, 22 Feb 2006 16:26:29 +0100, Thomas 'PointedEars' Lahn
<Po*********@web.de> wrote:
Your CSS code is not Valid, and you use colors that are not True
Web-Safe.
Thanks for the code review. You gave me a lot to chew on.


You are welcome.
If by CSS not valid, you mean the IE-only DHTML expression for
the .reverse class, I know, but there's no available behavior for
that in Moz.
I do think the standards compliant

.reverse {
color:inherit !important;
background-color:inherit !important;
}

instead of the IE-proprietary

.reverse {
color:
expression(this.parentNode.currentStyle.background Color) !important;
background-color:
expression(this.parentNode.currentStyle.color) !important;
}

will work in both UAs.
What are "True Web-Safe colors"?
The 216 colors of the Netscape Web-Safe Colors palette specified with
hexadecimal triplets `#xyz'. Use Google for details.
Do you mean a viable fall-back for B&W modile phone browsers?
Using those colors includes this, but is not limited to it.
When I run that live (http://www.pobox.com/~davygrvy/chat/tcl), full
24-bit color is possible by the server backend.
What has the backend to do with the differences in the actual presentation?
As I don't know the broswer capability, isn't it best for the browser
to decide how to interpole "color: rgb(x,y,z)"?
Not if text is involved.
If not, what methods do you suggest?
I suggest you use the nearest and most similar True Web-Safe color for
each color value instead. That really is not that complicated. It would
suffice in your case if you replaced `00' with `0', `3F' with `3', `7F'
with `6' or `9', `A0' with `9' or `c', and `FF' with `f'. The difference
in color value is negligible, the increased interoperability and therefore
usability is not.
I could interpole on the server-side for the generation instead.


Not understood.
PointedEars
Feb 23 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: David | last post by:
It's sad to say, but when using the AOL web site, like to send an email, they have a nifty capability such that when a window is resized, the textarea where the message is input expands not only...
3
by: Edwin Boersma | last post by:
Hi, I've just installed Netscape 7.1 for Linux and the following script refuses to open a window when I call this function: function OpenLinkWindow() { ...
2
by: Nabil Benamar | last post by:
Hi, can someone help me please. I want to reload th page after resizing the window (Browser). I used the event onresize. The problem the server gets too many requests (on every resize: pixel by...
2
by: Tony | last post by:
If I want to call a function (call it doResize) when the browser window is resized, is it better to put that in the body tag: <body onresize="doResize()"> Or is it better to put the call in a...
2
by: andy.jones | last post by:
Hi I'm new to Javascript and wonder if anyone can give me some help? Im using document.documentElement.clientWidth to get the width of the users browser and it works fine so long as the users...
2
by: yb | last post by:
I am attempting to modify the style of an element (its width) as the window is being resized, in firefox. Long story short, I've tried to use CSS but one particular part of the layout just won't...
7
by: Dr J R Stockton | last post by:
I want page <URL:http://www.merlyn.demon.co.uk/js-quick.htmto open, in IE6, IE7, Firefox 2, and wherever else practicable, with the control labelled F.X0 fully visible at the top of the window and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.