What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] 'undefined' is null or not an object.

[Help] 'undefined' is null or not an object.
Author: Message:
Timma
New Member
*


Posts: 5
Joined: Sep 2008
O.P. [Help] 'undefined' is null or not an object.
code:
for (i = 0; i <= textray.length; i++){
for (k = 0; k <= (textray[i] ? textray[i].length : 0); k++){
if (textray[i].substring(0,4)=="http") {
text = textray[i] + text;
}else{
text = textray[i].substring(k, k+1) + text;
}}}

Just a few things first, textray is an array formed by str.split(" ");, text is a blank predefined variable and str is the message typed in.

I get the error "'undefined' is null or not an object." on the lines with substring on them.

What I was trying to do here, if you can't see it, is reverse the words, and if a word is a link, don't reverse it. The problems only started when I began to use the array. I just used the string before.

Say if you do need more of the script. If it's easier for you, you can just rewrite the code :D
09-14-2008 04:22 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] 'undefined' is null or not an object. - by Timma on 09-14-2008 at 04:22 AM
RE: [Help] 'undefined' is null or not an object. - by Matti on 09-14-2008 at 01:30 PM
RE: [Help] 'undefined' is null or not an object. - by Timma on 09-15-2008 at 09:31 AM
RE: [Help] 'undefined' is null or not an object. - by pollolibredegrasa on 09-15-2008 at 10:34 AM
RE: [Help] 'undefined' is null or not an object. - by Jesus on 09-15-2008 at 11:20 AM
RE: [Help] 'undefined' is null or not an object. - by Timma on 09-16-2008 at 05:51 AM
RE: [Help] 'undefined' is null or not an object. - by Jesus on 09-16-2008 at 09:34 AM


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