Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

action without page reload??

Status
Not open for further replies.

polarz

Programmer
Mar 17, 2002
6
US
I'm trying recreate one of my favorite card games "500" in php and am not sure how to go about coding the actions without reloading the entire page over again. It takes way too long to reload everything on a page after each player plays a card. If anyone has any advice on how to alter certain objects on a page without a reload I'd really appreciate some advice. Thanks

polarz
 
A good solution would be to use javascript layers for netscape and floating frames for IE I guess.
Thus, you would reload only small areas (such as cards for example) instead of reloading the whole page.

It is possible to load pages inside layers in Netscape.

The basics:

For IE: window.document.frames.content.location.href=page;
For Netscape: document.layers['content'].src=page;

There is also a way to blend it altogether to make the whole thing cross-browser on a single page.

Have a good day!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top