I need to be able to get the last value saved in document.cookie. My current script creates a cookie every time a new value is chosen in a drop down menu. Is there anyway to do this?
In my web application we are able to store large data in the browser cookie keeping in mind the limit of 300 cookies per cookie file, 20 keys per cookie per domain and 4KB max size of each cookie. We are unable to retreive this large amount of data immediately after storing through document.cookie in IE browser (The same works fine in Netscape).
Is there any limit on the size of the data that can be retreived using document.cookie in IE browser? Could you please suggest a solution to this problem I am facing.
I would like to know the working of this code in brief. function getCookie(c_name){ if (document.cookie.length>0){ c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1){ c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); }} return ""; }
I'm going to be out in the middle of nowhere this weekend but I need to study. No internet but I can still use my laptop. "Study" for me involves taking lots of practice tests on a site that uses JS for it's online tests. Can I save these for later reading somehow?
This application looks neat but I don't think it works on JS. [URL]...
I am having a hard time understanding how to load a selected option value that I have saved in an external ini file upon load of page. For example, if the user had selected "Baltimore" previously, the value "c" is saved to the external ini file on close. On the next load I want the selected option to read "Baltimore" instead of the default "Atlanta.
I have a problem with uploading files. I need to save the html file below to my hard disk or USB drive so that I can again upload it and then continue to add some more data to the fields. Here are the codes:
On many pages like Yahoo or similar, if we try to save the page by File>Save many of items like images or JavaScripts does not get saved on computer how is this achieved.
Can I make a list of hyperlinks that users can customize and save as a cookie by clicking a button and automatically retrieve the cookie so it remembers their list next time? This is kind of what I want to do:
I have created one program using javascript.i have written using javascript functions.. can u tell me what is the problem with my program i have saved it as messages.js,but the script is not executing can u tell me what went wrong.....
I am making a sort of text based game (Just a hobby) I like to do that sort of thing. So, anyway, considering all I can really do is code HTML, and very, very light javascript, I kinda need some help.
I basicly know how to do everything except affect & Use the cookies. So what I need to do with them is to
#1.) Have a code to change the cookie number, say... on the click of a button.
#2.) Have a code where it only displays certain text if the cookie is a certain number.
I cant code JS and have no idea how hard/easy this is.
If it is insanely hard & needs a master coder, just tell me and ill take it off. I dont want to be wasting anyones time.
I successfully inserted date picker with trigger calendar in my form. I want to use this form for an other website I built. So I simply saved form under different domain name, it is not working.the image calendar.gif does not appear in my new document.I compared code HTML from both form and it is identical though.
I have had some experience with JavaScript. I have therefore developed a very simple slideshow. The source code for this can be seen below:
Code:
I feel this works as it should as I can move from image to image and also have it to run automatically. However, I now want the user to be able to browse an image and the image to be saved to the default directory where the other images are stored.
I currently have a script after searching online which browse's and opens the file, although this is in a new window, whereas with the slideshow the image is to be opened within the table. The browse code is shown below also:
Code:
The save function i have found only through research works in IE via the execommand. Any ideas how i could get this to work on other browsers or anthoer method of saving the image into the array?
this code refereshes the whole page and focus goes at the top of the page but I want the focus of the page at the same place where I perform refresh. Actually I am using AJAX to submit a form, a form opens through ajax request but I need to refresh the page to take the effect of the dynamic data, which is being saved,updated or deleted on the page. So is there any way where focus of the page remains there when I refreshed the page
I have an embedded system with a web interface. One of the web pages has a small JavaScript program that, when run on IE6, always displays the message that cookies need to be enabled:
if (document.cookie.indexOf('asm_session') == -1) { document.cookie = 'asm_session=0' if (document.cookie.indexOf('asm_session') == -1) { document.write("Advanced System Management access requires cookies to be enabled."+'<br><br>'); } }
This problem only occurs with IE6, not Mozilla. It also only happens on some of the embedded systems, but this problem exists for everyone running IE6.
The problem isn't limited to the Javascript code, either. On another web page from this embedded system, a cookie is set the normal way, via the HTTP header. This cookie is also rejected.
When I display any page that attempts to set a cookie, IE6 displays the blocked icon and says that cookies on that URL are blocked. However, I have set all privacy and cookie options to their most permissive. I've spent the past hour changing every option I can find that's even remotely related to cookies and privacy, and nothing changes. Does anyone have any idea what's going on?
The following form validation script works, currently if one of the five fields are completed, a message appears the remaining field(s) must be completed etc. Although the information the user has inputted in the first field is cleared. How can this information be available, if there is one problem in the form it doesn't make sense that the user must re-input all the information again. I look forward to hearing your response,
I have created a similar smart search like yellowpages:[URL]... Here is the problem I have with mine:
Lets say I search 'Attorneys' I start typing 'Att' ... then 'Attorneys' shows up in the smart search so I click on it and press enter. The next time I start typing 'Att' my browsers saved search field pops up over the websites smart search. Here is an image which might help explain the problem a bit more:
We have a little callendar on our website. I have set the format of the date to "dd-mm-y" because I want the date to be saved europian, not american. When comfirming the form, the date is saved as 0000-00-00. The date shows correctly on the form itself. I have two scripts: Calendar.js and Calendar-en-GB.js. Calendar-en-GB.js contains the 'settings'. (Including date format). I can't figure out the problem and thought maybe one of you could. I have uploaded the scripts in one .zip file: [URL]
I have an image "Products.gif" saved that i want to use for my button, and when the mouse goes over the image, i would like a drop down menu to appear with links to:
Cookies "Cookies.html" Popcorn "Popcorn.html" Pies "Pies.html" Bagels "Bagels.html" Donuts "Donuts.html"
and when clicked they go to each of those sites. Does anyone know the code to do this?
Suppose a HTML document has a iframe. Using javascript,I want to detect ,on load of the html document, whether the body of the iframe document is ready to be displayed.I want to be able to overwrite the the body contents (before it actullay loads) of the iframe.can I do it with jquery? say if ,HTML doc is
Normally an SVG document is loaded/parsed/interpreted inside an HTML document using an 'object' (or 'embed') element, although there are supposedly other ways too. The problem is, the SVG document must be static this way.
I want to use the DOM interface to build SVG dynamically inside an HTML document. I am guessing I can build it inside HTML within an 'object' (or maybe 'iframe'?) element.
My intentions/goals:
In Javascript, I construct an object 'embedSVG' which has properties and methods for creating valid SVG elements and setting their attributes and attribute values.
During construction, the SVG document is created with its root element. During debugging in FF 2.0 (I'll work on an MSIE-compatible format later), I am using the Mozilla DOM Inspector and comparing nodes when the 'object' element is loading a valid external SVG document, and when I am appending the child representing the SVG document created by the DOM functions.
However the child node (#document) does not specify 'svg' as the root element, but instead 'HTML'. Something is not working.
Here is the relevant code in 'ScriptTest.html' which is the HTML in which the SVG is supposed to be embedded. Below it is the relevant code for 'svglib.js' which is supposed to contain code for building the SVG dynamically.
What this code is supposed to do is load the HTML page and execute the anonymous script, and draw a navy blue-bordered yellow rectangle on a blank page. This is similar to the example in the SVG 1.1 W3C Recommendation on page 202 of the 719-page PDF.
I am getting an exception when embedSVG object placeInHTML() method is called: NS_ERROR_DOM_HIERARCHY_REQUEST_ERR. I find in DOM Inspector in spite of or after the exception that a document is placed as a child of the object element, but it is HTML, with a default 'head', 'title', 'body' elements placed.
Determine what the previous page was that the user was viewing, even if the user arrived at my site by through the use of a browser function (history, location bar, refresh, etc.). Is this possible?
I'm not wuite sure how document.history functions - what degree of privacy is given to the user and to what extent can web pages get URLs from the user's history?