473,398 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

missing : after property id error

Hi,

I don't have any clue with Javascript but I use one from Sun for Java applet
deployement (http://java.com/js/deployJava.js).

The parameters of my applet are generated according to user's choices. I
have a case with error "missing : after property id" on line 816.

Thanks in advance for any help.
Pierre

The script :
<script>
788 var attributes =
789 {
790 code: 'concentrationapplet.ConcentrationApplet.class',
791 width: 680,
792 height: 450,
793 archive:
'JFreeChart/jfreechart-0.9.21.jar,JFreeChart/jcommon-0.9.6.jar,Concentration.jar',
794 codebase: 'http://localhost:8080'
795 };
796
797 var parameters =
798 {
799
800 subsNo: 3,
801
802 substance: 'ACENOCOUMAROL',
803
804 T12: 10.00000,
805
806 Q0: 1.00000,
807
808 substance2: 'AMPRENAVIR',
809
810 substance3: 'ALPRAZOLAM',
811
812 T123: 13.00000,
813
814 Q03: 0.70000,
815
816 Ki_2_1_3A4/5: 0.05561, // error here !!!
817
818 listKi: 'Ki_2_1_3A4/5;'
819
820 };
821
822 var version = '1.5.0';
823
824 deployJava.runApplet (attributes, parameters, version);
825 </script>


Jun 27 '08 #1
5 3300
On Jun 3, 11:23*am, "1 connu" <incon...@bluewin.chwrote:
Hi,

The parameters of my applet are generated according to user's choices. I
have a case with error "missing : after property id" on line 816.

816 Ki_2_1_3A4/5: 0.05561, // error here !!!
"Ki_2_1_3A4/5" is not a valid name : the problem is the slash "/".

--Jorge.
Jun 27 '08 #2
I put quotes and the problem disappears.

'Ki_1_2_3A4/5': 0.05561,
"1 connu" <in******@bluewin.cha écrit dans le message de news:
45***************************@news.hispeed.ch...
Hi,

I don't have any clue with Javascript but I use one from Sun for Java
applet deployement (http://java.com/js/deployJava.js).

The parameters of my applet are generated according to user's choices. I
have a case with error "missing : after property id" on line 816.

Thanks in advance for any help.
Pierre

The script :
<script>
788 var attributes =
789 {
790 code: 'concentrationapplet.ConcentrationApplet.class',
791 width: 680,
792 height: 450,
793 archive:
'JFreeChart/jfreechart-0.9.21.jar,JFreeChart/jcommon-0.9.6.jar,Concentration.jar',
794 codebase: 'http://localhost:8080'
795 };
796
797 var parameters =
798 {
799
800 subsNo: 3,
801
802 substance: 'ACENOCOUMAROL',
803
804 T12: 10.00000,
805
806 Q0: 1.00000,
807
808 substance2: 'AMPRENAVIR',
809
810 substance3: 'ALPRAZOLAM',
811
812 T123: 13.00000,
813
814 Q03: 0.70000,
815
816 Ki_2_1_3A4/5: 0.05561, // error here !!!
817
818 listKi: 'Ki_2_1_3A4/5;'
819
820 };
821
822 var version = '1.5.0';
823
824 deployJava.runApplet (attributes, parameters, version);
825 </script>


Jun 27 '08 #3
Thanks Jorge, you are right, I fix it with quotes.

Pierre

"Jorge" <jo***@jorgechamorro.coma écrit dans le message de news:
5b**********************************...oglegroups.com...
On Jun 3, 11:23 am, "1 connu" <incon...@bluewin.chwrote:
Hi,

The parameters of my applet are generated according to user's choices. I
have a case with error "missing : after property id" on line 816.

816 Ki_2_1_3A4/5: 0.05561, // error here !!!
"Ki_2_1_3A4/5" is not a valid name : the problem is the slash "/".

--Jorge.
Jun 27 '08 #4
On Jun 3, 11:37*am, "1 connu" <incon...@bluewin.chwrote:
Thanks Jorge, you are right, I fix it with quotes.
Hmm, thank you Pierre, I never thought that a property's name could be
"~anyText" :

<html><head>
<script>
window.onload= function () {
var o= {
'./=88Ki_2_1_3A4/5': 0,
'/=88Ki_2_1_3A4/5': 1,
'=88Ki_2_1_3A4/5': 2,
'88Ki_2_1_3A4/5': 3,
'{Ki_2_1_3A4/5': 4,
'[i_2_1_3A4/5': 5,
'\\2_1_3A4/5': 6
};
for (property in o) { alert(property+": "+o[property]) }
};
</script></head><body></body></html>

--Jorge.
Jun 27 '08 #5
Jorge wrote:
On Jun 3, 11:37 am, "1 connu" <incon...@bluewin.chwrote:
>Thanks Jorge, you are right, I fix it with quotes.

Hmm, thank you Pierre, I never thought that a property's name could be
"~anyText" :
But subsections 11.1.5 and 11.2.1 of the ECMAScript Specification, Edition 3
Final (and other sections of previous editions), say so :) (Note that this
also includes the empty string.)

This feature of ECMAScript implementations makes Object objects extremely
useful for the implementation of what is known as a dictionary e.g. in
Python, and augmented Array objects for the implementation of what is known
as an associative array e.g. in PHP. As for the former, I remember to have
posted an example for a customer address book recently:

<news:48**************@PointedEars.de>

BTW, while searching for it, I found this article that you were interested
in: <news:48**************@PointedEars.de>. There's at least one other:
<news:48**************@PointedEars.de>
HTH

PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: 4Space | last post by:
I'm trying to write a plugin for visual studio, but I've hit a snag with a property that should be there, but kind of isn't. private bool IsProjectThemed( EnvDTE.Project project ) { try { if...
0
by: scpedicini | last post by:
Okay, I've been having a problem with custom design-time properties that has been driving me nuts for about a week. The control that I'm working on extends System.Windows.Forms.AxHost, but I'm...
4
by: TW Scannell | last post by:
Hello, When I try to change the Anchor property of a textbox, from "Top, Left" to all four sides I get an "Invalid Property Value" Error. The details state "Cannot widen from target type to...
9
by: Taishi | last post by:
ExecuteReader: Connection property has not been initialized. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more...
11
by: king kikapu | last post by:
Hi to all, i am trying to use properties in Python and i am sure i have made something wrong with the below code but i just cannot see what it is. Can anyone please help me on this ? The...
7
by: Greg | last post by:
Visual Studio - Line numbers missing from error list I'm writing an app in ASP.NET using VS 2005. There are no line numbers with the build errors reported. Any suggestions? I can't find any...
11
by: Andrus | last post by:
I'm implementing entity object which should populate its properties from database when property is first referenced. In RDL reports I use object properties like MyObject.MyProperty MyObject...
3
by: anupamadatta | last post by:
Hi there, I am trying to execute one Insert query using Pro C . the Insert query is as below: Prepared statement is : stmnt.len = sprintf((char*)stmnt.arr, "INSERT INTO %s ("...
6
by: ljstern | last post by:
Hello. I am using MS Access 2003 with XP/pro. I have a form that has the following properties set through the property sheet: form: AllowAdditions = False CartridgeID field: Locked = True ...
0
acoder
by: acoder | last post by:
Problem When setting the FORM object's action property an "Object does not support this property or method" error occurs Browser Internet Explorer 6- Example The Javascript code: var...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.