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

find form height

Hi, is there any way to find the height of a webform (that is being loaded into an Iframe) from another webform? I'm not sure how to do that...

Thanks!
Nov 18 '05 #1
6 1489
Tammy,

window.frames["nameofyourframe"].height/width

should give you what you need. I think this will also work with external
windows as long as they were launched from the current browser instance.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"Tammy" <an*******@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
Hi, is there any way to find the height of a webform (that is being loaded into an Iframe) from another webform? I'm not sure how to do that....
Thanks!

Nov 18 '05 #2
I'm a little new here so please bare with me. Is the code snippet you posted code behind? That is what I need... .if it is code behind how do I reference 'window'? If that is typed in now, it is not recognized...

Thanks.
Nov 18 '05 #3
you can't get it from code behind, you'll have to get it clientside and pass
it in

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Tammy" <an*******@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.com...
I'm a little new here so please bare with me. Is the code snippet you posted code behind? That is what I need... .if it is code behind how do I
reference 'window'? If that is typed in now, it is not recognized....
Thanks.

Nov 18 '05 #4
That is what I was afraid of... ok, any clues or pointers on how to do that? :

It's my birthday today if that helps you have sympathy toward me. hee hee

Thanks!!
Nov 18 '05 #5
hit up a javascript site (I like www.DevGuru.com) and you should be able to
get what you need.
it will be something like, surprisingly, window.height

Happy b-day too.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Tammy" <an*******@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.com...
That is what I was afraid of... ok, any clues or pointers on how to do that? :D
It's my birthday today if that helps you have sympathy toward me. hee hee.

Thanks!!

Nov 18 '05 #6
Hi

http://msdn.microsoft.com/library/de.../measuring.asp
--
Best Regards
Vidar Petursson
==============================
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
==============================
"Tammy" <an*******@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
Hi, is there any way to find the height of a webform (that is being loaded
into an Iframe) from another webform? I'm not sure how to do that....

Thanks!

Nov 18 '05 #7

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

Similar topics

4
by: Nomen Nescio | last post by:
can anyone be so kind as to look at http://www.mysolution.ws/HYPOCRITE.php and let me know why it isn't passing the form data to http://www.mysolution.ws/insertHYPOCRITES.php for the most...
4
by: nc | last post by:
My iterator can find my collection when my Action class calls my jsp directly, however when my Action class calls an html file that is set up with IFrames (one of which is loading that same jsp), I...
5
by: Kevin Myers | last post by:
How can one obtain obtain the height of a MS Access 2K form? There is a width property, but I don't see a corresponding height property. I need to obtain the height of the form so that I can...
2
by: VB Programmer | last post by:
I only have 1 set of <FORM> tags in my HTML file, but I keep getting this error. Any ideas? *********** A page can have only one server-side Form tag. Description: An unhandled exception...
0
by: JR | last post by:
Hi, i found a user control on the net see code below it is part of VSEssential but I like the coolProgressBar. Zo I want to use it into my program and I always get the error that it can't find...
1
by: MuZZy | last post by:
Hi, I'm trying to find a way to find out a form menu height/color as i think it changes depending on various Windows settings. I need to create a form of height/color of form menu so that i can...
5
by: timothy.pollard | last post by:
Hi I'm having a bit of bother trying to make a questionnaire do what I want it to. I have put it up on www.web-iq.co.uk/test.htm. Basically the user of the final form (when I've tarted it up)...
2
by: emily224 | last post by:
Hello, I have been trying to understand this source code, which I retreived from my online course test. I would like to know how to find the answer for the question on the test. Im sure the answer...
4
by: emily224 | last post by:
Hello, I have been trying to understand this source code, which I retreived from my online course test. I would like to know how to find the answer for the question on the test. Im sure the answer...
4
by: AAaron123 | last post by:
<body runat="server" id="MainBody"> <form id="form1" runat="server" style="background-color:green; width: 100%; height: 100%"> <br /> Table1" runat="server" Style="background-color:Yellow;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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.