[?] HELP! error............ - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [?] HELP! error............ (/showthread.php?tid=69538)
[?] HELP! error............ by roflmao456 on 12-15-2006 at 09:38 PM
how come when im trying to write something to this html file it keeps saying
code: Error: 'document' is undefined
in the debug.. here is the code..
code: var IE = new ActiveXObject("InternetExplorer.Application");
IE.width="476";
IE.height="416";
IE.statusbar=false;
IE.toolbar=false;
IE.menubar=false;
IE.addressbar=false;
IE.visible=true;
var code = "<HTML>";
code += "<TITLE>YouTube Video: "+video+"</TITLE>";
code += "<BODY style='background:black'>";
code += "<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/"+video+"\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/"+video+"\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>";
code += "</BODY>";
code += "</HTML>";
var VideoViewer = IE.navigate(MsgPlus.ScriptFilesPath+"\\Viewer.html");
VideoViewer.document.write(code);
can anyone help
RE: HELP! by Nathan on 12-15-2006 at 09:40 PM
Erm,
Why are you doing it like that may i ask
Why not just use pure html
RE: [?] HELP! error............ by roflmao456 on 12-15-2006 at 09:42 PM
quote: Originally posted by Nathan
Erm,
Why are you doing it like that may i ask
Why not just use pure html
im trying to write a variable to it that changes..
RE: [?] HELP! error............ by RaceProUK on 12-16-2006 at 12:03 AM
First, why isn't this thread in Tech Talk?
Second, are you sure you can get a document object as the immediate child of VideoViewer?
RE: [?] HELP! error............ by roflmao456 on 12-16-2006 at 03:03 AM
quote: Originally posted by RaceProUK
First, why isn't this thread in Tech Talk?
Second, are you sure you can get a document object as the immediate child of VideoViewer?
the code i pasted is from the script .. im saying when i receive a youtube thingy it opens up IE to view the video. now i just want to write the code from the script to the file..
in short form:
i want to write to the html file using the script.
RE: [?] HELP! error............ by markee on 12-16-2006 at 03:21 AM
Have you tried to save it through a text stream and open it through IE? I gather that is what you are trying to do with the script (or if you haven't, maybe give it a try and just make the extension of the file .html then open the file with IE after closing the text stream of course). I haven't done any work with IE or linking with any other application actually so I'm not entirely sure if there is a better way of going about this.
Also to make your code a little nicer to look at (and easier to write) when wanting to use a quotation (ie " " ) inside another quotation then use ' as the other one instead of " so you on't have to write \" all the time and save yourself a little hassle.
RE: RE: [?] HELP! error............ by roflmao456 on 12-16-2006 at 03:26 AM
quote: Originally posted by markee
Have you tried to save it through a text stream and open it through IE? I gather that is what you are trying to do with the script (or if you haven't, maybe give it a try and just make the extension of the file .html then open the file with IE after closing the text stream of course). I haven't done any work with IE or linking with any other application actually so I'm not entirely sure if there is a better way of going about this.
Also to make your code a little nicer to look at (and easier to write) when wanting to use a quotation (ie " " ) inside another quotation then use ' as the other one instead of " so you on't have to write \" all the time and save yourself a little hassle.
all this is in my html file..
code: <HTML>
<TITLE>Youtube Viewer</TITLE>
</HTML>
edit: ooh wait i think i got it! il edit this post again after few mins.
PROBLEM SOLVED! THANKS MAN U ROCK i didnt even have that idea lolz....
now i need a tester
|