jquery - Pull Content From One Page Into Another (Same Domain) -


i trying pull content 1 page on same domain.

i have ecommerce site many product listings pages. creating brand page each brand. @ bottom of page show products available brand in stock. easiest , maintainable way show ul listings page brand if product goes out of stock not shown on listings page theory wont show on new page.

so question how page b show page a's ul content?

(the has class, ul class=list-products)

or alternatively there html allow me display products predefined search term?

if cms .net , search solr

we have xml feed google if there way can use that!

jquery's .load() function rescue:

    $( "#elementfromnewpage" ).load( "oldpage.html #elementfromoldpage" ); 

this grab oldpage.html, perform innerhtml on #elementfromoldpage , place within #elementfromnewpage.

for more documentation, see: http://api.jquery.com/load/


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -