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 have no particular knowledge of javascript and web development in general, but I have some grasp of it. My question is not about javascript coding, but about using javascript to change the parameters of a website with a swf file, this one in particular: (get ready for a long url, since I can't post links)
[Code]...
This may be a long post, but I just wanted to make everything clear. And thank you very much for reading my question, and thank you even more for giving me suggestions. If you need to ask anything else from me, I would gladly answer.
And although I don't know squat about javascript, this is relevant to me because I am a freelance artist. I go on that website in my free time. Anyways, thank you very much for taking your time to read this, and I hope you may have answers to my problem.
i want to add the link address when clicked on the link in web page to the outlook express address book when the outlook window populates. i tried to put
<a href="mailto:enquiry@mydomain.com" > click here </a>
but it only add address to the To section of outlook window, i want it should store the address in the address book.. of outlook express..
I have been looking for a solution for a long time. I have embedded a SWF app in html page using SWFObject. Now I need to give the Flash app the address where it is currently embedded, since the same SWF file is embedded in more than one locations! So the Flash app is supposed to pull the right content according to its current position
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 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.
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 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?
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.
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.
I want to make my site more accessable without duplicating my website.
I have included a link on each page that allows a user to view my site without loading my css stylesheet. The only problem is that a visitor has to click on the link in every page. I want to use a cookie, but I cant get my head round writing the cookie script, that will remember the enable/disable links throughout my site (preferably for just the session). Code:
I need to remember the time when user closes the window and later when he/she comes back, site will highlight latest news that happened when user was offline. So far the best solution I have found is jquery.unload (since I use jquery): it sends some data to php script (which remembers the time) via ajax when unload event triggers, so is it the best way to solve this problem?
I am new to JavaScript. I am currently developing a simple CMS in PHP & MySQL. Most of work is already finished, bu now I have to tweak some functionalities in increase user experience. One of it is folding menu (tree menu). I am generating it in PHP and currently I'm using simple JavaScript to expand/collapse submenus (folders). Idea is simple - when an expandable list item (<li>) is clicked (onmouseclick) a simple JS funtion is executed that display a child list (<ul>) and in this way I am building a simple tree menu.
The function is following: Code: function showHide(msg_id) { var element = document.getElementById(msg_id); element.style.display = element.style.display=='block' ? 'none' : 'block'; }
The problem is that when I click an list item (that leads to certain article) in a submenu, whole page is reloaded and all previously opened submenus collapse. I would like to have expanded elements that are leading to the last one that I clicked. How can I achieve it? Can you provide me some links to tutorials? Or maybe giva a hint how to tweak my function?
I'm setting up a fictitious shopping page which uses cookies to remember what a user has selected. The products are photographs that the user can select either framed or unframed versions and I'm trying to put a confirmation box if the user actually requests framed and unframed versions of the same photograph. The code I'm using actually worked before I tried to add this extra functionality but I can't work out how to test for this extra bit. Here's my code and it sets cookies with names as either lulworth01 for the unframed version or lulworth01f for the framed version. The bits that work are in black and my extra code for this test is in red.
function getCookie(name){ var index = cart.indexOf(name + "="); if(index == -1) return null; index = cart.indexOf("=", index) +1; var endstr = cart.indexOf(";",index); if (endstr == -1) endstr = cart.length; return unescape(cart.substring(index, endstr)); } function setCookie(name) { if ((name.charAt(name.length-1)='f') && (getCookie(name.substring(0,10))!=null)) { confirm("You seem to have placed orders for both a mounted and framed image of the same photograph. Is that OK?"); } else { alert("Thank you. Your basket has been updated."); x=parseInt(getCookie(name)) || 0; y=x+1; var today = new Date(); var expiry = new Date(today.getTime()+28*24*60*60*1000); // plus 28 days document.cookie=name+"="+y+";expires="+expiry.toGMTString(); cart = document.cookie; }}