473,657 Members | 2,401 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DHTML Floating iFrame - help testing/correcting

gsb

Don't know if this is the right place to post this JavaScript issue.
If not, could someone point me in the right direction please.

I am trying to make a "cross browser compliant" floating iFrame.
Not real fancy, just load, resize and move.

But, I do not have the browsers, OSs and different machines (like Mac) to
test the code on.
So I need some help to see where this basic example of works and does not
work.
That is, some help testing and correcting it if possible.

So far, I know it works on these: IE6 Win98, IE6 Win2000Pro, Netscape 7
Win200Pro, FireFox XP Home & XP Pro and IE6 XP Pro.
But what about, PC IE5, IE5.5, Opera, and Mac (all), as well as others I've
omitted.

Your help is appreciated.
Anyone?

http://www.liteboards.com/gsb/testing2.html

Thanks,

gsb
Jul 23 '05 #1
6 5732
Ivo
"gsb" wrote
So far, I know it works on these: IE6 Win98, IE6 Win2000Pro, Netscape 7
Win200Pro, FireFox XP Home & XP Pro and IE6 XP Pro.
But what about, PC IE5, IE5.5, Opera, and Mac (all), as well as others I've omitted.


That 's an impressive list. I sadly do not have the proper equipment either
but would like to note that with the numerous
return false; // ...for anchor tags
statements in your code, just to continue the matter of correct coding it
would be nice to see the the anchors actually go somewhere for those
situations where things do indeed fail. So a real url like
<a href="http://www.google.com/"
instead of
<a href="#"
Certainly with a link text like "Load Google.com".
--
Ivo
Jul 23 '05 #2
gsb wrote:
[snip]
But, I do not have the browsers, OSs and different machines (like Mac) to
test the code on.
So I need some help to see where this basic example of works and does not
work.
That is, some help testing and correcting it if possible.


Hi, I did some Mac testing, results below.

Safari 1.0.3 (Mac OS X 10.2.8)
Seems to work fine, the move and re-size just moves/resized the iFrame,
scroll bars appeared as appropriate on the window and iFrame.

Camino 0.7 (latest version is 0.8, I'll get around it one day...)
Browser re-sizes when loading your URL. I made it smaller again, then
clicked your links. Everything worked as per Safari, no more window
re-sizing (unless I reloaded the URL), the iFrame moved/resized fine.

IE 5.2.2
As per Camino, but no vertical or horizontal scroll bars on window if
made smaller than iFrame. Scroll bars appeared on iFrame as required.

Firefox 0.9.1 (Latest is 1.0PR, but as for Camino...)
As for Camino, however the onload resize pushes the status bar off the
bottom of the screen. Scroll bars on window & iFrame as required.

Mozilla 1.7
As for Firefox (including status bar off the bottom) - no surprises
there.

Netscape 7.2
As for Firefox & Mozilla.

Opera 6.03
Weird. No re-size on load, displayed "empty", put scroll bars on when
window made too small. Didn't load links in iFrame. I don't think it
did the resize (hard to tell with no content and the scroll bars didn't
alter). The move moved "empty" but it went back to the start if the
window was re-sized manually.

Incidentally, I hate sites that resize my window. Windows has a
maximise button, Mac has an "optimise" button, if I want the window
bigger I can do so with a single click. Having a script make the
window as big as it can makes me drag it back to where it was - yuk.

Pushing the status bar off the bottom of the screen and extending the
browser window under the dock is really annoying too.

Hope that helps - Fred.
Jul 23 '05 #3
gsb

Fred,

Thank you very much for your time. It is a big help.
I am scripting "blind" and your time is appreciated.

As to the "full screen" opening, have you any suggestions?
For the target application it is truly required.
I even suggest the user hit their 'f11' key once on site.

And also thank you Ivo.
Your suggestion is good.
In-fact, the real version will set a flag to use a different "content
viewing" implementation as well as track (via. PHP/mySQL) which
browser/OS/Machines failed.

I thank you both for your time and help.

gsb

Jul 23 '05 #4
gsb
Fred,
Incidentally, I hate sites that resize my window. Windows has a
maximise button, Mac has an "optimise" button, if I want the window
bigger I can do so with a single click. Having a script make the
window as big as it can makes me drag it back to where it was - yuk.
The actual site implementation will do a browser check and if sufficiently
capable, open this is a new window.
Otherwise, open an alternative site in the same window without resizing it.
So the users default window size remains after one exits the site/closes the
window.
Pushing the status bar off the bottom of the screen and extending the
browser window under the dock is really annoying too.


This, I agree is unacceptable. Hopefully, I will find a work around.
But if not, I may have to rethink and use something like an alert box to ask
the user to maximize their window.

Thanks for your candor.

gsb
Jul 23 '05 #5
gsb wrote:
The actual site implementation will do a browser check and if sufficiently
capable, open this is a new window.
Otherwise, open an alternative site in the same window without resizing it.
So the users default window size remains after one exits the site/closes the
window.


I think you should leave the window alone completely. I tested it
at 1280x1024, which is (according to w3schools) larger than 90% of web
surfers - I don't see why I need to fill the entire window. Most web
pages are built to fit around 800x600, so perhaps you should aim for
1024x768 (50% of surfers) to allow for your links on one side - note
that screens up to 2560x1600 are available.

People with small screens likely have their windows maximised anyway,
so they will get a maximised window by default if you don't specify a
size.

Cheers, Fred.
Jul 23 '05 #6

"gsb" <gs*@QWest.ne t> wrote in message news:th******** *******@news.us west.net...

Fred,

Thank you very much for your time. It is a big help.
I am scripting "blind" and your time is appreciated.

As to the "full screen" opening, have you any suggestions?
For the target application it is truly required.
I even suggest the user hit their 'f11' key once on site.

And also thank you Ivo.
Your suggestion is good.
In-fact, the real version will set a flag to use a different "content
viewing" implementation as well as track (via. PHP/mySQL) which
browser/OS/Machines failed.

I thank you both for your time and help.

gsb




I don't see why you re-size the window? What could you possibly have that requires it? Like Fred said it's
not a good idea. All it does is remind us of renegade web sites. Try to make what you have perform admirably
without doing it. Since I couldn't figure out what the purpose was I cannot help in that regard.

By the way. In IE 5.5SP2 I got no scroll bars at all anywhere. So the iframes were not really in my viewable area. They appeared to the far right and just above the status bar. Much of what they contained was not accessible. Maybe it is because I resized the Window back to the way I like it?

One thing you might consider about resizing windows. In Windows what happens when you do this is that the user preferences can altered. Last open Window size changes. So not only do you flip the user out when the Window is resized but the behavior continues long after the user has left the site. And takes resizing and closing the browser to bring things back to the way the user wants it.

--
George Hester
_______________ _______________ ____
Jul 23 '05 #7

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

Similar topics

4
7610
by: Thomas | last post by:
Hi there, I have an iframe which is editable (designMode = "on") and want to resize it dynamically as the content grows (e.g. more lines of text is in there) and there the struggle starts. I fill the iframe with content (<body> tag and so on and also insert a <div> tag, inbetween is the content that should be modified). Now if the event "overflow" or "underflow" is triggered the iframe
10
4643
by: NoSpan | last post by:
I have this page that has layout like the following: (no frameset) ---------------------------------------- | header | |--------------------------------------| | div1 | div2 | | | | |-------------------| | | div3 | | | | |
2
1848
by: awebguynow | last post by:
It seems like I've been reading the code to Google Suggest (GS) for about a week, and I'm going to have to wrap it up shortly. I'm OK with many of the subjects, and I would say I have intermediate knowledge of JS. I've read from many sources/blogs/sites: C Justus (dissected), alacrity, AjaxAC, etc. After reading the code, here's a few parts, I didn't follow: s.<div> contains Iframe, but why does s.style.left="-10000" ? does it
3
2523
by: aspmonger | last post by:
Hello, I really believe that IE 6 has a new (intentional?) bug that severely limits the capability of dhtml and cross domain scripting. Yesterday, I read an interesting article about the subject and it only supported my claim. The article explained why Microsoft will not be letting the IE DHTML Implementation get any more powerful than it already is. Microsoft has realized that an experienced DHTML developer can create a web application that...
0
7182
by: Tarik Monem | last post by:
I have been working on an all AJAX/DOM web site which is set to go live today and I thought I'd share my discoveries with all of you whom have helped me when I have encountered different issues along the way. First, deep linking is not something that a completely AJAX web site should be able to do by it's very nature of everything being on one page basically. So how can a person deep link to something that is on one page? This question...
9
5303
by: ninhovid | last post by:
Hi... i'm new at dhtml, and i want to use it in help windows (instead of window.open() of javascript)... i'm done it... but it works only in internet explorer.. in firefox 2 and 3 it opens the dhtml modal window but in the background of my main page... what do i have to correct so it opens up in front as it does in internet explorer? i'm using c# and ajax... it's an asp.net app... in masterpage i have this: <link rel="stylesheet"...
0
8402
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8315
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8829
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8508
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7341
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5633
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2733
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1627
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.