NaN returned in Firefox
This is an open discussion with 1 reply, filed under Troubleshooting.
Search
Figured out the issue. I was landing on pages that had the @current-page=""
instead of @current-page="1"
. So i really was not getting a number returned. that's why it always corrected itself when i changed pages.
Create an account or sign in to comment.
I'm doing some math with
xslt
to find a low number and a high number to see which number elements you're viewing (1 to 60 of 100
). In safari, when you first load the page, you get the initial numbers correctly. However, when firefox is loaded, i getNaN to NaN of 100
. But when i go to the next page the numbers show up fine (61 to 100 of 100
).i find this kind of odd simply b/c i thought all the
xslt
was done server side and then spit out intohtml
. But I guess i am mistaken here. I have tried wrapping all my values inside thenumber()
function and then doing the math that way, but that still didn't seem to work.does anyone have any suggestions? has anyone else encountered this strange behavior? could it be that since i'm selecting my values from an
@attribute
that's why theNaN
is showing up in Firefox?