Closed
Bug 319318
Opened 19 years ago
Closed 15 years ago
javascript functions are not communicating correctly with viewpoint media player.
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: marcelo.muniz, Unassigned)
Details
(Keywords: regression, Whiteboard: [closeme 2010-01-20])
Attachments
(1 file)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8) Gecko/20051111 Firefox/1.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8) Gecko/20051111 Firefox/1.5 The following code is correctly working on the previews firefox version. function PlaceWheels(){ var rotatey180 = 0 + ' ' + 180 + ' ' + 0; var loc = vmp.GetProperty('MTSInstance.Wheel_FrontLeft', 'loc_', 'mts_pnt3d'); vmp.SetProperty('MTSInstance.wheel_01', 'loc_',loc, 'mts_pnt3d'); loc = vmp.GetProperty('MTSInstance.Wheel_RearLeft', 'loc_', 'mts_pnt3d'); vmp.SetProperty('MTSInstance.wheel_02', 'loc_',loc, 'mts_pnt3d'); vmp.SetProperty('MTSInstance.wheel_03', 'rot_', rotatey180, 'mts_pnt3d'); loc = vmp.GetProperty('MTSInstance.Wheel_FrontRight', 'loc_', 'mts_pnt3d'); vmp.SetProperty('MTSInstance.wheel_03', 'loc_',loc, 'mts_pnt3d'); vmp.SetProperty('MTSInstance.wheel_04', 'rot_', rotatey180, 'mts_pnt3d'); loc = vmp.GetProperty('MTSInstance.Wheel_RearRight', 'loc_', 'mts_pnt3d'); vmp.SetProperty('MTSInstance.wheel_04', 'loc_',loc, 'mts_pnt3d'); // scale var size = Number(tire_s); var scale_factor = (size+2)/size; scale_factor = scale_factor + ' ' + scale_factor + ' ' + scale_factor; vmp.SetProperty('MTSInstance.Alloy_01', 'scl_',scale_factor, 'mts_pnt3d'); vmp.SetProperty('MTSInstance.Alloy_02', 'scl_',scale_factor, 'mts_pnt3d'); vmp.SetProperty('MTSInstance.Alloy_03', 'scl_',scale_factor, 'mts_pnt3d'); vmp.SetProperty('MTSInstance.Alloy_04', 'scl_',scale_factor, 'mts_pnt3d'); // uncollapse vmp.SetProperty('MTSInstance.wheel_01', 'clps',0, 'mts_int'); vmp.SetProperty('MTSInstance.wheel_02', 'clps',0, 'mts_int'); vmp.SetProperty('MTSInstance.wheel_03', 'clps',0, 'mts_int'); vmp.SetProperty('MTSInstance.wheel_04', 'clps',0, 'mts_int'); vmp.Render(); } This function simply get/set some viewpoint properties from viewpoint models. Reproducible: Always I'm using the default Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8) Gecko/20051111 Firefox/1.5 installation.
Reporter | ||
Comment 1•19 years ago
|
||
After tried to see the webpage with viewpoint, my firefox crashed.. and gave me the following message. It doesn't open anymore. I'll have to re-install it.
Reporter | ||
Comment 2•19 years ago
|
||
I found the bug. when I run the following javascript line: var loc = vmp.GetProperty('MTSInstance.Wheel_FrontLeft', 'loc_', 'mts_pnt3d'); I receive the following string: "n,nnnn n,nnnnn n,nnnn" where n is a number. The problem is that now the decimal divisor is ',' instead of '.'. If I run the same javascript line on the older firefox or IE it returns me "n.nnnn n.nnnnn n.nnnn" As I need to do math operations if the numbers, and the decimal divisor is wrong it crashes my application. It seems that the new firefox plugin communication gets regional setting for decimal divisor. Please fix this. It crashes all viewpoint javascript programs.
Comment 3•19 years ago
|
||
Thanks for the precise additional information! Adding Brian to get his input on that.
Comment 4•15 years ago
|
||
can you still reproduce this?
Comment 5•15 years ago
|
||
Viewpoint media player is blocklisted.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•