Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to use ajax to reload partial page content without external file?

Status
Not open for further replies.

zoldos

Technical User
Nov 5, 2008
90
US
I run a social networking site and it has an advanced newsfeed feature. I want to use ajax and a clickable link to refresh just the newsfeed and not the entire page. The code is held in a javascript tab as seen below and I've already added a basic link to refresh the entire page. The specific code that produces the newsfeed is here:
Code:
{he_wall_display object='userhome' object_id=$user->user_info.user_id}
and cannot be held in an external file.

Here is the code with the tab:

Code:
<div id='profile_activity'{if $v != 'activity'} style='display: none;'{/if}><br>
-=<a href="javascript:location.reload(true);" target="_self">Click here</a> and then click the activity tab again to refresh site updates=-<br>
{he_wall_display object='userhome' object_id=$user->user_info.user_id} 
</div>

Any suggestions would be greatly appreciated! Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top