Gmails Autosave Feature
Feb 17, 2007
I was playing around with the compose feature of gmail today and I noticed that it seemed to have an extremely intelligent auto-save feature. What intrigued me about it was that it only seemed to auto-save the document when you were not working on it and when there was actually something that needed to be done.
However the most interesting (i.e., bit that stumped me) was how while in the middle of auto-uploading a large attached file I am able to edit the e-mail and yet when it has finished uploading the attachment (and the page seemingly refreshes) the changes I made to the e-mail are still there.
Could anyone be so kind as to enlighten me as to just how exactly the auto-save feature works (as I am interested implementing something similar for my own site), especially in the region of attachment handling.
I know that they must have some kind of JavaScript on-key-press callback that detects when you are working on a document but that is about all I can extrapolate.
View 1 Replies
ADVERTISEMENT
Dec 5, 2006
I have an autosave feature that, well... autosaves every minute. Now I could very well become the biggest abuser of my own feature. I currently have 8 windows open - I tend to just leave windows open for a long time. As a result, the javascript would be running every minute saving, creating unnecessary load on the server.
How could I make the autosave smart and only save if they are actively "working" with it? The only thing I can really think of is to have like a variable that sets to true whenever something happens, set to false whenever it saves, and only save when the var is true. Problem is, I have a lot of functions for events that I would need to attach it to... I'm sure I would miss it somewhere.
View 3 Replies
View Related
Oct 10, 2010
jQuery Plugin: [URL]. I've been trying for 3days to get this plugin to work, I've contacted the developers and no response. the demo on the site seems to work with a json output but the downloaded code & example does not work. I'm trying to get it to work with PHP as the backend and nothing. The instructions are very vague like a lot of jquery plugins. Are there any developers or experience jquery plugin users that can assist with telling me how to get this plugin to work correctly?
View 1 Replies
View Related
Sep 30, 2011
I need to send the contents of a ExtJS Textarea to the backend server for saving (autosave facility) as the user types in. How do I buffer the contents and push the buffer to the server after some threshold value. I've done as below:
[Code]....
View 1 Replies
View Related
May 3, 2011
what is the best way to count the seconds between each onkeyup to "autosave" without sending an ajax command after each key? id like my script to update after 2 seconds of no typing.... (yes, jquery is in use on the page)
function microtime (get_as_float) {
var now = new Date().getTime() / 1000;
var s = parseInt(now, 10);
return (get_as_float) ? now : (Math.round((now - s) * 1000) / 1000) + ' ' + s;
}
[Code]....
i'd use onchange or onblur but that requires you to unfocus the field before it saves...
View 2 Replies
View Related
May 6, 2010
trying to find a good rotating box with SEO content.[URL]
View 5 Replies
View Related
Jul 9, 2007
i am trying to get to work and i don't get why its not working so i am going to post it here and if someone who is smarter then me could come on and let me know why its not working and how i can fix it. if you have any questions let me know and i would be glad to answer them. Code:
View 10 Replies
View Related
Oct 2, 2006
I have a property site and would like users to be able to click a button or tick a box to enable them to save a listing & then when they have finished searching they can then click on a 'view saved properties' button and each listing, or a link to each listing will be displayed on a seperate page so they can then go back to all their saved listings.
View 2 Replies
View Related
Feb 9, 2006
We all know that feature detection technique works from very beggining
of user-agents supporting JavaScript. We can alway check if eg.
document has a write property or smth else:
if(document.write) {
}
We could do that for all of objects, so i have been surprised when i
found 'in' operator, which for above example would be used like this:
if("write" in document) {
}
So i have questioned myself what for ? I can always do:
if(document["write"]) {
}
or even
var prop = [...];
if(document[prop]) {
}
which is supported better then 'in' operator ('in' is supported since
W. IE 5.5 and NN 6 - around 2000 year). I can only guess that 'in' was
provided in W. IE 5.5 only for convenience... but that is my guess and
someone more knowlegable could write here some more opinions on this
operator...
View 22 Replies
View Related
Nov 22, 2006
Is it possible that first I make my window resizable,than if window is less than a fixed size I can make my window not resizable?Better to say can I change resizable feature during runtime?If possible,than how?
View 3 Replies
View Related
Jul 20, 2005
Can someone point me to a script that will allow me to implement a "back button" in an HTA, since there is no history for HTA's. Understand this requires an array, is there any sample code out there
?
View 1 Replies
View Related
Apr 15, 2009
I am trying to add a feature to one of my webpages where when you scroll over a specific word, a popup appears. However, for some reason the code I am using isn't working.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"[URL]"> <html xmlns="[URL]"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>JavaScript-based Pop-Up Div</title>
<style type="text/css"> body{
padding: 0; margin: 0; background: #fff;
} h1 {
font: bold 24px Arial, Helvetica, sans-serif;
color: #000; }
View 1 Replies
View Related
Mar 25, 2010
I am pretty new to javascript, I've made a php game and I am adding the last touches. Ive got. When I press m it goes to your mailbox. Now what I want is the alert feature. Now I have that. I want it to say. You have COUNT new message(s). How do I get my php variable into that javascript.
View 1 Replies
View Related
Jul 23, 2010
I'm going to make a digital timer feature with javascript (maybe JQuery) and was wondering if anyone has some good links to get me thinking in the right direction.. for example just a simple: every 4 seconds increment the time (in seconds)..
View 3 Replies
View Related
Nov 18, 2004
I am trying to build a vertical drop down where when you click on one of the main headers the sub nav below will drop down. If you then click on another header they previous header's sub nav items will disappear and the new nav's sub nav will appear.
This part I have built. The problem is that I also want to use a ">" to point to the main header that is active and have the ">" disappear when you click on another main header and appear next to that header. This part I can't get to work. I can't get the ">" to appear and then reappear. Code:
View 4 Replies
View Related
Jan 13, 2011
May be this is more of a design question rather than JavaScript but guess many of you will have experience in these things. whats exactly happening behind the scenes in this link. [URL] One of the members already pointed out that the website is using transparent layered images to bring the effect. Now, my question is, are they real images or is a texture really applied to a frame on the fly?
I can imagine bringing that effect by using Photoshop filters but how can we do it for Stripes and Checks. If you notice the sleeve for a stripes shirt, you can see that the stripes are aligned as if it were a real shirt. Do we need real photos of shirts for this?
View 1 Replies
View Related
Aug 18, 2011
I am trying to display testimonials on my website in an iframe. This way I can utilize the scrolling feature if needed and keep the page from changing sizes due to the length of the testimonial. I can also change the testimonials order and content easily. I am trying to make a "next" and "previous" button that will sit on the main page (not in the iframe) and cycle through the testimonials. However I am having trouble with this as I am trying to use an array. This is my current code for the Next button. The idea is to check to see if the testimonial is on the last document. If so display the first testimonial in the array. "Else" change to the next testimonial in the array.
var myTests=new Array();
myTests[0]="test001.html";
myTests[1]="test002.html";
myTests[2]="test003.html";
var numTests = myTests.length;
var curTests = 0
function nextTests()
{
if (curTest <= numTests)
document.getElementById("testFrame").src=myTests(1);
else
document.getElementById("testFrame").src=myTests[0];
}
Then I am using a simple button to call the function "onclick"
<button type="button" onclick="nextTests()">next</button>
View 4 Replies
View Related
Mar 13, 2003
I've downloaded a couple of example scripts, but they are pretty specific to whatever the authors needs were, and basically I don't really understand the script (actually, the best example I found was in french, so all the variable names are in untranslatable French, haha).
I was wondering if somebody could possibly help me out with getting some skeleton code written out in Javascript for this. I know PHP, MySQL, C, some Java, but there's so much with Javascript that I'm just not understanding the examples.
I will be grabbing data from a MySQL table, and will be using PHP array's to temporarily store that data so it can be displayed, and I understand how to work with PHP and Javascripts, but I need the some skeleton code for the actual dynamic dropdown menu algorithm.
View 2 Replies
View Related
May 25, 2010
I have a CSS driven zoom feature which shrinks a large image down to a specified size and when hovered over, the image enlarges to its full size. I need to be able to either make it stay opened (enlarged) when clicked, unless it is clicked to close OR to have the hovered (enlarged) image on a time delay to stay open for a specified amount of time.
I have already tried 2 scripts that I've found, but they are very over-complicated for what I need.
I thought, I'd only need to put something in the <a> tag or <img> tag, but I'm so new to Javascript and it is wearing me so out that I'm exhausted.
I did, however, get the effect that I wanted when I applied a:Active, instead of a:Hover) - It's just that can't get the image to close upon a second click.
My guess is that I need a js with an if open then onclick close it - but I'm not sure how to construct it or exactly where it wiill go.
Here is the CSS that operates the zoom (external CSS):
Code:
Here is the markup for the image:
Code:
The example can be seen here: [url]
View 8 Replies
View Related
Apr 10, 2010
I have 2 separate things going on my homepage using jQuery. One is a menu calling the following jQuery:
The other is a tabbed content box feature that calls the following jQuery:
Everything works with great with the menu until I call jquery.min.js then the tabbed content box works great and the jquery for the menu is broken. If I'm not mistaken, I cant use jquery no conflict because that only separates jquery from mootools or something like that. So, what is the solution when jquery interferes with itself?
View 2 Replies
View Related
Nov 19, 2010
I am interested in using a popup to show flash games in it, so I did then my interest went to make all games playable in full screen so I did that too and got success, but I am facing issues due to wmode, if you visit my this site link [URL] and click on play game for other browsers while using google chrome browser, you will see the error there will be blocks appearing in the game, while if click on play for google chrome then this error is not there, its just because of WMODE, for google chrome button I am using wmode while for all other browsers I am not doing this.
The reason for not using wmode to my other browser play button is that if I add wmode to the games then the performance of the game is highly damaged in fireforx and internet explorer, and also to some extent in other browsers including google chrome. It is that I want to get rid of this wmode=opaque thing as it makes the game slow even in google chrome which is effecting game playing quality, I used window,transparent too but nothing good came out of it. Only google chrome is asking for the wmode, while our step child internet explorer is happy with it. Some more information I would like to provide so that things work fast, I am using blogger blog, I have knowledge of html, xhtml, css and for java or jquery its hint and trial.
View 1 Replies
View Related
Feb 2, 2009
I have a dynamic menu on my site and it uses javascript to make slide up and down the page. I think its pretty cool but it seems that it works independently of the page so if you try and reduce the width of the window, it starts getting messed up. Have a look here and you will see what I mean: [URL]. One other thing I don't like is that it forces the window to 100% each time you click a link, I am sure that will annoy people. Is there an easy way to stop the central column from "crashing into" the menu when the window width is reduced? And how do I stop this 100% window without messing the page up?
The menu code is here :
(There are a few lines of php at the beginning but the main part is all javascript)
Code:
/*
* Next display the menu.
*
*
*/
$start = 0;
$last = 20;
$sql = "SELECT sc_name, user_id FROM clients
WHERE confirm = 'y'
AND type = 'E'
ORDER BY lig_pos DESC LIMIT $start,$last";
$result = mysql_query($sql)
or die ("Could not execute STARTER FEATURE query."); .....
View 2 Replies
View Related
Jul 29, 2009
I have a client which would like to use Adobe Contribute to maintain their website, and the website requires popup windows (for larger images) or a lightbox feature. The problem is how do I make images popup into new windows, without toolbars, etc. I would prefer lightbox than popup windows, if possible. How I can do this, so the client can add more images, as they maintain their website? For anyone that hasn't used Contribute, you can only edit <a href="page.htm"> and nothing else for the links, so it means onclick can't be added to <a href="page.htm">. The only way to add a link is to click on a button in the tools.
View 1 Replies
View Related
May 19, 2010
How would one go about creating a �Lower The Lights� feature for pages displaying video? This is a feature which is already on sites like Hulu and made a short run on YouTube.
View 5 Replies
View Related
Jul 20, 2005
Advanced DHTML Dropdown List component (Javascript,ASP,.NET,PHP)
enhances usability of large dropdown lists with type & select feature.
It suggests possible matches for entries you type in the input box.
Works in all browser with DIV, CSS and JavaScript support: IE5+,
Netscape6+, Mozilla, Opera. The script allows full customization with
style sheets, single and multiple select mode. Code:
View 2 Replies
View Related
Jul 22, 2009
I want to know if this can be done using jQuery and Google Maps. In my website I have a Google map where users could add new markers with a description on it and the marker they put would be permanent on my map, meaning if they comeback they would still see the markers they added.
I also want the feature that they could just drag and drop the marker, so it would be easy to the users. What would be my approach and how would I do it?
View 1 Replies
View Related