Matt,
Thank you, I will try it right away! And I multiply the numbers right
away because before coming to jQuery and using plain old JS, I learned
that when dealing with numbers the best way to do it wasw multiply
everything by one, this forces JS to treat the numbers as numbers. For
example if I
Hmm, try putting both of those bindings inside of a function, and calling
that function in the event, liks so:
function bindVoteButtons() {
$("div.vote_against_selected").click(function(){
// ... change classes, etc
bindVoteButtons();
});
$("div.vote_against_selected").click(function(){
/
Matt:
Ah, of course ! Here ya go ;)
$("div.vote_against_selected").click(function(){
//first load content
$("div.storyinfo").load("/stories/vote/1/" + $storyid);
//then set up new value to display
$first_new_votes_for = $votes_for * 1 + 1;
$first_new_votes_against = $votes_against * 1 - 1;
if (
Ah, of course Matt, I apologize, here ya go :)
$("div.vote_for_selected").click(function(){
//first load content
$("div.divvoteinto").load("/stories/vote/2/" + $storyid);
//then set up new value to display
$new_votes_for = $votes_for * 1 - 1;
if ($new_votes_for == "") {
$new_votes_for = "0";
}
Some code samples would really be helpful here. You can copy any paste, just
change any info like URLs that you dont want us to know. Its hard to
describe a block of code using a paragraph of text :P
On 7/29/07, Jim Newfer <[EMAIL PROTECTED]> wrote:
>
>
> Hello everyone,
>
> I am quite new to jque
5 matches
Mail list logo