ÐÂÀË΢²© µÇ½  ×¢²á   ÉèΪÊ×Ò³ ¼ÓÈëÊÕ²Ø

ѧPHP >> ×îÐÂÔ´Âë >> ajax poll ͶƱ

ajax poll ͶƱ

²é¿´´ÎÊý5826 ·¢±íʱ¼ä2010-06-16 23:29:39

³ÌÐòÃû³Æ£ºAJAX Poll
¿ª·¢Õß/×éÖ¯Ãû³Æ£ºEr. Rochak Chauhan
ÔËÐл·¾³£ºphp+mysql,php+Îı¾
¹Ù·½ÍøÕ¾£ºhttp://www.rochakchauhan.com/
ÏÂÔØµØÖ·£º
ÇëÏÂÔØ¸½¼þÖеÄÔ´Âë,²»ÒªÖ±½Ó¸´ÖÆ (ÒÑÏÂÔØ 860 ´Î)

ÎÄÕÂÀ´Ô´£ºhttp://www.OSphp.com.cn
³ÌÐò½éÉÜ£º
µã»÷ÔÚд°¿ÚÖÐä¯ÀÀ´ËͼƬ //PHP¿ªÔ´´úÂë
This class can be used to present and process a poll without reloading the page where it appears.

It uses an HTML template to present the poll page. The poll options appear as radio buttons in a place determined by the template.

The class also generates the necessary Javascript to submit the poll votes to the server and present the current poll results using AJAX.
#1) Include all the javascripts files. The first Javascrip file to be included should be prototype.js.

#2) The scores/votes are being read/written in txt files. You can change them to any database using vote.php

#3) To change the look and feel of the box, please edit template.html and/or stylesheet.css
(ת·¢Çë×¢Ã÷ת×Ô:ѧPHP)    


  Ïà¹ØÍÆ¼ö




  ·¢±íÆÀÂÛ
êdzƣº
(²»³¬¹ý20¸ö×Ö·û»ò10¸öºº×Ö)
ÄÚÈÝ£º