/    Sign up×
Community /Pin to ProfileBookmark

HTML and JavaScript need help :(

Hey!

how can access the methods that my object has in JavaScript ?
so..

In html i have this:
<head>
..
<script language=”JavaScript” src=”geral.js” type=”text/javascript”></script>
..
<head>
<body onload=”init()”

<object id=”OB” classid=”CLSID:285A526A-F94F-4A38-A9CF-EAFFDB8B47B1″ style=”width=”80″ height=”25″></object>
</body>
and in geral.js i have this
var obj = document.createElement(“object”);

function init()
{
obj.id=”OB”;
obj.classid=”CLSID:285A526A-F94F-4A38-A9CF-EAFFDB8B47B1″;
System.Gadget.Flyout.file = “flyout.html”;
System.Gadget.settingsUI = “Settings.html”;
System.Gadget.onSettingsClosed = loadParams;
System.Gadget.Flyout.onHide = loadParams;

OB.CommPort = 3;

OB.settings = “9600,n,8,1”;

loadParams();

//gadgetContent.innerText = OB.teste;
this it don’w work 🙁 it says:

“The object does not support property or method ‘teste'” -.-

}
Somebody can help me? thanks

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@JMRKERMar 23.2013 — Hey!

...

Somebody can help me? thanks[/QUOTE]

?

Not enough information given to be of any help. Do you have a link to the code so that all parts could be assessed?

Is this a problem between a combination of javascript and java?
×

Success!

Help @masder spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...