Mirror HTML page with Frames

Asked

Viewed 279 times

0

Good morning

Is it possible to control the same html page at two different points using FRAME? I have a form and would like to know if I can input information in it on two different points.

  • how ? explain your doubt better

1 answer

0

I kept thinking about the functionality of this and good, let’s try to answer..

First let’s define some things, which I see are not very clear, taking into account the type of question.

What is HTML?

HTML is a markup language, and serves basically to mark elements to indicate to the browser what it should display. In this case html works and is understood by your browser. And it alone does not "chatting" with a server or another browser or machine. These are static pages.

WHAT IS FRAME?

Frames are the internal divisions within the same browser window, that is, you have a common page, which has divisions where they are loaded N pages. Generally for your use you own a mother page, which calls the daughters.

Most common frame example:

  • 2 frames: 2 frames or 2 frames
  • 3 frames: 3 frames or 3 frames

So the frame is just html, If the two different points you refer to are simply the divisions, you can even "input information" from one division to the other. But not with html, but using js.

Now if you’re talking about two points being like mine and yours pc, and what I change here change there for example, is even possible to do as well. But again, not only with html, to do something like this, think more or less about the logic or format of a chat. Where I type here and appears to you in "real time".

In case, both you and I have the html chat ready on the screen, but the chat needs to access something that is common to both, which may turn out to be a database or simply a file .txt that contains the messages. But they need to check for changes, maybe by ajax, and if you find them, receive and change the message field.

Following more or less this logic, in the case of a form, two-piece pcs different, it is possible. However you need a place, file or database in order to share the information. And your application needs "listen to" that file, ie, check if there is change in the same done by some other point (pc), if available, click on my screen.

This would be a basic form, but if it is a form, it would need something more elaborate, so that two people do not change the same field at the same time. So this "control" of the same page of two different points is possible at a certain point, but I don’t know if it’s a good way to work. Depends a lot on what you want with it.

I hope I’ve been able to help in some way, any questions ask.

Att;

Sources:

What is html and what is it for?

HTML - Frames

Browser other questions tagged

You are not signed in. Login or sign up in order to post.