www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] Retrieve information from "responseText"

  1. #1
    Join Date
    Mar 2009
    Posts
    16

    resolved [RESOLVED] Retrieve information from "responseText"

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

    I get the responseText like this:

    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
    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
    a=maxprate:24.0


    and I want to get the address of rtsp of the Red part, 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); 
    	}
    Thank you for your attention, have a good weekend!!
    Last edited by ly1819; 04-17-2009 at 09:28 AM.

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    One solution to use the javascript split() method

  3. #3
    Join Date
    Mar 2009
    Posts
    16

    Thank you

    Quote Originally Posted by Kor View Post
    One solution to use the javascript split() method
    The problem is resolved with "split", thanks a lot!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles