Connecting Tech Pros Worldwide Help | Site Map

Creating a scrollable Frame in the same page

 
LinkBack Thread Tools Search this Thread
  #1  
Old December 6th, 2005, 05:25 PM
success_ny@yahoo.com
Guest
 
Posts: n/a
Default Creating a scrollable Frame in the same page

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?


  #2  
Old December 8th, 2005, 02:25 PM
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
Default Re: Creating a scrollable Frame in the same page

success_ny@yahoo.com wrote:
[color=blue]
> 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>[/color]

Use the `iframe' or the `object' element instead.
[color=blue]
> That obviously did not work.[/color]

Try

<img
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAPBAMAAAD NDVhEAAAAD1BMVEX%2F%2F%2F8cHBz%2F%2F%2F%2BMjIxOTk4 DFJMfAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZc wAACxEAAAsRAX9kX5EAAAAHdElNRQfUBR0MMDTYAM%2BJAAAAN klEQVR4nGNggAMTQWcQ5SgoKCjCwMAsCAIODCyCEL4hhALRIhB lYArOh8nD1MP0w8yDmw8BAHX0Bi31%2FaYsAAAAAElFTkSuQmC C"
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:m3vezd9inp.fsf@nntp.bednarz.nl
[2]
<URL:http://www.mozilla.org/projects/security/components/same-origin.html>
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.