473,387 Members | 1,501 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,387 software developers and data experts.

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 5702
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.net> wrote in message news:th***************@news.uswest.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
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...
10
by: NoSpan | last post by:
I have this page that has layout like the following: (no frameset) ---------------------------------------- | header | |--------------------------------------| | ...
2
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...
3
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...
0
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...
9
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.