Ik heb een probleem met het gebruik van ScriptX in firefox. Ik heb de hele tekst zojuist opgesteld in het Engels om te kunnen posten in de nieuwsgroep van MeadCo (de maker van ScriptX) toen ik erachter kwam dat alleen gelicensede gebruikers dat kunnen. Daarom is de onderstaande begeleidende tekst in het engels.
I try to use ScriptX (version 6,2,433,70) with an internet application using Mozilla firefox. I've searched for almost 2 hours now but I can't find an answer to my problem.
First I used ScriptX as I'm supposed to:
- I included the object in the body (not between FORM-tags) like this:
Unfortunately, firefox gives me the following errors:
Anybody with some good advice? Thanks in advance,
I try to use ScriptX (version 6,2,433,70) with an internet application using Mozilla firefox. I've searched for almost 2 hours now but I can't find an answer to my problem.
First I used ScriptX as I'm supposed to:
- I included the object in the body (not between FORM-tags) like this:
- I call the following script which sets the printsettings, like this:<object id=factory style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="../archives/smsx.cab#Version=6,2,433,70">
</object>
- I have a button (or another script) call SetPrintSettings, followed by PrintDoc<script language="javascript" type="text/javascript">
function SetPrintSettings()
{
factory.printing.portrait = false;
factory.printing.leftMargin = 0.0;
factory.printing.topMargin = 0.0;
factory.printing.rightMargin = 0.0;
factory.printing.bottomMargin = 0.0;
}
function PrintDoc()
{ factory.printing.Print(true); }
</script>
Unfortunately, firefox gives me the following errors:
andWarning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead.
Source File: xxxxxx.php
Line: 10
I tried to do something about error (1). I changed the functions SetPrintSettings and PrintDoc (I changed nothing about the object)Error: factory.printing has no properties
Source File: xxxxx.php
Line: 10
This still results in the following errors:<script language="javascript" type="text/javascript">
function SetPrintSettings()
{
document.getElementById("factory").printing.portrait = false;
document.getElementById("factory").printing.leftMargin = 0.0;
document.getElementById("factory").printing.topMargin = 0.0;
document.getElementById("factory").printing.rightMargin = 0.0;
document.getElementById("factory").printing.bottomMargin = 0.0;
}
function PrintDoc()
{
document.getElementById("factory").printing.Print(true);
}
</script>
andError: Expected ':' but found 'none'. Declaration dropped.
Source File: xxxx.php Line: 0
I can tell you I'm really stuck here. I have good experiences with ScriptX when I use it with IE, but I want to start using it in Mozilla now.Error: document.getElementById("factory").printing has no properties
Source File: xxxxxx.php
Line: 10
Anybody with some good advice? Thanks in advance,