±À¤¶:| ­^»y½Òµ{ | Causeway Bay order food | ¾·~­^»y | ¤Æ§©½Òµ{ | Wedding Photography | ¤Ñµ¡¨÷¥¬§ó´«ºû­× |

µo·s¸ÜÃD
¥´¦L

ºô­¶¤£·|¦Û°Ê§ó·s°ÝÃD(asp)

If you want your web page to auto refresh, one of the simplest method is to add in the following code inside the head tag:

<meta http-equiv="refresh" content="5" >

The attribute http-equiv="refresh" calls for refresh of the page, 5 menas it will refresh every 5 seconds.

You should set the time to above 5 seconds because you have to consider the page reload time.

TOP

You have to ask the question correctly else it is very difficult for other to help you.

I now understand what you want......

Just add a sub to submit the form when you have updated the info, then you will see the new data.

TOP

¤Þ¥Î:
­ì©«¥Ñ usnameless ©ó 2007-2-2 07:47 µoªí


¤@¯ëûHASP¥ÎVBScript access§¹Database ¤§«á, ±Ndata presents ¦n´N©ñ¤Jhtml ¤¤°e¨ì browser for display.  ¤§«á¦pªGdata ¦b database ¤¤³Q§ï°Ê, browser ¤¤ûHhtml«Y­ø·|¦Û°Ê³Qupdateªº.  §A¥i¥H¦n¦ü¼Ó¤WËÝÁ¿ ...
You are right that ASP will not auto fresh the page, but you can add a sub-routine such as button1_onclick, or if you have change something in the pull down menu, or change some text box you can use like:

Sub xxxx_onchange
  document.formx.submit()
end sub

In this case once you update the data say from ABC XYZ to DEF MNO, it will submit the form automatically and refresh the page, then you can see the new changed data immediately.

To refresh the page after you change the data in the form, you should add the line formx method= post action = abc.asp


¬ÛÃö·j¯Á¥Ø¿ý: Database

TOP

It all depands on the application and what the programmer wants. In his earler post he mention that when he changed from ABC BBQ to BBQ ABC, the page will not show the changed until he clicks the refresh button. So, in order to show the new data without clicking the re-fresh button you can either (1) have auto re-refresh every x seconds, but this will eat up the resources, or (2) when there are changes, detect the changes and post the page again, although this involve a bit of codes, but you cannot get something from nothing right?

As for the bank, it is true that example Hang Seng and HSBC after you have done some transactions, the account summary will not show the new balance until you click the refresh. But HSBC of some branches example HSBC Malaysia, the account summary will show you the correct balance without clicking the refresh button.

So it depands on what you want the page to look like.


¬ÛÃö·j¯Á¥Ø¿ý: BBQ

TOP

µo·s¸ÜÃD


­«­nÁn©ú¡G¥»°Q½×°Ï¬O¥H§Y®É¤W¸ü¯d¨¥ªº¤è¦¡¹B§@¡A¥»ºô¯¸¹ï©Ò¦³¯d¨¥ªº¯u¹ê©Ê¡B§¹¾ã©Ê¤Î¥ß³õµ¥¡A¤£­t¥ô¦óªk«ß³d¥ô¡C¦Ó¤@¤Á¯d¨¥¤§¨¥½×¥u¥Nªí¯d¨¥ªÌ­Ó¤H·N¨£¡A¨Ã«D¥»ºô¯¸¤§¥ß³õ¡A¥Î¤á¤£À³«H¿à¤º®e¡A¨ÃÀ³¦Û¦æ§PÂ_¤º®e¤§¯u¹ê©Ê¡C©ó¦³Ãö±¡§Î¤U¡A¥Î¤áÀ³´M¨D±M·~·N¨£(¦p¯A¤ÎÂåÀø¡Bªk«ß©Î§ë¸êµ¥°ÝÃD)¡C¥Ñ©ó¥»°Q½×°Ï¨ü¨ì¡u§Y®É¤W¸ü¯d¨¥¡v¹B§@¤è¦¡©Ò³W­­¡A¬G¤£¯à§¹¥þºÊ¹î©Ò¦³¯d¨¥¡A­YŪªÌµo²{¦³¯d¨¥¥X²{°ÝÃD¡A½ÐÁpµ¸§Ú­Ì¡C¥»°Q½×°Ï¦³Åv§R°£¥ô¦ó¯d¨¥¤Î©Úµ´¥ô¦ó¤H¤h¤W¸ü¯d¨¥¡A¦P®É¥ç¦³¤£§R°£¯d¨¥ªºÅv§Q¡C¤Á¤Å¼¶¼g²Ê¨¥Â©»y¡B½ÚÁ½¡B´è¬V¦â±¡¼É¤O©Î¤H¨­§ðÀ»ªº¨¥½×¡A·q½Ð¦Û«ß¡C¥»ºô¯¸«O¯d¤@¤Áªk«ßÅv§Q¡C


Copyright 1997- Xocat. All Right Reserved.