CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Insert value in DB clicking a link

Print topic Send  topic

Author Message
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
View profile  Send private message
Waspman

Posts: 948
Posted: 04/06/2010, 11:14 AM

do it in an update panel ;-)
_________________
http://www.waspmedia.co.uk
View profile  Send private message
alfonso

Posts: 121
Posted: 04/06/2010, 2:03 PM

Thanks itīs true ;-)
View profile  Send private message
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/


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright Đ 2003-2004 by UltraApps.com  and YesSoftware, Inc.