/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Retrieve information from "responseText"

Hello everyone,
I have question for getting certain information from responseText of XMLHttpRequest.

I get the responseText like this:

[I][COLOR=”Blue”]s=Ford
e=support@localhost
c=IN IP4
t=0 0
a=creation_date:20081129T143637.000Z
a=range:npt=0-31.061
a=X-wmfversion:1.2
a=control:rtsp:/XXX:554/ALU_CP_user1/ALU_CP_user1_20081201_151027_1_h264aacplus128.3gp?fg=2&ud=BFAD0AD3977C04A7A9D93BD7F4AD2D32.MCDP-mifeas01_ALU&dt=20090417T134323.011Z&ds=0172f3b7a24c7c000c189a400ad61d44a8bea59b
a=etag:B45ADE7E644262C0B74ADB31140C4ADC
a=random_access_denied
m=video 0 RTP/AVP 96
b=TIAS:104000
b=AS:117
b=RR:2925
b=RS:2925
[COLOR=”Red”]a=control:rtsp://XXX:554/ALU_CP_user1/ALU_CP_user1_20081201_151027_1_h264aacplus128.3gp/trackID=201?fg=2&ud=BFAD0AD3977C04A7A9D93BD7F4AD2D32.MCDP-mifeas01_ALU&dt=20090417T134323.011Z&ds=0172f3b7a24c7c000c189a400ad61d44a8bea59b[/COLOR]
a=maxprate:24.0[/COLOR]
[/I]

and I want to get the address of rtsp of the [SIZE=”5″][COLOR=”Red”]Red part[/COLOR][/SIZE], How should I do?

This the code which can get the whole information, how do I change it to get the address of rtsp?

[CODE] createXMLHttpRequest();
xhr_object.open(“GET”, addressTV, false);
xhr_object.send(null);
if (xhr_object.readyState == 4){
return(xhr_object.responseText);
}[/CODE]

Thank you for your attention, have a good weekend!!

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@KorApr 17.2009 — One solution to use the javascript [B]split() [/B]method
Copy linkTweet thisAlerts:
@ly1819authorApr 20.2009 — One solution to use the javascript [B]split() [/B]method[/QUOTE]

The problem is resolved with "split", thanks a lot!
×

Success!

Help @ly1819 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...