Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by isnoend2001
at 2024-07-12 08:07:58
Point:500 Replies:4 POST_ID:828964USER_ID:11865
Topic:
jQuery;;
Line 75 on this page
http://roofgenius.com/test9.asp
inVal=inVal==Int(inVal)?Int(inVal):inVal;
was told (int) was giving an error
Found this on the web:
Int
Definition: At one stage it was planned that specific data types would be introduced into the Javascript language. int is one the data types that would have been able to be explicitly defined. To allow for this int was a reserved word. The plan to allow specific data types in Javascript no longer exists and int is therefore no longer on the reserved word list in the latest standards. Since many people still use earlier browsers where this was defined as a reserved word you should avoid using it.
How to correct it ?
http://roofgenius.com/test9.asp
inVal=inVal==Int(inVal)?Int(inVal):inVal;
was told (int) was giving an error
Found this on the web:
Int
Definition: At one stage it was planned that specific data types would be introduced into the Javascript language. int is one the data types that would have been able to be explicitly defined. To allow for this int was a reserved word. The plan to allow specific data types in Javascript no longer exists and int is therefore no longer on the reserved word list in the latest standards. Since many people still use earlier browsers where this was defined as a reserved word you should avoid using it.
How to correct it ?
Expert: duncanb7 replied at 2024-07-12 08:40:59
Thanks for your points
Have a nice day
Duncan
Have a nice day
Duncan
Author: isnoend2001 replied at 2024-07-12 08:39:46
Thanks guys
Accepted Solution
Expert: duncanb7 replied at 2024-07-12 08:17:55
250 points EXCELLENT
use parseInt() to replace int()
Hope understand your question completely.if not, please point it out
Duncan
Hope understand your question completely.if not, please point it out
Duncan
Assisted Solution
Expert: Randy Poole replied at 2024-07-12 08:17:28
250 points EXCELLENT
inVal=inVal==Math.round(inVal)?Math.round(inVal):inVal;