Search This Blog

Showing posts with label redirection. Show all posts
Showing posts with label redirection. Show all posts

Monday, April 27, 2015

JAVASCRIPT/ JQuery Page Redirection

 

JAVASCRIPT/ JQuery Page Redirection

 

1. window.location.href="http://www.yahoo.com";

2. window.history.back(-1);                                     //  back

3. window.navigate("top.jsp");                                  // old-IE-only

4. self.location="top.htm";

5. top.location="error.jsp";

6. window.location = window.location.host;

7. $(location).attr('href',"http://www.yahoo.com");            //jQuery

8. $(window).attr("location","http://www.yahoo.com");        //jQuery

9. window.location.replace("http://www.yahoo.com");

10. window.location.assign("http://www.yahoo.org");

11. document.location.href = '/path';

12. window.history.go(-1);                                     //  back

13. $(location).prop('href',"http://www.yahoo.com");          //  jquery 

14.setTimeout(function(){
              window.location.href="<%=url%>"; // redirect after 5 seconds
   }, 5000);
 

Monday, September 30, 2013

Session timeout redirection

The session timeout can be handled using few properties in the portal-ext.properties file. .

# Extending session automatically
session.timeout.auto.extend=false



#This property can be used to redirect to home page when the session expires.
session.timeout.redirect.on.expire=true

#Set the login url
auth.login.url=/web/guest/home


note :
for session.timeout.warning=30,
#it is redirects to http://localhost:8080/web/guest/home

for session.timeout.warning=0,
#it is redirects to
#http://localhost:8080/web/guest/home?p_p_id=58&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&saveLastPath=0&_58_struts_action=%2flogin%2flogin&_58_redirect=%2fweb%2f10311%2fwelcome

My Blog List