PDA

View Full Version : load part of html page



emredagli
6 Apr 2010, 3:57 AM
Hii,
I try to load part of (for example a div) static html page into an iframe (or managediframe ext.).

In jquery there is a load method and you can pass the id of the div only which is loaded.

Is it possible to do it in Ext?

Thanks in advance.

steffenk
6 Apr 2010, 4:43 AM
iframe needs complete page, why only a div?

I never have seen a function extract part of HTML page, i guess you have to build your own helper function.

emredagli
6 Apr 2010, 5:02 AM
http://api.jquery.com/load/

One way is loadding complete page and hiding or removing unwanted parts.
Since the static page is big, I do not want to overstrain the document. I only need to show part of the page...

Condor
6 Apr 2010, 5:29 AM
I had a quick look at the jQuery source.

Calling $().load():
- loads the HTML fragment using XHR
- adds it to an empty <div/>
- uses the selector to extract the required elements
(it doesn't even dispose of the temporary div!)