473,770 Members | 5,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ajax works but appear again after refresh ..

4 New Member
help make additional changes in code that it should appear for once .. it keeps on coming on going back to the html page, I'm bad in ajax code.

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2.  // close the div in 5 secs
  3.  window.setTimeout("closeHelpDiv();", 5000);
  4.  
  5.  function closeHelpDiv(){
  6.  document.getElementById("helpdiv").style.display="none";
  7.  }
  8.  </script>
  9.  
Jun 21 '13 #1
1 1404
Rabbit
12,516 Recognized Expert Moderator MVP
It has nothing to do with AJAX. Page refreshes do not hold on to prior states. That is the point of a page refresh.

If you need to hold on to a prior state, then you either need to store that info on the server and use server side scripting to change what the user sees between refreshes or you need to store it in a cookie on the client's computer and use javascript to read/write the cookie.
Jun 21 '13 #2

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

Similar topics

2
1398
by: antonyliu2002 | last post by:
Hi, guys, I have an interesting problem with AJAX. I just downloaded and installed the latest microsoft AJAX extension for ..NET and the CTP December package. I created a simple web application (on Drive C of the hard disk) with a button and label. AJAX works great as expected if I launch the application from Visual Web Developer built-in web server (http://localhost:2356/AjaxTest/Default.aspx), but if I copy this application intact...
5
2727
by: Steve Wright | last post by:
I have an AJAX routine on a webpage that is working in IE6, but not IE7 or Firefox v2.0.0.2 The webpage is http://www.a-drop-in-the-ocean.co.uk/CWS/monitor10bins.php?quarry=401 The AJAX routine is encapsulated in the module http://www.a-drop-in-the-ocean.co.uk/CWS/js/timer.js
1
5126
by: jianxin9 | last post by:
Hi, I have an ajax powered tabs box that has a javascript drop-down search menu in the first tab. When I click on another tab, and go back to the first tab I have to refresh the page to get the information to load. Any suggestions on how I might get around that. The articles tab is the tab where the javascript won't load. Thanks so much for any help you might be able to provide: This is what the tabs code looks like: <ul...
9
2004
by: schmeckel | last post by:
I am trying to use some very basic AJAX functionality (update panel for partial page update) on my website. When I run my webpage in VS 2005, the partial page update works fine. However, when I upload the page to my website and try running it, the page updates as a full page update rather than a partial page update. I believe the web.config I'm using is correct and I have also put the System.Web.Extensions dll in my BIN folder. Can...
21
4221
by: javelin | last post by:
I created a feature in a page where a DIV displays child records of the current record. From this same page, I can submit the insertion of a new child record. However, the while the previous child records displayed fine, the newly added ones don't - until I close down IE and restart it. I know, there's a setting in IE options which will force a refresh on each page load, instead of caching, but I can't access it from these computers (NT...
3
1396
by: alan75 | last post by:
Below is the script I used on my site, works fine on IE but not on FF. the project i working on is www.forwardpage.com, i'm adding ajax on this test page http://www.forwardpage.com/test/user.asp?id=alan. copy the link to see what i meant. nothing shows up in FF, not even an error. var xmlHttp; try{ // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e){ try{ // Internet Explorer
6
4493
by: oneadvent | last post by:
This code works in Chrome and pulls a second drop down, but it will not work in IE6, (I dont have IE7/8 to check right now, but can later) and it works in FF, in IE it doesn't do anything at all. Thanks for any help! php code to push data to page: <?php $q=$_GET; //number $blown = explode(',',$q); $q = $blown; $appl = $blown;
2
2941
by: sekku | last post by:
When we are directly access the application from Application server(localhost).I am getting the correct response. This is URL http://localhost:27110/vcm-ui/request?vui.request.transport=json&vui.response.transport=json&vui.request=%20HTTP/1.1 Response /*{xapi:{metadata:{"user": "?","status": "ok","request": "http://localhost:27110/vcm-ui/request"},container:{"type": "vui","id": "0.8391487769614959",data:}}}*/ When we are trying to...
2
1381
by: Ashique Mohd | last post by:
i created a chat application that uses ajax to input the chats into a mysql database. Although it worked fine in my local server , it is not giving desired output while i uploaded it in my host.
0
9591
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10225
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10053
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9867
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8880
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.