load data from external file jQuery
Posted
by bah
on Stack Overflow
See other posts from Stack Overflow
or by bah
Published on 2010-05-19T17:00:10Z
Indexed on
2010/05/19
17:30 UTC
Read the original article
Hit count: 185
Hi, I need to take data from external file and format it, the problem is, i want to have that data stored into a variable. Load method works for me, because i need to load not the whole document, but just a part of it, but then again, i want to load to variable and not to some dom element. $.get can do this, but it doesn't support selectors. Is there any way I could make this? Now examples: Mine external file consists of a table, which has format like this:
<table><tr><td><img /></td></tr><tr><td><a></a></td><td><span></span></td></tr></table>
I need to extract img, a and span tags because I need them to be displayed in different order than they're now. So, is there any chance for me that i could make this work? Thanks.
© Stack Overflow or respective owner