How to display Subsonic in a frames page

Need help? Post your questions here.

Moderator: moderators

How to display Subsonic in a frames page

Postby Prem » Fri Nov 23, 2007 1:00 pm

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
Prem
 
Posts: 12
Joined: Tue Sep 25, 2007 5:59 pm

Postby sindre_mehus » Sat Nov 24, 2007 8:14 am

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
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby Prem » Thu Dec 27, 2007 8:20 pm

Yes, thank you Sindre, that worked.
I just deleted the whole section.
Prem
 
Posts: 12
Joined: Tue Sep 25, 2007 5:59 pm

Postby stebbi67 » Fri Jan 25, 2008 9:27 am

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
stebbi67
 
Posts: 9
Joined: Fri Jan 25, 2008 8:53 am


Return to Help

Who is online

Users browsing this forum: No registered users and 10 guests