Hi.
Example url (Javascript):
If you call the url with JS window.open (from the plugin page) or just past it into the browser url bar, you get the content but without the leftcontent/rightcontent frames or any of the frames higher up in the hierarchy. So no player in the rightcontent frame, no player selection etc.Code:webroot + 'clixmlbrowser/clicmd=browselibrary+items&mode=albums&linktitle=Artist%20(ArtistName)&artist_id=1234&player=' + player + '/index.html';
Is it possible to open a browse url in the leftcontent frame of the LMS default skin and not lose all the usual (wrapping) frames?
I know you can usually target specific frames (with target). But the url call comes from a LMS plugin website outside the default skin's frame set. I have no experience with SqueezeJS. So if that's part of a solution, I'd appreciate a hint.
Thank you.
Results 1 to 6 of 6
-
2022-07-06, 03:36 #1
- Join Date
- Jul 2010
- Location
- Oz
- Posts
- 445
Open url in default skin's leftcontent frame?
Last edited by AF1; 2022-07-07 at 02:05.
-
2022-07-18, 23:11 #2
Open url in default skin's leftcontent frame?
I think it should be possible by passing the above URL appended to the
main index.html/ (with the slash as a separator). I'm still traveling
without code, so can't verify. But maybe you can play with this. See
https://github.com/Logitech/slimserv...e202ba82f271a2
--
Michael
-
2022-07-19, 06:06 #3
- Join Date
- Jul 2010
- Location
- Oz
- Posts
- 445
Thank you! Inserting index.html/ after webroot works - on Firefox, Chrome and Edge. But not in Safari. The Safari browser console shows no errors.
The link opens what seems to be the home/player main page in Safari. But clickling any link in the left pane opens another leftcontent frame inside the existing one (only left pane). Like a Russian doll.
If nothing else works, I'll probably have to single out Safari with Ext.isSafari and open the page without the wrapping frames across the entire page width (as it does now). Not a nice look but still better than no action or errors.
Used to be IE that complicated things, now it's Safari.Last edited by AF1; 2022-08-02 at 06:40.
-
2022-08-03, 05:33 #4
- Join Date
- Jul 2010
- Location
- Oz
- Posts
- 445
Try to open a url similar to the one below in Safari:
Code:http://127.0.0.1:9000/index.html/clixmlbrowser/clicmd=browselibrary+items&mode=albums&linktitle=Artist%20(ARTISTNAME)&artist_id=1802&player=00%3A0A%3A1B%3A2C%3A4D%3A5E/index.html
If you have any ideas on how to make this work, please let me know. Thanks.
-
2022-08-03, 08:53 #5
Could you please apply the following simple patch, restart LMS, wipe browser caches, then try again?
Code:diff --git a/HTML/Default/index.html b/HTML/Default/index.html index bd0607891..da9fc54af 100644 --- a/HTML/Default/index.html +++ b/HTML/Default/index.html @@ -111,6 +111,8 @@ if (frames.browser.location) frames.browser.location.href = navigationUrl; + else if (document.browser.location) + document.browser.location.href = navigationUrl; if (Ext.ux.Lightbox) { Ext.ux.Lightbox.labelOf = '[% "OF" | string %]';
Michael
"It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
(LMS: Settings/Information)
-
2022-08-03, 11:32 #6
- Join Date
- Jul 2010
- Location
- Oz
- Posts
- 445