10 replies [Last post]
Tyrick
Tyrick's picture
Offline
newbie
USA
Last seen: 10 years 49 weeks ago
USA
Timezone: GMT-5
Joined: 2010-06-07
Posts: 10
Points: 12

Hello,

I am wondering if something is possible.. and if it is, how I would go about accomplishing the desired result..

This is a sample page to illustrate the problem
http://comp.uark.edu/~bcagnin/test/index.html
Is there a way to resize the object from a link that is within the website being displayed in that very same object??

Also, I am willing to use iframe if there is a solution that can be found with that... Thanks!!

Tyrick

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 14 weeks 5 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Uh uh

Think of object, iframe, or frame as being a rectangular hole cut in your document. Behind that hole is the imported document. You can only see what the hole allows, but you can scoot the imported doc around with scrollbars. Now, the reason you can't alter the size of the hole is that you don't own that other document, so you can't know what size it is.

I would suggest you are asking how to do what you've decided is the solution to your problem. It would be better to ask about the actual problem you're trying to solve. It could be that you're right about the approach, and are just screwed. Or it could be there's a better solution that we can't know without knowing the real problem.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Tyrick
Tyrick's picture
Offline
newbie
USA
Last seen: 10 years 49 weeks ago
USA
Timezone: GMT-5
Joined: 2010-06-07
Posts: 10
Points: 12

Thanks.. If you go to

Thanks.. If you go to http://comp.uark.edu/~bcagnin/ and then click "日本語" (if you can read the text) on the left... then it loads inside the object to the right of the page.. then click "A sample of dialog from the first chapter of Sura Sura." link, then "Chapter 1 - Conversation on a Train".. and it will load a website that has a bunch of japanese - However there is actually much more content on the page, and it is not being displayed because of the object size restriction... (Now you mentioned that I don't "own" the website... but I actually do.. and I know the size of it"

http://comp.uark.edu/~bcagnin/surasura/chap1.html <-- This is a copy of the actual page that I want displayed, and I "own" it..

So, that is my problem.. Does that help? Sorry if it wasn't explain well enough..

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 14 weeks 5 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

When I said you don't own the

When I said you don't own the imported page, I was referencing the parent. It doesn't own the imported page, it just makes a hole to view through.

But, since the imported pages are a part of your site, why are you using such a round-about, overly complicated way of otherwise simply viewing the page.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Tyrick
Tyrick's picture
Offline
newbie
USA
Last seen: 10 years 49 weeks ago
USA
Timezone: GMT-5
Joined: 2010-06-07
Posts: 10
Points: 12

sigh.. I don't know..

sigh.. I don't know.. because I don't know which other method you are talking about?? How else do you nest an HTML page inside div tag? What simple method do you recommend?

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 16 weeks 3 days ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

Tyrick wrote: sigh.. I don't

Tyrick wrote:

sigh.. I don't know.. because I don't know which other method you are talking about?? How else do you nest an HTML page inside div tag? What simple method do you recommend?

First you have to learn to ask the right questions.

Why are you trying to nest another html page inside your page? What problem do you think you are solving by doing that?

If you can tell us that, then ten to one we can show a much better way to do it. It is virtually always a big mistake to try to nest another whole page inside the current one.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

Tyrick
Tyrick's picture
Offline
newbie
USA
Last seen: 10 years 49 weeks ago
USA
Timezone: GMT-5
Joined: 2010-06-07
Posts: 10
Points: 12

Ok.. Well, I am trying to

Ok.. Well, I am trying to accomplish the following website layout: I want a general menu to be on the left, and I want the links to load in a div on the right... The only way I could think of doing this was to us the java function that you see and have them update objects that hold the content.. Otherwise, how else would I get the links on the left menu to update content in the right? (Perhaps here is where I went wrong) Also, since the left menu is simply of links that are general, the page that loads on the right should be able to offer the ability to fetch more specific data.. Much like how you go from the language link on the left menu all the way to a specific document that was posted.. It is similar to a filling cabinet system.. or a collection of folders.. Now, so far, everything has been perfect, except for when I follow the path down to a very specific document that happens to be too big for the object container... I honestly think the envisioned design is envisioned 100% well, it is simply either a limitation I have on effectively using the markup language, or a limitation within the capacity of the language itself.. Hope this helps..

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 16 weeks 3 days ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

Well, take a look at this

Well, take a look at this thoroughly mediocre site I did a few years back for the coop where I live. Is that the effect you want? A fixed menu on the left hand side?

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

Tyrick
Tyrick's picture
Offline
newbie
USA
Last seen: 10 years 49 weeks ago
USA
Timezone: GMT-5
Joined: 2010-06-07
Posts: 10
Points: 12

... That is by far not at all

... That is by far not at all what I want.. First, when you click a link on the left, the whole page reloads.. This is wasteful.. not to mention it creates a jerk in the page if it is scrolled down.. Also, your links do not even load within the load.. They are just connections to external content. I'm sorry, but the web design I have in mind is far more sophisticated.. Even the website that I showed you has more sophisticated mechanisms than the one you showed me.

I appreciate your attempt to help though..

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 16 weeks 3 days ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

Tyrick wrote: ... That is by

Tyrick wrote:

... That is by far not at all what I want.. First, when you click a link on the left, the whole page reloads.. This is wasteful.. not to mention it creates a jerk in the page if it is scrolled down.. Also, your links do not even load within the load.. They are just connections to external content. I'm sorry, but the web design I have in mind is far more sophisticated.. Even the website that I showed you has more sophisticated mechanisms than the one you showed me.

I was asking if the visual effect was what you are looking for, not whether that visual effect was achieved by what you consider to be the "right" or "sophisticated" way.

That particular implementation was constrained by the fact that I had no server side processing language available on the original server and haven't had time to change it since we swapped servers.

In fact, if I understand what you want, it is actually the standard way to do this, see many wordpress blog sites, for example this one.

You need to concentrate on what you want, and make it clear. You haven't really done that at this point, so I'm guessing here, gimme a break willya?

Or take a look at this demo and please remember I am trying to find out what kind of visual effect you are trying for, since you haven't been able to explain it so others could understand it yet. Once again that demo is constrained by the lack of server side processing on the server, but I want to know if that's the kind of visual effect you are looking for.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 14 weeks 5 days ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Method for method's sake?

Tyrick wrote:

[…]First, when you click a link on the left, the whole page reloads..

Yeah, so?

Quote:

This is wasteful..

No, it's not. Images do not reload. Stylesheets do not reload. Scripts do not reload. These are all cached upon the first download, and served from local memory thereafter. The only things that reload are text (content plus markup), and new images, stylesheets, and scripts. The new stuff has to be loaded anyway, and the text is a trivial load. If the text's bandwidth is an issue, you have a different problem altogether.

The whole frame thing is a holdover from back in the day when cutting edge modems were 2800 baud; that's right, twenty-eight hundred, not thousand. You could actually watch images form line at a time. Caching browsers ended the reload problem, and higher bandwidth made even the first load mostly painless.

Quote:

[…] not to mention it creates a jerk in the page if it is scrolled down..

¿Can you amplify on that? I don't see any "jerk".

Quote:

Also, your links do not even load within the load.. They are just connections to external content.

That's the way things work. If you want a new page to open in the iframe or object, you must link to that page within the parent document, and target the frame. I don't know if that works in object, because I can't come up with a pragmatically useful example to test, and see no reason to mess with it myself. It would be an excellent exercise for your own edification, though.

Quote:

I'm sorry, but the web design I have in mind is far more sophisticated.. Even the website that I showed you has more sophisticated mechanisms than the one you showed me.

Sophisticated does not mean complex, unless you use the root term in the sense of sophomoric; a little knowledge that gets you bogged down in over-thought Rube-Goldbergosity. The most sophisticated sites are the simplest that get the job done. Elegant.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.