What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] HELP! error............

[?] HELP! error............
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. Huh?  [?] HELP! error............
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 :o

This post was edited on 12-15-2006 at 09:40 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
12-15-2006 09:38 PM
Profile PM Web Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
RE: HELP!
Erm,
Why are you doing it like that may i ask

Why not just use pure html
Touch Innovation - touch friendly programs/applications for the windows mobile!


12-15-2006 09:40 PM
Profile E-Mail PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] HELP! error............
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..
[quote]
Ultimatess6
: What a noob mod
12-15-2006 09:42 PM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: [?] HELP! error............
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?
[Image: spartaafk.png]
12-16-2006 12:03 AM
Profile PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] HELP! error............
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.

This post was edited on 12-16-2006 at 03:08 AM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
12-16-2006 03:03 AM
Profile PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: [?] HELP! error............
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.
[Image: markee.png]
12-16-2006 03:21 AM
Profile PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: RE: [?] HELP! error............
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 :D  i didnt even have that idea lolz....

now i need a tester

This post was edited on 12-16-2006 at 03:45 AM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
12-16-2006 03:26 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On