Creating A Scrollable Frame In The Same Page

Dec 6, 2005

Can I create a frame in the same page without referring to other html
files? I.e., I have a large dynamically created table in my JSP page. I
would like to place it inside the scrollable frame. If I put the whole
table into a separate file, I can easily do it by referring to that
HTML file from the 'src' attribute. But what if I want to create this
frame in the same page without referring to the outside html files?

I tried to place my table content inside the anchor link and then refer
to it from the frame like this:

<frameset cols="200">
<frame src="#framed" scrolling="yes" frameborder="1">
</frameset>

That obviously did not work.

View 1 Replies


ADVERTISEMENT

JQuery ::creating Muntiple Scrollables - Placing 2 Scrollable Panels On A Single Asp.net Page

Jun 29, 2010

i am facing problem with JQuery Scrollable menu, i am trying to placing 2 scrollable panels on a single asp.net page. When there is one panel every thing works fine but when i copy and paste the code so my web page contains two panels vertically, the thing doesn't work, the tow panels just hanged!!

[Code]...

View 2 Replies View Related

Print Scrollable Content In Frame.

Aug 11, 2005

I tried the print method provided by javascript to print the frame in
current focus. Only the visible content is printed, any hidden content
in the current frame[say, on a different resolution or where the
browser introduces a scroll-bar] does not appear in the printout.

View 1 Replies View Related

Creating The Frame For Each Chats Application

Mar 25, 2010

Im designing a site with friends can chat online. Now im facing the problem of creating the frame for each chats. I actually created a new page on clicking the link. But the user wants it to be a frame not a page. Also i find a difficulty in passing the username in the link url so that i can get in the next page using get method. Im using php and javascript so i face the problem in passing the values from php to java script I use php to fetch users who are online from the database.

<?php
include "check.php"
?>
<html>
<body>
<!--<table border="2" bordercolor="purple" width="200" height="1000" align="left">
<tr>
[Code]...

View 1 Replies View Related

JQuery :: Scroll To A Certain Position Inside A Scrollable Div On Page Reload?

May 27, 2010

i have a div of height 500px and width 800px. i have set it as auto on over flow and usually i have 500 records displayed so it scrolls. lets say i trigger an even on row number 478 inside that scrollable div and that event causes a page reload, can i go back to that same position in side that div? how?

View 1 Replies View Related

Add Scrollable Textarea(s) To Scrollable DIV?

Feb 10, 2011

The scenario is, a scrollable DIV on a webpage. Within the DIV is a scrollable textarea. Beside the DIV is a button whose onclick event creates and places another scrollable textarea below the first. Any subsequent onclick events places another scrollable textarea below the previous. I'm fairly sure that CSS will come into play for positioning of additional textarea's. My thinking is to create an array for the first textarea ID, then increase the array by 1 on any subsequent onclick event, then assign contents (values) of textarea(s) to ID's using innerHTML. Is this approach plausable, or is there a simpler method to this madness? Is there a method/function for calculating the height (px)of a textarea with overflow set to auto, regardless of text length within.

View 2 Replies View Related

Simple Search-type Page To Enable Users To Input A Model Number And Its Page Appears In A Inline Frame?

May 6, 2009

I am using a very simple search-type page to enable users to input a model number and its page appears in a inline frame. Its not a true search as it is simply relying on a person entering the correct html page name to find it. But this works perfectly in my application.The problem I have is that I cannot get the type box to accept enter key as a submitt, only a click of the mouse will submitt the request. If enter is pressed the box loses the users input but no action is taken.I think this may be a javascript issue. I have posted the code below.

[CODE]
<html>
<head>

[code]....

View 2 Replies View Related

Use A Frame Inside One Of Div Tag To Link The Page To The Navigation Page?

May 10, 2010

if i have 10 pages and each of the page has the same navigation bar, i don't think duplicating the code again and again in every page is the right solution... what do the pro normally do? i tried to use a frame inside one of my div tag to link the page to the navigation page

[Code]...

View 6 Replies View Related

Frame Gets Overriden By A Page

Jul 20, 2005

How can I avoid that a site that I send to a frame (via target=...)
overrides the whole frameset and claims the whole window.
I want the site to appear in that frame and not grab the whole browser window...

View 1 Replies View Related

Printing A Page In A Frame

Jun 21, 2007

I'm having great problems trying to print out pages from within the middle frame of three horizontal frames in Internet Explorer (only):

<frameset framespacing="1" rows="45,*,35">
<frame name="topFrame" scrolling="no" noresize target="middle" marginwidth="0" marginheight="0" src="topframe.html">
<frame name="middle" marginwidth="8" marginheight="16" target="_parent" scrolling="yes" src="page.html">
<frame name="bottom" target="middle" marginwidth="0" marginheight="0" scrolling="no" noresize src="botframe.html">
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>

The problem is that the pages spill over to another page (in all printers I've tested - and in a pdf) BUT (and this is weird) if I print the page OUTSIDE of the frames, they print out on one single page as designed. The javascript used to print the page is simple enough:

function printit(){
window.parent.middle.focus();
window.print();
}

...but i don't think the function is the problem.

Does anyone know why a page would print out differently (i.e. longer) if inside a frame in a frameset, why this should be so, and what I can do to prevent the difference and have it print like a normal page?

View 2 Replies View Related

How To Check If Page Is Not In A Frame?

Nov 5, 2006

How would I check if a page is not inside a frame and then redirect it somewhere else if it isn't?

View 5 Replies View Related

Don't Show Page If Not In Frame

Sep 6, 2002

I have a site using IFRAMEs and I don't want pages viewed without being in the IFRAME. Is there a way to do this? The pages just don't make much sense unless viewed in the IFRAME. I'm not trying to protect information or anything.

View 1 Replies View Related

Getting The URL Of A Page Inside A Frame

Apr 7, 2011

[URL] I have an index.html that sets up 3 Frames. They are called FrameTop, FrameA and FrameB. See pic below. In FrameTop the user can type in a url into a textbox with id="urlINPUT". When user clicks LOADA it loads that url into FrameA. User can then browse web in FrameA, clicking links etc and going to new pages. The second button LOADB is designed to determine the current location/url of the page displayed in FrameA and load that into FrameB. So far when I write the javascript in FrameTop LOADA works but LOADB loads the FrameTop into FrameB! [error!]

I suspect my error lies in use of parent/self in the parent.frame.location.

Here is my page layout. [URL]

-----------------Index.html-------------------------------------
<frameset rows="5%,*">
<frame name="FrameTop" src="frame_top.html" />
<frameset cols="50%,50%">

[Code]....

index.html loads the index correctly and displays FrameTop, FrameA and FrameB. The load A button also works correctly BUT when I click LoadB it loads FrameTop into FrameB! This happens when no page is loaded into FrameA AND when an external page in loaded in. [URL]

View 3 Replies View Related

Page In Frame Depending On Screenresolution?

Jul 20, 2005

Does any one know how to load a sertain page in a sertain frame depending on
the viwers screenresolution?

What i mean is that if a user has 800*600 i want page 800.htm to be loaded
in frame "content". If the user has 1024*768 i want page 1024.htm to be
loaded in frame "content".

View 2 Replies View Related

Loading A Page In An Inline Frame

Jul 20, 2005

I have a code which works ok, except I would like to load the specified file
in an inline frame (I1) on the page instead of a whole new page if at all
possible Code:

View 1 Replies View Related

How To Generate A Random Page In A Frame

Jan 13, 2011

So to start out, this is my first post on CodingForums! :) I've only recently started learning web development so I figured it would be a good idea to get involved with some active forums.

I am trying to open a random page in a frame, but I am trying to call the Javascript to do so in another frame. I currently have an html page with a frameset which has two frames. One of the frames is a toolbar that sits at the top of the page and it has an image that acts as button. When the user clicks on this image, the bottom frame generates a random page from an array of links I have hardcoded into the Javascript. The bottom frame is just set to google.com as a default because I couldn't really think of anything to put in an html file there.

The problem I'm having is when I click on the image to open a random page in the bottom frame, nothing happens. The code for all the files are below. code...

View 2 Replies View Related

Onmouseover Trigger Different Page In Different Frame?

Jul 14, 2006

A friend of mine is looking to have a mouseover of a link in the left frame trigger a certain page on the right frame. Is this possible?

View 2 Replies View Related

Way To Stop Page Refresh In A Frame Set?

Jul 12, 2009

Is there any simple way to stop page refresh in a frame set? So you return to the same frame set page/pages?(Like firefox does it)

View 3 Replies View Related

JQuery :: Use A Parent-frame - Objected To Make Child-frame AJAX?

Aug 26, 2011

I have a domain: example.com; which is the parent.And a subdomain: api.example.com; which page 'receiver.html' is being loaded in an iframe, child of parent. Both pages set document.domain = example.com.

I'm trying to adapt this code:[url] but Idon't want to load jQuery from the <iframe> again but I need to have the method $.ajax() working from the <iframe> otherwise it would be a cross-domain request and the browser would abort it. I tried ingenuously to set via $('iframe')[0].contentWindow.$.ajax = $.ajax() and I just got a shortcut to the parent page jQuery method. I also tried to "clone" it using $.expand (true...) but the method doesn't work for me; probably because of the complexity of the objected I'm trying to clone. So is there a way for me to use jQuery to have only a $.ajax() method in the <iframe> ? I've thought even about creating a XHR in the child-iframe and then use that in the $.ajaxSetup ({xhr: THATNEWXHR}) but I couldn't do it. I mean, I want to use the XHR factory from jQuery (which has fallbacks for IE, etc) but it has to be created from the iframe-child.

Maybe there is other way to make the AJAX call come from the child-iframe.

If you're wondering "why don't you load jQuery from <script> in the child-iframe", there is a reason... As I'm using jQuery plugins + my own custom javascripts + other independent scripts I created a compiler which minifies each file and bundle them in one. The advantage of this is the reduction of HTTP requests. So "why don't you load that bundle inside the child-iframe?", because it's ugly and Twitter doesn't... Yeah, I like to take Twitter as a reference and I think if they were able to make it so can I;

I got to work in most browsers except IE and Operaby doing it with pure javascript.

I'm "attaching" the code for you guys to test. If you open it with Chrome, Safari or Firefox you will receive 2 alerts one with the return of $.get() and another with the return of a request made via XMLHttpsRequest object. Otherwise (if you open it with IE or Opera) you'll get 'undefined' in the first alert but the real return in the second.

This is the example.com/index.htm:

View 4 Replies View Related

Go Back History Button On Top Frame That Affects Main Frame?

Oct 15, 2001

Im trying to make a back button that reloads the previous page the user was at.
The back button will be on a small top frame and the page that needs to be controlled will be in the main frame.

The top frame is just a navigation system, and all pages will be loaded in the main frame.
Im trying to use this Code:

<FORM>
<INPUT TYPE="button"
NAME="back"
VALUE="BACK"
onClick="history.go(-1)">
</FORM>

Does anyone know how I could accoplish the desired result using this code, or any other code? And what about a foreward button?

View 2 Replies View Related

Verify Page Loaded Succesfully In Frame

Jul 23, 2005

What is the standard practice to verify that a page has loaded succesfully
in a frame when one issues a framename.href="url"? For example, detecting
404's, or other errors (like domain doesn't exist).

View 3 Replies View Related

Link In A Pop Up Allowing To Display A Page In A Frame

Jul 20, 2005

I look for a script allowing to display a page in a frame as from a link in a pop up (and close it in the same time The name of my frame is "body" In the pop up i try this function in the head section :

function reroutage() {
parent.frames["body"].window.location="assistance.htm";
window.close();
}

but it does not works, why?

View 1 Replies View Related

Change Content/source Of Frame On Another Page?

Mar 26, 2009

Let's say we have two separate files / pages:

File A - www.example.com/index.html There is an iframe on this page which contains different links. Every link leads to File B (e.g. www.example.com/news.html) which in turn has a frame.

The links on page A should change the source of the frame on page B. In brief - the frame on page A opens page B and every link should change the content/source of page B's relevant frame...

View 5 Replies View Related

Redirect Page To Open In Parent Frame

Apr 5, 2007

What I'm trying to do is make it so when a visitor or a search engine tries to view a page outside of the parent frame it reloads that particular page inside the parent frame. All the scripts I've tried WILL redirect the visitor back to the parent frame, but NONE of them will then load the previously viewed page into the 'main' frame. I don't want visitors to have to navigate through the site to find the particular page they were viewing.

I have seen this script before but I can't remember which site was using it, also without a redirection to the frames the site won't display properly and navigation would be difficult. Code:

View 1 Replies View Related

DOM - Can I Inspect The Elements Of An External Page Within A Frame?

Feb 19, 2009

Lets say I have an external page in a frame. Can I inspect the elements of the page within the frame?

View 1 Replies View Related

Mouseover Image To Open Page In New Frame?

May 27, 2010

I'm trying to create a website so when the small image is rolled over a new page opens in the frame ( called main) i will upload it now to [url]...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved