Reference to title.
Is that possible to receive an information from game server and immediate update in our website?
Example of Game Server: http://maple.asiasoftsea.com/index
If possible, which method should I use?
Does it consider as illegal action?
Thank you very much.
P/S : Sorry if I put wrong the wrong tag. Because I don’t know which tag should I use. And sorry for asking a bad question.
And thank for those people who correct me.
You’ve let a lot out of your post, but I’m going to go really in depth regardless.
Yes it is possi…
…ble. I’m getting there.
Your best bet is to use jQuery.ajax(). This will allow you to update your website without your website being reloaded. This usually happens by clicking on a button, which will pull in the new information from wherever you’re getting it from.
You have to think about what the “game server” is using to display their content, however, and how you can retrieve it. I’m guessing that this content is not hosted on your own domain, so you’ll need to make a cross domain AJAX script. A good tutorial for this can be found here.
You mentioned that you want the page to automatically load the new content. The usual way an
AJAXrequest is made is through user interaction, but I suppose you could have it check for new content on an interval, or have it check the current content with the remote content and see if there are changes, and if there are, pull in the new content.Is it illegal to do this? If it’s your own site and your own content, then no. If it’s someone else’s, you should probably get their permission before using it.