Resize A Pair Of Frames
Dec 10, 2006
I have a page with two horizontal frames. The top frame covers 90% of the window, and the bottom frame 10%.
I would like to be able to have a user hit a button on the lower frame to resize it up and down at will, say, lift the lower frame to 50% and then back down to its original position at 10%.
Is this doable? If so, does anyone know how?
View 2 Replies
ADVERTISEMENT
Jul 20, 2005
How can I define the size of this whole window, i.e. to 600 * 800 pixels ?
Is there a script I can includre here?
<FRAMESET FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 ROWS="130,*">
<FRAME SRC="head.html" NAME="head" SCROLLING=NO>
<FRAMESET FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 COLS="205,*">
<FRAME SRC="menu.html" NAME="menu" NORESIZE>
<FRAME SRC="menu-exe.html" NAME="main">
</FRAMESET>
View 1 Replies
View Related
Oct 3, 2002
I would like to resize a window with frames. I did the same thing with a window without frames with this code:
function stretch(y,yfinal)
{
if (document.body.clientHeight < yfinal)
{
theHeight = document.body.clientHeight + y;
window.resizeTo(323,theHeight);
}
if (theHeight < yfinal)
{
str="stretch(" + y + "," + yfinal + ")";
setTimeout(str, 20);
}
}
this code stretches the height of the window, but not in one time, it does it smoothly. How can I do the same thing with frames?
View 1 Replies
View Related
May 17, 2011
I wish to have 3 frames left to right, an them to resize as i hover over each frame to specific percentage widths.[code]...
View 1 Replies
View Related
May 2, 2009
What does the first pair of parentheses indicate in thefollowing statement:$().getBrowserInformation();BACKGROUND: I have noticed that their presence or absence can make orbreak JavaScript's acknowledgement of a method's existence on the onehand, but seem entirely unnecessary under other circumstances.
View 8 Replies
View Related
Dec 3, 2011
I need a pair of select boxes to behave like,
1- Just one of them can be checked at any time (like radiobuttoms)
2- Both can be unchecked at will (like select boxes).
The code bellow is what I have written but it is not working,
As you can see, in this case there are three rows with a pair of select boxes each, and I nead that each pair have the behaviour described above.
View 6 Replies
View Related
Apr 9, 2010
I have a javascript object which is converted from json to java script object. i want to display its values like after each key value pair, i want to insert new line. but i dont know exactly how to do that. below is my code, please take a look and tell me how i should insert a new line. i tried but its not inserting a new line is diplay.
$.ajaxSetup({
cache: false
//timeout: 1000000
[code]....
View 1 Replies
View Related
Mar 3, 2010
Need the three "Options" to be hyperlinks that submit the "choice" form. When submitted, I would like the value to be the text of the option selected (i.e. value=Option1, Option2 orOption3) and all three to have the same name. (i.e. name = Options) How do I make the 3 options inputs and submit on click?
<form action="cgi.exe" method=POST name="choice"> <tbody> <tr> <td>Option1</td>
<td>Option2</td>
<td>Option3</td>
[code]....
View 1 Replies
View Related
Oct 28, 2010
Im using the cycle plugin trying to make a banner slide tha is 100% the width of the window, my problem is that when i resize de window the banner does not align center, it stays somo what left align. So is there a way to keep the slides align center after you resize the window usingthe cycle plugin? or is there another plugin that i can do that? I attached a image to ilustrate, the white banner with the cat should align center when i resize the windows but it stays left align.
View 4 Replies
View Related
May 31, 2011
I'm trying to develop a function to resize a control upon window resize. In regular javascript I would make a global array of control names and append code to the event that cycles through and resizes each control.For example
var proportionalizedImages=new Array();
proportionalizedImages.push(document.getElementById(ctrl));
if (window.addEventListener)[code]....
I'm wondering if there's a more elegant way to do this in jQuery. I've played around with it a bit, but i'm unsure how to get the control object to the resize function triggered by window resize without a global variable.
jQuery.fn.resize = function(max_size) {
$(window).bind('resize', $(this), resizeTriggered);
}[code]....
View 2 Replies
View Related
May 15, 2011
I'm looking for a resize function that will resize a window around content, in my case a div.
I've googled away but not come up with anything as yet so would like to ask if anyone knows a plug in that can do this simple task.
View 1 Replies
View Related
Nov 19, 2011
I'm trying to scale the text with the size of the window (I've also got all the layout sizes in ems, so this should keep the aspect ratio of everything the same as the window is resized). The code that I've got at the moment doesn't do anything -
$(window).resize(function() {
var $width = $window.width() / 10;
$("body").css("font-size", $width);
});
View 1 Replies
View Related
Apr 10, 2011
Is there anyway to make a custom resize function that resizes one of my div elements on the webpage the same amount of pixels as the browser window gets resized?
View 1 Replies
View Related
May 26, 2011
I am looking to resize my entire webpage down to specific smaller resolution and add it to an iframe. I do not need it to "auto-resize" depending on viewpoint, just shrink it to a smaller size.How can I use javascript to resize the entire page to my dimensions?
View 1 Replies
View Related
Dec 24, 2011
What's a good way/ideal data structure to achieve this?
The objective of the code/function is to map user-inputted strings into a pair of specific, hard-coded strings. For example, say the user types "firefox" or "ff", or "fx". The output would be the pair ["browser", "mozilla"], for example.
I'm currently using a multidimensional array, but it feels inefficient and I'm having trouble mapping an arbitrary number of inputs into 2 outputs.
How should I map the elements ["input1", "input2", "input3"] => ["output1a", "output1b"] ?
Another method I used previously was a massive switch statement. This fulfills my needs, but I'm not sure about the efficiency (though if I remember correctly, switch statements become more efficient as size grows, since it uses a hash table?).
switch (input) {
View 7 Replies
View Related
Jul 23, 2005
As a rule, I don't like frames but I'm stuck supporting a web that uses
them. I have a page, default.asp, that has a header and body frame: "fHead"
and "fBody". What I want to do is to prevent default.asp from ever loading
itself into "fBody". Some users still have code that causes this behavior.
So how, using javascript , can I do something to the effect of: "If
default.asp tries to load default.asp (itself) into fBody, then reload the
top-level browser window with what fBody is trying to load."
Make sense? Any thoughts?
View 1 Replies
View Related
Feb 5, 2001
my main page consists of frames.
i'm using ssi to include copyright info, tos, and a privacy statement at the bottom of each page.
the ssi is working on all regular (ie non-frame) pages, but it doesn't seem to be called or parsed on the main page.
a look at the source shows the ssi call just sitting there, doing nothing.
has anyone dealt with this before?
i didn't think it mattered if an ssi was called from within a framed page, but i might be wrong.
i suppose i can just use the actual html for that one page but i'd rather just be able to use ssi since it's used through out the rest of the site.
View 4 Replies
View Related
Jul 23, 2005
I have a frameset with two frames, and want to have a button in one
frame call print() in the other one:
This is the layout:
<frameset rows="*,40" frameborder="NO" border="0" framespacing="0">
<frame src="..." name="pritableText">
<frame src="..." name="printButton" scrolling="NO" noresize>
</frameset>
And, in printButton, I got this code:
<a href="#" onClick="parent.printableText.focus();
parent.printableText.print();">Print the page</a>
However, nothing happens in Netscape (7.01) and Firefox (0.8), and in IE (6)
I get an "error in the script". However, I do not identify the error.
Does anyone have a clue onto what's happening?
View 1 Replies
View Related
Jul 23, 2005
Let me just start by saying... and I truly do mean this... I HATE frames. Now that I have that out of my system, unfortnualty I do not have a choice and am forced to use the complex structure that I am so SO needing help with. My framesets look like this
---------------------
| title |
|--------------------
| buttons |
|--------------------
| base |
|--------------------
inside the base frame I have ANOTHER frameset... split into frmLeft and frmRight... now if your mind isnt tied into knots... I am sure this will do it... I have a button called 'add category', which is on the buttons frame. When I click the button, I get a popup with the details... I add the category details... then I need the frame titled frmLeft to refresh. Is this possible?
View 1 Replies
View Related
Jul 23, 2005
What's the trick to sharing cookies between frames? I can set and read a
cookie in the same frame, but if I try to read the cookie in another frame
it is undefined. :o(
There are some other cookies that are available in all frames, so I know
that the frames are capable of reading cookies, just not the ones that I set
in the other frame.
View 1 Replies
View Related
Sep 12, 2005
I believe that different browsers treat frames/iframes differently, and this
is one of the reasons to avoid using them in websites/applications.
Are there any other reasons to avoid them?
In my experience I find them clunky and messy to implement using javascript
and prefer to keep the whole web page as a single page.
View 1 Replies
View Related
Sep 14, 2005
I have to iframes within one page. When I triger action in one frame, I
need to update the content's of other frame's selection list.
How to access second frame's form element from my first frame in index
page?
Suppose I named my second frame "content", and form element is named
simply "form1". If I try to access that form by refering:
parent.content.document.form1, I get nothing at all.
View 3 Replies
View Related
Sep 22, 2005
I apologize if this is not the right group for this, but I saw some
other messages on this topic in here, so thought I'd take a shot in the
dark...
I am running IE 6, XP, SP2. When I connect to certain sites that use
inline frames, I get the message 'Your browser does not support inline
frames or is currently configured not to display inline frames.'
The aggravating thing is I recently bought multiple Dell computers,
have 2 in the room with me right now, haven't touched a thing
browser-wise on either, and it works fine on 1 and not the other. Same
OS, same IE version, etc.
View 2 Replies
View Related
Nov 23, 2005
How can I refresh a page in a separate frame. For example, when someone logs in in the main frmae, I want to refresh another frame to display info differently.
View 4 Replies
View Related
Mar 8, 2006
I am using a frameset with two frames that looks like this:
|------------------------------|
| |--------------------------| |
| | FRAME 1 | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| |--------------------------| |
| |
| |--------------------------| |
| | FRAME 2 | |
| | | |
| | <html><body> | |
| | <table><tbody> | |
| | <tr> | |
| | <td>Data 1</td> | |
| | <td>Data 2</td> | |
| | </tr> | |
| | </tbody></table> | |
| | </body></html> | |
| |--------------------------| |
|------------------------------|
FRAME 2 has no height, so it looks as if you only have 1 frame. I am
using FRAME 2 to retrieve data from my server.
I open up FRAME 1 with my webpage and leave FRAME 2 empty. When the
user request data I target FRAME 2 and the data is loaded into FRAME 2.
What I have been trying to do is this. Take the innerHTML of the FRAME
2's table and load it into a table in FRAME 1.
View 1 Replies
View Related
Sep 19, 2006
I am using frames - yes frames - I do not know how to do anything but and I
know that there is better out there......but........
I am trying to set a frame so that it automatically puts a page
corresponding to the month in that frame (a calendar) Code:
View 6 Replies
View Related