Creating a scrollable Frame in the same page

Discussion in 'Javascript' started by success_ny@yahoo.com, Dec 6, 2005.

  1. Guest

    I cannot seem to find the answer to this rather simple question. Pardon
    me if it looks illogial or silly.

    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.

    Any ideas?
     
    , Dec 6, 2005
    #1
    1. Advertising

  2. wrote:

    > 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>


    Use the `iframe' or the `object' element instead.

    > That obviously did not work.


    Try

    <img
    src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAPBAMAAADNDVhEAAAAD1BMVEX%2F%2F%2F8cHBz%2F%2F%2F%2BMjIxOTk4DFJMfAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxEAAAsRAX9kX5EAAAAHdElNRQfUBR0MMDTYAM%2BJAAAANklEQVR4nGNggAMTQWcQ5SgoKCjCwMAsCAIODCyCEL4hhALRIhBlYArOh8nD1MP0w8yDmw8BAHX0Bi31%2FaYsAAAAAElFTkSuQmCC"
    alt="Pacman">

    (courtesy of Eric B. Bednarz[1]). If that works in your UA,

    src="data:text/html;charset=ISO-8859-1,&lt;!DOCTYPE html PUBLIC ..."

    should work _there_ as well. Note that you will run into problems
    with the Same Origin Policy[2] then as there is no domain.

    Not a J(ava)Script/ECMAScript question, though. (Java != JavaScript)


    PointedEars
    ___________
    [1] news:
    [2]
    <URL:http://www.mozilla.org/projects/security/components/same-origin.html>
     
    Thomas 'PointedEars' Lahn, Dec 8, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. RJN
    Replies:
    1
    Views:
    946
    =?Utf-8?B?S2FtYWwgVC4=?=
    Oct 26, 2004
  2. Replies:
    2
    Views:
    420
    Mark Parnell
    Dec 7, 2005
  3. Replies:
    2
    Views:
    309
    Scott McPhillips [MVP]
    Nov 7, 2005
  4. Zalek Bloom
    Replies:
    1
    Views:
    233
    Aaron Bertrand - MVP
    Sep 23, 2003
  5. Replies:
    1
    Views:
    137
Loading...

Share This Page