javascript - Refresh page content not images -


looking method refresh page onclick not images of page, text content. done doing without refreshing cache? possible? have tried refreshing whole page using method in javascript:

<script> $(".second").pageslide({ direction: "left", cratel: true, onclick="history.go(0)" }); </script> 

i have had 0 luck, direction appreciated. not sure if valid question or not , if please let me know. new stackoverflow.

yes possible, still depends on contents , images how related each other. if images not part of text contents, can done easily.

lets suppose have 4 section of text contents a, b, c , d , using jquery ajax method asynchronously can reload 4 text contents easily.

what have give unique ids text contents

<div id="a">text contents goes here</div> <div id="b">text contents b goes here</div> <div id="c">text contents c goes here</div> <div id="d">text contents d goes here</div> 

now using jquery ajax feature , can load contents onclick event or want.

after each contents returned each respective ajax call can place them in desired text contents place using below jquery method

$("a").html("your returned text contents a"); ... ... 

i hope you.

thank you


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -