zade_o Posted February 7, 2009 Author Share Posted February 7, 2009 ok so I made a java game for my free lance job… and the employer wants the website to change after the game is over...ie. you're on game.htm... playing the applet.... then you beat the game.... so the page changes to homepage.htmhow can I do that in java? Anyone know? that's all that's left before i get paid =( Link to comment Share on other sites More sharing options...
Jax_Dragon Posted February 9, 2009 Share Posted February 9, 2009 Try putting the code to load the applet in a PHP if statement. Then, when that statement is false, use the header() function to redirect to the page.Make the statement false when the applet is removed(don't know about that part) Link to comment Share on other sites More sharing options...
zade_o Posted February 9, 2009 Author Share Posted February 9, 2009 Little bit late. thanks for the reply though.I figured out by asking someone more advanced in java that there's actually java methods to do this.showDocument();I couldn't find that because it's really hard to get that as a result from a search in google…odd. But it's working now. Again, thanks though. Link to comment Share on other sites More sharing options...
Jax_Dragon Posted February 10, 2009 Share Posted February 10, 2009 @[PWN:> Ghost link=topic=38212.msg366802#msg366802 date=1234220517]> Little bit late. thanks for the reply though.> > I figured out by asking someone more advanced in java that there's actually java methods to do this.> > showDocument();> > I couldn't find that because it's really hard to get that as a result from a search in google…odd. But it's working now. Again, thanks though.Curses. My java skills are a little limited to everything required to make a Java text editor. Except for making a form for changing font, thats still giving me some trouble. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now