English 中文(简体)
(Jquery)Why .find or .filter 回去0()物体接受亚x html的回答?
原标题:(Jquery)Why .find or .filter return 0 size() object for an ajax html doc response?
  • 时间:2012-04-19 09:03:07
  •  标签:
  • jquery
  • ajax

我如何能够从AJAX的回复文本(html doc)中接过尸体或头部或整部?

这里的答复:

<html>
    <head>
        <link rel="stylesheet" href="http://localhost/p1_page/style_sheets/p1.css" />
        <script type="text/javascript" src="http://localhost/p1_page/scripts/s1.js" />
    </head>

    <body>
        <div id="content_wrapper">
            <table><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td>ala</td></tr><tr><td></td><td><span id="button_wrapper"><span id="button_on" ><input type="hidden" name="" value="1" /></span></span></td></tr><tr><td></td><td></td></tr></table>
        </div>
    </body>
</html>  

我尝试:

$(response).find( body ) // returns object with size() 0;  
$(response).filter( body ) // returns object of size() 0;  
$( body , response) // returns object of size() 0;  

但这种回报是大小目标。 7 - 我看不到。

$(response)
问题回答

页: 1 反对:

var html =  <html><body>hello, world</body></html> 
$($.parseXML(html)).find( body )




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签