Page 1 of 1

How to display Subsonic in a frames page

PostPosted: Fri Nov 23, 2007 1:00 pm
by Prem
I access much applications through a certain web application, and use HTML frames pages or inline frames.
Subsonic maximizes itself to 'full page' login screen when displayed in a frame, what can I do with the source code in order to display Subsinoic inside a frame?

Thanks
Prem

PostPosted: Sat Nov 24, 2007 8:14 am
by sindre_mehus
Hi Prem,

The relevant code is in login.jsp:

Code: Select all
<script type="text/javascript">
        if (window != window.top) {
            top.location.href = location.href;
        }
    </script>


You could try to modify this according to your needs.

Hope this helps,
Sindre

PostPosted: Thu Dec 27, 2007 8:20 pm
by Prem
Yes, thank you Sindre, that worked.
I just deleted the whole section.

PostPosted: Fri Jan 25, 2008 9:27 am
by stebbi67
I have played with this code :

Code: Select all
<script type="text/javascript">
        if (window != window.top) {
            top.location.href = location.href;
        }
    </script>


In this file : /apache-tomcat-5.5.25/webapps/subsonic/WEB-INF/jsp/login.jsp

back and forward. I have removed it like Prem did but still no luck.

If the frame name is "main" how would I modify the script?

Thanks,

Stebbi67