Ask your own question, for FREE!
Computer Science 27 Online
OpenStudy (anonymous):

how to automatically update a website when anything was updated in another one???

OpenStudy (anonymous):

just click the F5 button

OpenStudy (anonymous):

i mean when anything has been uploaded into the databse of another how to show it off in another website. i refer to a site similar to my http://www.mydala.com/

OpenStudy (anonymous):

i don't know

OpenStudy (carlsmith):

Are you looking to have the second site, the site that updates itself, show the update without user interaction? What I mean is, do you need to 'push' the changes to the site, so it'll show them without a refresh, like a chat-room or instant message post would, or do you only need the the change reflected on the second site, for all page views requested from the second site, after the change has occurred to the first?

OpenStudy (carlsmith):

There's a couple of ways you could approach it. It depends what effect you need.

OpenStudy (anonymous):

yes it is similar to that

OpenStudy (carlsmith):

Could you not just have the request handler from the first site, make a request to the second?

OpenStudy (anonymous):

well, i dont know the procedure of it as well as components that are required to do that . can you plz provide me the links dat will assist me!!!

OpenStudy (carlsmith):

It depends on how you're building the site. The problem is straight forward enough to resolve, but how you'd do it depends on how your site is built. Do you control the site, or do you just build pages with someone else hosting it? If you want to add something to a page directly, you'll need to use a bit of simple Javascript I reckon. If you can change the code on the servers, then a simple request handler would probably do it, but you need to state what language your app scripted in, before anyone could offer a code example.

OpenStudy (anonymous):

You could use an auto refresher scripts to auto update your page. meta refresh Code: <meta http-equiv="refresh" content="240;url= http://www.yourpage.com/index.html#bottom "> or the javascript method Code: <script type="text/javascript"> function refreshme(){ window.location=' http://www.yourpage.com/index.html#bottom'; } setTimeout("refreshme()",240000); </script> That would go in your head tags.

OpenStudy (anonymous):

You can use an iframe tag to the first site in the second. <iframe src="html_intro.asp" width="100%" height="300"> <p>Your browser does not support iframes.</p> </iframe> http://www.w3schools.com/tags/tag_iframe.asp

OpenStudy (carlsmith):

@Nfarrow Nice one mate. I put you a medal up. Welcome to OpenStudy.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!