php - Displaying a value on the header of every page without a page refresh at all -


i need display value (net amount maintained shopping cart , number of items in cart) on header of every page. when new item added cart or deleted or cart updated, updated value should displayed on header no page refresh user.

i think, need reload page right after finishes loading. tried following.

<meta http-equiv="refresh"; content="1";url=shoppingcart.php"> 

but refreshes page on every second indeed not required. tried using header() it's not suitable header("location: #");

is there way so? time cart updated, should reflected on header of every page without page refresh?

you should use ajax. use jquery.ajax(). it's simple, handy , nice!


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -