No, it's not that easy. I want to scroll some selected text (in an autoscroll div) so that it is visible. I can select it without difficulty, but I can not get the selected portion to scroll into view. All the code is visible in the demo I mentioned, but here is the important mehod:
function...
I am trying to make scrollIntoView() work (with selected text in a div), but I am having no luck. I have put up a little demo that shows the problem. It's at:
http://www.wiseware.com/selectTest
FF is my main concern. Of course, I would be happy to find a solution that works in IE, too...
I am working on an app that uses http requests (to local files) to fill a div. The files are large, but not huge (the largest is a little less than 1000KB) but even though there is no error during the request, I find that files larger than ~100kb do not fully load. When I load one of the...
I am not sure this is a cache problem. Unless I am mistaken, what is at issue is the way that FF responds to a failed image load (i.e. when myImage.src is set to a non-existent file name). All four browsers seem to cope with this error properly on the remote server, but locally, FF seems to do...
I found a little image preload utility that works correctly only when the page is accessed remotely. The problem is with its error handling function. If one of the images to be preloaded is missing (and in the example I have posted, the image rockwell.jpg is not on the server), it should show...
You're entirely right. I had never paid any attention to the "star" system. Too busy, I guess, to pay attention to how the site works. Or so I thought (if I thought at all).
Thanks for waking me up.
JAS
The images in my original array were preloaded. If I make a copy as you suggest, wouldn't that force the image to be reloaded (thus losing the advantage of preloading)?
JAS
How can I pass a copy of an image stored in an array to a scaling function? I have the scaling function, and it works fine, but if I pass the image to it like this:
scaleThis(imageArray[x])
the original image (stored in the array) gets scaled. This is not what I want, I only want to scale a...
1. How do I include a line feed in a string passed to document.createTextNode()? I have tried \n and <br />, but the former is simply swallowed with no effect, and the latter shows literally in the parent div.
2. I have borrowed and implemented a preload image routine that works fine online...
What event occurs when the user changes the text size on a page via the Browser's Ctrl++ key combination? How would I listen for this event and respond to it?
Thanks,
JAS
What is the difference between window.onload and the onload event in the body tag? IE7 seems to treat them differently than FF2, Safari 3 and Opera 9 (Win XP PRO SP2). Is there a reason to prefer one over the other? Does it make a difference if window.onload appears in an imported script...
I have been trying to study some code I found at:
http://www.webreference.com/programming/javascript/gr/column3/
for preloading images. The demo site described on the page above no longer exists, so I had to build my own from the article. I did that, and you can see it at...
OK, that fixed the problem in Div1. (And I have updated the example file at: http://www.wisewasre.com/test to show that.) Thank you very much.
However, (and I am sorry to seem greedy) I need the dom technique (in Div2) to work as well if that is possible. The problem there seems to be only...
I have posted an example page at:
http://www.wiseware.com/test
that shows a problem with the way IE7 handles (or rather, refuses to handle) styles applied to dynamically created elements. The page loads perfectly in FF2, Safari 3 and Opera 9, but I cannot find anyway to get IE7 to do it right...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.