alfonso
Posts: 121
|
| Posted: 04/06/2010, 9:21 AM |
|
Itīs possible using ajax or something like to do this?
I want to do a rating system like: "I like" "I donīt like" and then store this values in a database saving (1 or 0) and article id (article thatīs voted)
Then i need when a user click this link, value insert into the database without recharge the entire page, and in the box where appear the links "i like or i donīt like" says OK.thanks for your vote.
How can i do this?? Thanks a lot i donīt know if itīs possible
|
 |
 |
Waspman
Posts: 948
|
| Posted: 04/06/2010, 11:14 AM |
|
do it in an update panel
_________________
http://www.waspmedia.co.uk |
 |
 |
alfonso
Posts: 121
|
| Posted: 04/06/2010, 2:03 PM |
|
Thanks itīs true
|
 |
 |
Jan van Dalen
|
| Posted: 04/07/2010, 10:30 AM |
|
Hello Alfonso,
Alfonso, yes it is. Use the dbupdate (Ajax) and assigned it to the OnClick
event of the link. Work great.
The only problem I had was assigning an "Expression" to a field. This was
not working. Yes send me a patch ... but this was for ASP (not PHP).
BTW, the reason I use this functionality is to keep track of which users
are clicking on specific links.
Nother warning, IE 8.0 does not like some of the code produce, you will have
to add <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> on the
page.
Hope this helps.
> Itīs possible using ajax or something like to do this?
>
> I want to do a rating system like: "I like" "I donīt like" and then
> store this
> values in a database saving (1 or 0) and article id (article thatīs
> voted)
> Then i need when a user click this link, value insert into the
> database without
> recharge the entire page, and in the box where appear the links "i
> like or i
> donīt like" says OK.thanks for your vote.
> How can i do this?? Thanks a lot i donīt know if itīs possible
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
|
|
|
 |
|