-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load external URL into Panel without iframe ? #204
Comments
Using contentAjax I can load my site into a panel, but clicking on a link then loads that link out of the panel. Is there anyway to get the links from within one panel to open within that panel ? |
On my opinion ,
The link must call javascript which will close the
Current Jspanel
And open new Jspanel with new contacts.
Avi hafner
…Sent from my Galaxy
-------- Original message --------
From: MadTomT ***@***.***>
Date: 5/23/23 21:57 (GMT+09:00)
To: Flyer53/jsPanel4 ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [Flyer53/jsPanel4] Load external URL into Panel without iframe ? (Issue #204)
Using contentAjax I can load my site into a panel, but clicking on a link then loads that link out of the panel. Is there anyway to get the links from within one panel to open within that panel ?
—
Reply to this email directly, view it on GitHub<#204 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACHRXR2OELDXBT3M3CL4DZTXHSXZZANCNFSM6AAAAAAYLVGGZU>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
External e-mail, be judicious when opening attachments or links
|
@MadTomT You could use the global method jsPanel.ajax() (or any other ajax library) to get the new content in order to add/append it to the existing panel in any way you want. |
Thanks for the replies, Sorry if I wasn't clear. Within my site are multiple hyper links. Normally if I open the site in a browser tab and click one of the hyper links the result page is opened within the same browser tab. When I load my site in to a panel using contentAjax, it appears to load correctly, but when I click on a link the page is loaded in the browser tab not within the enclosing panel. If I use iFrames instead of contentAjax it works, but I have concerns regarding security and iFrames. Is there anyway for the links to be told to open within the active panel ? Thanks |
Just to add to this, the pages also have forms with submit buttons. Thanks |
@MadTomT Based on this I would not have any security concerns using iFrames. Since iFrames set up their own environment/execution context which is completely independent from the host page it should be pretty safe I think. In fact I think it's even more safe than another solution. I hope I didn't mix up things completely. I didn't do any coding for quite a while ... 😏 |
Is it possible to load an external URL into a panel without using content iFrame ?
and keep all links opened within the page within the same panel ?
Thanks
The text was updated successfully, but these errors were encountered: