Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


problem with location.href



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
rajkumar001



Joined: 30 May 2008
Posts: 1

PostPosted: Fri May 30, 2008 10:46 am    Post subject: problem with location.href Reply with quote

function callme(form)
{
if(document.forms[0].elements[1].value=="ajax" && document.forms[0].elements[2].value=="ajax")
{
window.location.href = "home.jsp"
//document.location.href="http://localhos:8080/jsp-examples/tech_fb/retrieve1.jsp";
}
else
{
alert("--------");
}
}

I need the above code to check username and password. If they are correct then it goes to home.jsp otherwise it shows an alert box. Here the location.href wont work. Why it happens so? I have also tried window.open..it works. but i need a page to be open by overwrite the existing window and not a new one. How can i do this . Any help regard this would be appreciated...
Back to top
View user's profile Send private message
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 563
Location: Cebu City Philippines

PostPosted: Fri May 30, 2008 11:42 am    Post subject: Re: problem with location.href Reply with quote

Could you show us your markups (HTML) Wink
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap