±À¤¶:| ­×²z³»½´¥¬ | Mediator course | Hypnosis course | Dream Interpretation | NLP | English course |

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

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

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

§Ú·Q°Ý0¤UÂI¸Ñ§Ú¥Îasp ¾ã§¹­Óºô­¶¤§«á
¨C·í§Údatabase update 0¥ª³¥¡AÊ\³£­ø·|§ó·s¡A­n§Úclick refresh ¥ý±o©O?
«Y«§°ÝÃD©O?
thx


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

TOP

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

¤Þ¥Î:
­ì©«¥Ñ koon ©ó 2007-1-7 06:24 AM µoªí
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" >

T ...
¨ä¹ê§Ú­ø«Y·Q­n¥§¼Ë³¥

for example:

the page before I edit, and the first time I use browser was:

ABC BBQ
----------------------

After I updated the page like this:

BBQ ABC
---------------------

But after I enter the same URL, it remains:

ABC BBQ
----------------------


So I post this thread to ask how to update the page automatically without I use "Refresh buttom" to refresh the page, I don't need the page update every N seconds.

But nevermind, thank you for your reposonse


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

TOP

why u update the db instead of the asp page???

TOP

¤Þ¥Î:
­ì©«¥Ñ s.vicente14 ©ó 2007-1-17 04:49 PM µoªí
why u update the db instead of the asp page???
You misunderstand what I mean......

here is what I want to show in abc.asp orginally:

ABC BBQ

I open the browser then see what I enter, but then I edit abc.asp as follow:

BBQ ABC

I enter the same URL/or open a new broswer, the result remains ABC BBQ, it change the value to BBQ ABC until I click "Refresh" button of broswer

My question is, how to automatically update the content without I click the "Refresh" Button, is it related to the history of browser?


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

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

Do you mean this ?



In the I.E. browser menu, select

Tools
Internet Options ...
General/Temporary Internet files / <Settings...>

In the "Every visit to the page", select "Check for newer version of stored pages"
¤H­ø§@¥XÄ묹, «Y­ø·|±o¨ì¥ô¦ó¦¬Àò, ­n±o¨ì¤@¼Ë³¥, ¥²©w­n¥I¥X¹ïµ¥嘅¥N»ù

TOP

¦¬¯q­ê浅¡A谢谢搂¦í¡I¡I¡I¦A±µ¦A厉¡I

TOP

¤Þ¥Î:
­ì©«¥Ñ saxontse ©ó 1/6/2007 08:06 AM µoªí
§Ú·Q°Ý0¤UÂI¸Ñ§Ú¥Îasp ¾ã§¹­Óºô­¶¤§«á
¨C·í§Údatabase update 0¥ª³¥¡AÊ\³£­ø·|§ó·s¡A­n§Úclick refresh ¥ý±o©O?
«Y«§°ÝÃD©O?
thx
¤@¯ëû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ËÝÁ¿¥hset auto-refresh.  ¦ý­n¦Ò¼{ûH«Ysystem resource.  ¦pªG¨C­Óweb client/browser ¨C5¬í³£query database ¤@¦¸, ËÝ·|©ì§C performance.
¨ä¹ê¤@¯ëûHweb-base application ³£­ø·|ËÝ°µ.  ³o¥ç«Yweb-base application ûHshort-coming.


¬ÛÃö·j¯Á¥Ø¿ý: Database
­ø¦n¸ÜÂ÷¶}咗¤G¤Q¦~, §Y¨Ï¨ì¦ºo­Ó¤é§Ú³£·|«Y­»´ä¤H!!!

TOP

¤Þ¥Î:
­ì©«¥Ñ usnameless ©ó 2007-2-1 23: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ËÝÁ¿ ...
¥§­Ó¯u«Y§Ú·Qª¾¬Jµª®×
ÁÂÁÂ


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

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

¤Þ¥Î:
­ì©«¥Ñ koon ©ó 2/3/2007 03:55 AM µoªí

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  ...
¨ä¹ê³£­ø¬~codeËݦh嘢, ¼Ó¥Drefresh­Óclient¤w¸g¥i¥H.  °ÝÃDÃöÁä«Y, ­ø¦ü¤@D client/server application, data in database³Qupdated, web-client «Y¦nÃø³Q³qª¾¦Óupdate displayºòûHinformation accordingly.  ¨Ò¦p§Aon-line banking®É check§A­Óaccount balance, ¾÷¥GµLweb-application·|synchronize the dispalyed balance with the database after the initial request.  Data¥u·|«Yfor reference only.  ¤S¦n¦üºô¤WÁʪ«¶R­¸, ¨£¨ì¦³³£¤£¤@©w¶R¨ì, ª½¦Üpayment confirmed, §A¥ýª¾¹D.  ¦³D seller ¦n¤HD, §Aproceed to check-out®ÉÊ\¤wÀ°§Ahold ¦í¥ó³f/D ­¸ until session expire.

[ ¥»©«³Ì«á¥Ñ usnameless ©ó 2007-2-5 12:34 ½s¿è ]


¬ÛÃö·j¯Á¥Ø¿ý: Database Áʪ«
­ø¦n¸ÜÂ÷¶}咗¤G¤Q¦~, §Y¨Ï¨ì¦ºo­Ó¤é§Ú³£·|«Y­»´ä¤H!!!

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.