>On 8/23/07, Pops <[EMAIL PROTECTED]> wrote:
>
> This code is basically part of  First, Prev, Next, Last, table
> navigator for our ad hoc report/table generator. It is pre-jQuery
> work.  So here I am using the $() function to get the element.
>
> function $(v) { return(document.getElementById(v)); }
> function gotoPrevPage()
> {
>   $("start").value -= 1*$("rows").value;    // <- WORKS AS EXPECTED
> }
>
> function gotoNextPageBUG()
> {
>   $("start").value += 1*$("rows").value;      // <- BUG!!
> }
>
> function gotoNextPageFIX()
> {
>   $("start").value -= -1*$("rows").value;   // <- FIX!!
> }
>

Hi Pops,
This is interesting. Maybe it's because $('start').value is considered
as string instead of integer? What was the property type from alert
anyway?

Regards,
Mike

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery (English)" group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to