Im trying to figure out a way to remember the value of a variable at a php file usign ajax but until now i cant image how make it work. My first file is a form that contains a list of states or regions and by doing click loads dynamically the list of another regions according to the first state selected. The idea is to send that form to the same page through the action command but like the ajax function only loads at onchange calling it doesnt work for what i want to do.
Here is my code: This is the main file where loads the second catalog
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "(URL address blocked: See forum rules)">
<html xmlns="(URL address blocked: See forum rules)">
<head>
I'm trying to use the cookie plugin to remember the state of a navigation menu from page to page. Here is the snippet of code from towards the top of my page where I am including the jquery files and cookie plugin. The second part of the sample tries to determine whether the cookie exists.
I have just got my web site to the point where I am about to upload it, but I have come across a problem which I do not know what to look for on the web. I will try to describe the problem the best I can. I have a page with pictures in a table of 3 X 10 all pictures are thumbnails 100 X 90 all is just fine, but I have a link to pages from the thumbnails but when I return to the thumbnails I start back at the top of the thumbnails page. I have been told that this can be done with JavaScript but I do not know what to look you on the web, I have tried to look for something [Remember page position, Page history] but with no luck I have not done any JavaScript before and do not know where to start, so any help would be great.
i have a slider ( slideup and slidedown of a div box ) and in the div box i have a menu. If i click on the menu the page will refresh and my div box do not show because standart the div box is up ( slidup ). can i make jquery remeber how position is my slide ? if the page do refresh i will see my div box.
In Chrome, the login page on my schools educational online platform doesn't remember the login info. So i made a bookmark with this javascript injection, that fills in the info, and focusses on the 'aanmelden' button (='login' in dutch), so that i only have to press enter to continue. Here's the javascript injection:javascript: ocument.getElementById('username').value='23889493984';document.getElementById('password').value='4 42384985';return false;document.getElementById('login').focus();This works fine but i'd like to make it happen faster. I wish i could let the script be activated instantly when the page loads, so i only have to press enter, or if possible, let the script click the login button itself.
I am writing a small data entry screen that will post the form data to a page and return a message. But i cannot get the Success or Error functions working properly.
Here's the code where strData is the posted querystring of:
I'm not sure whether it should be in a form and using the onsubmit or click of a button.
I've been searching for a few hours and haven't been able to find a code snippet to see if this is available. I'm attempting to pass text from my website to another website that has a form setup on it. I'd like to fill in the pertinent data for my users on the page that I load for them. I cannot make any changes to the receiving page as it is run by another company. I've pasted some of the code that is available on the receiving form.
<script type="text/javascript"> //<![CDATA[ var theForm = document.forms['form1']; if (!theForm) {
I am currently programming Script Adds data to the database but if i want to Shown the data that have been added Requires refresh the page to show the Data that have been added . and I do not want this method.I want to when adding data to show updates as soon as the addition of data.This can be done by Ajax , and An example of this method used Google Gmail.
I am facing some problem with this when i am trying to sent the data in krnlAddComment1.asp page and there is only an insert query exists. after run the query successfully, response.write "...." revert back to me
I am creating a navigation system for my site, all menues are hidden only their headings are appear on the site. When a visitor click on a heading its shows the navigation links. Its working smoothly.
The problem is when user open a navagation menu and click on a link to browse the next page/link, after loading the next page the menu got close and visitor need to reopen the desired menu. I want that the desired menu stay open while browsing the site and only closed when a visitor wants to close it. Code:
I have created a ChatBot in JavaScript which allows people to type text into a text-box, such as "hello" or "what is the time" and the ChatBot responds back with a response on a seperate WebPage such as: "The time should be indicated on your computer" etc.Is there anyway that I can get the ChatBot to remember specific details about people that they enter into the textbox using JavaScript, such as their name or age, etc?So that then on a random WebPage on the same server, I can get it to display that stored name or age that the user stated to it.If someone has a code that could possibly do this, I'm sure I could find a way to work with it.And also, something else which I would also love as an alternative otherwise; How do I get JavaScript to display the current Microsoft Windows user account name.I would appreciate any help that people have to offer, and respect anyone who gives it and have concluded this to be the best site to get help on so far. Lol.
I would like to implement a cookie feature on my site that when a user logs in a cookie is stored for him and the next time he comes back, he doesn't have to sign in. I have researched hotscripts and javascripts but the ones I have found have to do with the "remember me" and thats not quite what I want. I tried to manipulate it but with no luck.
my name is ajayraj i want to store value in java script variable from drop down list means if first i selected India from drop down then value of var msg=india after i selected Pakistan then value of msg= India+ Pakistan like that How can I do that?
Can someone point me in the right direction to find; How to remember variables in the address bar so that no matter what page they visit they will still have the same variables that were present when they came into the page. Variables such as, ?
this will be for regular html pages for now and then I will eventually need it for PHP pages.
I would the user of my website to click a link on a page and for some information to display on the page without a reload of the page. This is what I would like to happen in my specific case:The user clicks the name of the cd and the full track list and a small image displays above it, without going to a new page.
I have a problem with my code. I implement different Tabs into a Microsoft Office SharePoint Server 2007 site (.aspx). Now everytime I select a tab and refresh the whole page, IE7 cannot remmember the last session and navigate automatically back to tab1.. Properly I need to set Cookies. Im a beginner in using cookies and coding javascript..
I have no experience with JS, just general knowledge of html/css. I had someone else write the site for me. They didn't know how to do this and pretty much just stopped talking to me... On my site, I have a video carousel (4 video thumbnails in a row, you press the > arrow, and it shows the next 4 video thumbnails, you click 1 video thumbnail, and it shows you the video above the carousel).
The problem is, when you click on one of the thumbnails, it reloads the page, and the video carousel goes back to the beginning. So if you clicked the > arrow 3 times (ur on the 3rd set of thumbnails), then it brings you back to the 1st set. This is pretty annoying, especially if your planning on watching each video. My question is, is it possible to make some type of cookie or something to remember which set of thumbnails you were on in the carousel?
So that, if your on the 3rd set, and click a video, instead of resetting to the 1st set, it keeps you on the 3rd set. If it is possible... how hard would it be to do? Is it something where I could just copy/paste a string of code, or would this be a huge project?
I want to remember the scroll position (Vertical). So I have 100 articles per page and I pick one article to view its details.. that is on new page. So when I hit the browser button (back) I would like that browser puts the scroller where it was. I think I should use cookies for that... but how?
In my code I want my image to move right when the right arrow key is pressed (which it already does) then to stop when you release it, also is their an easier way to write/remember the keyboard numbers?
I am making an iphone app...the how-to section is basically one long page that shifts the view to a different div on a touch event. So, say I scroll down 50 lines on div1 and click a link to take me to the top of div2. How would I maintain the scroll position of div1 so when i click 'back' it shifts the view back to div1 and to the last position they were at?
I have 3 tabs that call an external ASP page that has a rather intensive Database query and takes a while to execute and display. On my tab there's a link to another page. once that page is finished the user goes back to the tab. But my problem is it's going back to the database page (that takes a while to execute).Can the original page be cached and remembered so that I dont have to keep calling my database page?
I have built a website with draggable scaleable items on a page. You can see what I've done here... [URL]
It uses java script from... [URL]
What I need the site to do is remember the position and scale of the items so that when visitors return to the site the items are where they left them.
I believe it is possible to store this information in a cookie, however I have no idea how to do that or make it work.