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

[help] Removing tags
Author: Message:
grae
New Member
*


Posts: 2
Joined: Jun 2006
O.P. [help] Removing tags
"8><li value=8 id=d360284>some text some text ..."


I am getting a text from an url like seen above, I want to remove the tags before the text. The "value" and "id" numbers are variable, so I made this code for this..

kokentry is the text.


basla = kokentry.indexOf("<li value=");
bit = kokentry.indexOf(">",basla);
kokentry = kokentry.remove(0, bit);


But it gives me an error at the line 3: "The object does not support this property or method."

I don't know what to do.
06-28-2006 03:21 PM
Profile E-Mail PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: [help] Removing tags
There is no remove method of a String in JScript 5.6...
Line 3 could be replace with

kokentry = kokentry.substr(bit+1)

to get the desired result, I think. :)

This post was edited on 06-28-2006 at 03:51 PM by Mnjul.
06-28-2006 03:51 PM
Profile PM Web Find Quote Report
grae
New Member
*


Posts: 2
Joined: Jun 2006
O.P. RE: [help] Removing tags
Oh, I see. My foolishness.. Thank you, this helped. :)
06-28-2006 04:36 PM
Profile E-Mail PM 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