[ALG] ScriptX probleem in firefox

Pagina: 1
Acties:
  • 32 views sinds 30-01-2008

  • jumanne
  • Registratie: Augustus 2006
  • Laatst online: 03-01-2022
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:
<object id=factory style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="../archives/smsx.cab#Version=6,2,433,70">
</object>
- I call the following script which sets the printsettings, like this:
<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>
- I have a button (or another script) call SetPrintSettings, followed by PrintDoc

Unfortunately, firefox gives me the following errors:
Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead.
Source File: xxxxxx.php
Line: 10
and
Error: factory.printing has no properties
Source File: xxxxx.php
Line: 10
I tried to do something about error (1). I changed the functions SetPrintSettings and PrintDoc (I changed nothing about the object)
<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>
This still results in the following errors:
Error: Expected ':' but found 'none'. Declaration dropped.
Source File: xxxx.php Line: 0
and
Error: document.getElementById("factory").printing has no properties
Source File: xxxxxx.php
Line: 10
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.

Anybody with some good advice? Thanks in advance,

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 22-01 23:51

NMe

Quia Ego Sic Dico.

Sorry, maar als jij je probleem niet eens wil vertalen naar het Nederlands voor een Nederlands forum, dan getuigt dat niet echt van veel eigen inzet. Vertaal je post even, want dit komt gewoon mateloos lui over en daar hebben we op GoT geen trek in. :)

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


  • jumanne
  • Registratie: Augustus 2006
  • Laatst online: 03-01-2022
Ok, ik zag ook dat ik hem in het verkeerde forum heb gepost. Excuses daarvoor.

  • Creepy
  • Registratie: Juni 2001
  • Laatst online: 12:13

Creepy

Tactical Espionage Splatterer

Geeft dat dan de volgende keer via een TR aan ofzo, dan verplaatsen we je topic. Dubbelposten is nu niet zo handig :/

Anyway, dicht dus :)

"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney


Dit topic is gesloten.