473,511 Members | 10,195 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

refresh

1 New Member
What is the code to be used to refresh the current page which is created by ajax
May 15 '07 #1
4 1092
dmjpro
2,476 Top Contributor
Welcome to TSDN.

I got ur problem.
Actually ur page comes from cache.
that's why u want to get a fresh copy.

i think it is not possible to refresh a page which generated by AJAX.
so u better to manage the cache control by adding cache related headers into response.
or u can request the page like ..... ur_page?rand_id1=a_random_number1&rand_id2=a_rando m_number2

i think u can get the fresh copy every time.
best of luck.

kind regards.
dmjpro.
May 15 '07 #2
acoder
16,027 Recognized Expert Moderator MVP
What is the code to be used to refresh the current page which is created by ajax
What do you mean "created by ajax"?
Expand|Select|Wrap|Line Numbers
  1. location.reload()
refreshes the page.
May 15 '07 #3
dmjpro
2,476 Top Contributor
hello acoder.

I think you misunderstood his Q.
He can not get the fresh copy of the page whenever he getting the page using AJAX.
Actually he must know how to refresh a page.

Sorry ACODER... if anything is wrong with my attitude plz forgive me.

kind regards.
dmjpro.
May 16 '07 #4
acoder
16,027 Recognized Expert Moderator MVP
hello acoder.

I think you misunderstood his Q.
He can not get the fresh copy of the page whenever he getting the page using AJAX.
Actually he must know how to refresh a page.

Sorry ACODER... if anything is wrong with my attitude plz forgive me.

kind regards.
dmjpro.
I think you're probably right. The problem is that you don't "create a page" with ajax.

Nah, nothing wrong with your attitude.
May 16 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
10837
by: Marco Maroni | last post by:
How to force image refresh on client browser ? Is ti possible to force the refresh of the same image (tha was changed server-side) to the client, without user press Contrl+F5 in IE ? - Marco
9
7710
by: PK9 | last post by:
I'm having an issue with the "Refresh" of an asp.net page. The refresh is actually calling my last onClick event. I thought that asp.net was supposed to be stateless in that it shouldn't...
12
6005
by: martin1 | last post by:
All, is there window form refresh property? I try to set up window form refresh per minute. Thanks
10
2712
by: Bill Nguyen | last post by:
I would like to be able to get an active browser window to refresh the URL (reload) every 5 minutes. Is it possible in VB.NET? Thanks Bill
0
1766
by: chetu | last post by:
I have two pivot tables, but when my macro refreshes the pivot tables it refreshes all, but I want it to pick say for example; Say range "B8" of pivot table 1 is 60, I want the range "x2" of pivot...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7089
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.