Include the content from other webpages: Difference between revisions

Jump to navigation Jump to search
Line 6: Line 6:


= client-side approach =
= client-side approach =
== frame or iframe ==
== Frame or iframe ==
* frame or [http://www.w3.org/TR/html401/present/frames.html#h-16.5 iframe tag], [http://www.w3.org/TR/html4/struct/objects.html#h-13.5 object tag]
* frame or [http://www.w3.org/TR/html401/present/frames.html#h-16.5 iframe tag], [http://www.w3.org/TR/html4/struct/objects.html#h-13.5 object tag]
** 缺點是瀏覽器上的鏈結,非該篇網頁的靜態鏈結。
** 缺點是瀏覽器上的鏈結,非該篇網頁的靜態鏈結。
Line 12: Line 12:
** cross frame layers
** cross frame layers


== javascript ==
== Javascript ==
* general ([http://www.netmechanic.com/news/vol4/javascript_no9.htm JavaScript Tip:  Page Headers And Footers])
* general ([http://www.netmechanic.com/news/vol4/javascript_no9.htm JavaScript Tip:  Page Headers And Footers])


Line 19: Line 19:




== jQuery ==
jQuery [http://api.jquery.com/load/ .load()] or [http://api.jquery.com/jquery.ajax/ jQuery.ajax()]
[http://api.jquery.com/load/ .load()]
* the code of "Click event" should written in the loaded file.
* the code of "Click event" should written in the loaded file.


Navigation menu