dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: HTML and JavaScript need help :(

  1. #1
    Join Date
    Mar 2013
    Posts
    1

    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

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,443

    Question

    Quote Originally Posted by masder View Post
    Hey!

    ...

    Somebody can help me? thanks

    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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles