Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Intraweb site taking in multipe browser tabs


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 6 - Last Post: Sep 23, 2017 12:49 PM Last Post By: Dan Barclay
Ammu T

Posts: 9
Registered: 10/7/17
Intraweb site taking in multipe browser tabs  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 21, 2017 4:11 AM
I have a site in intraweb and it has multiple pages say login, about, contact, home and gallery
Suppose all the pages are visible only after login, and upon login we keeps the login userid in session. and we need to keep the same session in all pages.

Now I browse the site in mozilla and navigate to about page, from there opens the contact page in new tab.
Now the first tab has about and second tab has contact page opened up respectively.
Then from the second page navigate to galley, then when we opens the first tab and refresh the browser it changes to gallery page.
How can we avoid this and stay in the same page (about).

Can some one guide on this

Edited by: Ammu T on Sep 21, 2017 4:12 AM

Eitan Arbel

Posts: 508
Registered: 2/24/13
Re: Intraweb site taking in multipe browser tabs  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 21, 2017 7:07 AM   in response to: Ammu T in response to: Ammu T
i'm not so sure it can be done, unless the pages are HTMLs (not iw forms).
iw allows you to have only 1 from in the "front", and the UserSession unit knows at what form you are in at the time.

i think i would build the "About", "Contact" etc' pages as "regular" htmls, and that way you can refresh them without iw lose the "current page".
(i mean, the pages that doesn't change often)
Ammu T

Posts: 9
Registered: 10/7/17
Re: Intraweb site taking in multipe browser tabs  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 21, 2017 9:03 PM   in response to: Eitan Arbel in response to: Eitan Arbel
Hi Eitan,

Actually they are not simple html pages, I have lot more pages with IWForm, and need to retain session. Also in every page I need to show the details of logged in user, so they must be IWForm.

I have heard about AppMode and PageMode in intraweb, is it something related to this.

Eitan Arbel wrote:
i'm not so sure it can be done, unless the pages are HTMLs (not iw forms).
iw allows you to have only 1 from in the "front", and the UserSession unit knows at what form you are in at the time.

i think i would build the "About", "Contact" etc' pages as "regular" htmls, and that way you can refresh them without iw lose the "current page".
(i mean, the pages that doesn't change often)

Edited by: Ammu T on Sep 21, 2017 11:41 PM
Dan Barclay

Posts: 889
Registered: 11/9/03
Re: Intraweb site taking in multipe browser tabs  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 22, 2017 8:48 AM   in response to: Ammu T in response to: Ammu T
Ammu T wrote:
I have a site in intraweb and it has multiple pages say login, about, contact, home and gallery
Suppose all the pages are visible only after login, and upon login we keeps the login userid in session. and we need to keep the same session in all pages.

Now I browse the site in mozilla and navigate to about page, from there opens the contact page in new tab.
Now the first tab has about and second tab has contact page opened up respectively.
Then from the second page navigate to galley, then when we opens the first tab and refresh the browser it changes to gallery page.
How can we avoid this and stay in the same page (about).

Can some one guide on this

I'm not sure I completely understand what you are trying to do, but one option may be to implement each of the tabs in their own Region rather than separate forms (you'd probably want to use frames to help with design). As a region becomes active, make it visible and hide the others (leave them on the form, just hidden). If you set "render invisible controls" you can make them appear and disappear without re-rendering the entire form (async or javastuff).

That puts a lot of "meat" in the form, but that may be what you're looking for.

Another option is to make modal forms out of your pages, it's about the same thing conceptually but would operate a little different.

That said, I may have completely misunderstood what you're trying to do. If so, just ignore this post <g>.

Dan
Ammu T

Posts: 9
Registered: 10/7/17
Re: Intraweb site taking in multipe browser tabs  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 22, 2017 9:15 PM   in response to: Dan Barclay in response to: Dan Barclay
Hi Dan,

Sorry I don't think this is not what I am looking for. I want to browse the site in two tabs as independent entities (but they will share the session, so that logged in user details can be retained). So that when we are in tab one and at some page it should not affect the second tab, on refresh.

Dan Barclay wrote:
Ammu T wrote:
I have a site in intraweb and it has multiple pages say login, about, contact, home and gallery
Suppose all the pages are visible only after login, and upon login we keeps the login userid in session. and we need to keep the same session in all pages.

Now I browse the site in mozilla and navigate to about page, from there opens the contact page in new tab.
Now the first tab has about and second tab has contact page opened up respectively.
Then from the second page navigate to galley, then when we opens the first tab and refresh the browser it changes to gallery page.
How can we avoid this and stay in the same page (about).

Can some one guide on this

I'm not sure I completely understand what you are trying to do, but one option may be to implement each of the tabs in their own Region rather than separate forms (you'd probably want to use frames to help with design). As a region becomes active, make it visible and hide the others (leave them on the form, just hidden). If you set "render invisible controls" you can make them appear and disappear without re-rendering the entire form (async or javastuff).

That puts a lot of "meat" in the form, but that may be what you're looking for.

Another option is to make modal forms out of your pages, it's about the same thing conceptually but would operate a little different.

That said, I may have completely misunderstood what you're trying to do. If so, just ignore this post <g>.

Dan
Chad Hower

Posts: 613
Registered: 3/2/07
Re: Intraweb site taking in multipe browser tabs  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 23, 2017 11:43 AM   in response to: Ammu T in response to: Ammu T
On 9/23/2017 12:15 AM, Ammu T wrote:
Sorry I don't think this is not what I am looking for. I want to
browse the site in two tabs as independent entities (but they will
share the session, so that logged in user details can be retained).
So that when we are in tab one and at some page it should not affect
the second tab, on refresh.

You need to use a content handler for those and then link to the
session. ie serve a page using the session but not update the form list.
Dan Barclay

Posts: 889
Registered: 11/9/03
Re: Intraweb site taking in multipe browser tabs  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 23, 2017 12:49 PM   in response to: Ammu T in response to: Ammu T
Ammu T wrote:
Hi Dan,

Sorry I don't think this is not what I am looking for. I want to browse the site in two tabs as independent entities (but they will share the session, so that logged in user details can be retained). So that when we are in tab one and at some page it should not affect the second tab, on refresh.

See Chad's note.

I think the reason he's suggesting a custom handler is that the form handler deals with one form at a time. If you're trying to treat the tabs as two "form entities" it's not going to keep up with the second one when you update the first. In fact, automating the form navigation infrastructure an important feature.

If you want to use the form handler, one option is to use a single form but make it appear is two (or three or...). That works if you are only dealing with a few form layouts (or pages, or tabs, or whatever you want to call them). It's not a good solution if you want to have the equivalent of two sessions (all forms/navigation available) within one session so you'd need to roll your own with the custom handler.

The custom handler allows you to do pretty much whatever you want. I've used them for a few things, but not for this so I'm not going to be much help in that direction.

Dan
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02