hi
so i was wondering this: for example: when you subscribe to Facebook you have the option to invite your friends from gmail(if you have a gmail account), so you would enter your gmail login and password and facebook would grab all your contacts from gmail, so i was wondering how this is done? is there an API from Gmail or from Hotmail...
Hi.
I'm Trying to access results div in the results page of google.co.uk.
Using firebug one can see that the id of the div is "res" but for some reason getElementById('res') fails. to make things even weirder - if i refresh the page (F5 or ctrl+F5), the function succeeds.
Also, if i look in the source code of the results page i dont se...
Hi,
I'm writing some scripts with Fake for some QA routines. However, I'm having some trouble with emulating the a click in Gmail.
The basic idea is to activating an account with an activation link. So I'm pretty stuck with the QA routine right now.
I thought Javascript can be a useful idea. Any ideas on that? Gmail's DOM is ID hell.
...
In MediaWiki, I want to change the user names in the history and recent changes to the "real name" as entered in the user's preferences. For example, in the recent changes I see this:
(diff) (hist) . . Somepage; 11:03 . . (+285) . . Coolguy123 (Talk | contribs | block)
But I want to see this:
(diff) (hist) . . Somepage; 11:03 . . (...
Hello,
i am working on a calendar interaction module. the calendar shows days reserved. a reservation interval is 7 days. i have set up via javascript that hovering a day adds a class and auto-hovers 3 days before and 3 days after this day too to visualize the 7-day-interval setting that class there too. now i stuck with the following p...
Hi guys
This is my first question on stackoverflow, I have found this site very useful in the past and although I do not have a specific question I would like anyone's input.
I love Prototype JS and use it to design my own components frequently, my problem is presenting data to users so they can make a selection, i know all the obvious...
I've got this script that needs to be changes to OnMouseOver, currently it functions when you click but I need it to function when the mouse cursor goes over a div. Any help is greatly appreciated.
<script>
// execute your scripts when the DOM is ready. this is a good habit
$(function() {
// assign a click event to the exposed el...
Guys,
I have a problem with the below one. This Javascript:void(0) is stopping me from showing the page securely with https. What is it actually? I have no idea about javascript. Please help me out!
Thanks alot!
var clear="js/clear.gif"; //path to clear.gif
document.write('<script type="text/javascript" id="ct" defer="defer" src="j...
I have a JavaScript overlay that consists of several input text search criteria. When the user presses the enter key in any of those inputs, I want to mimic the behaviour of the search button.
I know how to handle the enter key if there is only one input. I define the input as:
<input type=\"text\" class=\"txtOrgNmFilter inputBox\" on...
I am interested in streaming audio on my website, but I have no clue where to begin. There are two types of streaming I hope to achieve. The first would be streaming a playlist of songs stored on the server and the second would be live audio streaming. Can anybody recomend any good sites or plugins to use?
...
Hi,
As a test I'm converting a proof-of-concept app we've written from Web Forms to Razor, simply so we can evaluate it.
I've run into one problem so far that's making my head hurt..generating client-side Javascript...
Web-Forms
<script type="text/javascript">
var jqGridIdList = "<%: Url.Action ("getidlist", "office", new { area ...
I'd like to create a linear transparent gradient to a div. Is there any way to do that with jquery? Or should I use some other library like raphaeljs? I'd like to achieve an effect like the following:
...
Hi,
Is it somehow possible to load more files via AJAX?
Example
$.ajax({
url: ["test1.html", "test2.html", "test3.html"],
success: function(data1, data2, data3) {
// Do something
}
});
Because I would like to avoid callbacks...
$.ajax({
url: "test1.html",
success: function(data) {
$.ajax({
url: "test2.h...
Following is simple html, when viewed on android browser(nexus one) results into continuos orientationchange event chain when you change phone's orientation just once.<html><body>
<script type="text/javascript">
window.addEventListener("orientationchange",function(){alert("test");},false);
</script>
</body></html>Can somebody please expl...
I have a site created using .net and the ajaxcontroltoolkit. When some users log on they do not see the controls on the page. I can duplicate this if I disable active scripting in ie. The problem is that the users I have spoken with have active scripting enabled. I have had them navigate to a site that tests javascript and it passes. Has...
Hi,
I have some problems with a great circle distance calculation using a map.
Context: http://airports.palzkill.de/search/
The map is supposed to work as a great circle distance search map - you move the circles center marker or the radius marker, and the circle gets smaller or larger. For debug purposes, the boxes title field shows ...
Hi folks,
I have a piece of jQuery code which - in theory - scrolls down to a specific part of the window depending on what's after the hash in the URL tag (myaddress.html#wheretoscroll).
The code called is this:
$(document).ready(function() {
anchor = unescape(self.document.location.hash.substring(1))
if (anchor) {
$....
I want to take strings like:
Submit Changes
Create New
Update Record
Save Item
and convert them to:
Submitting Changes
Creating New
Updating Record
Saving Item
with a function like:
var ConvertToProgressivePresent = (function(){
// cache this regex
var rProgressivePresent = /\b(?:(Submi(t))|(Creat|Sav|Updat)e)\b/i;
r...
So I've been reading through Javascript - The Good Parts and one thing that Crockford points out is the use weakness of global variables in Javascript, in such a way that if your product is expanded in some manner, and it relies on a 'global' variable it could be inadvertently set.
That's all good and fine and I understand the pros/cons...
So this works in Chrome/FireFox on Windows and Linux, but IE8 on Win7/WinXP fails to behave as expected.
I'm using CKEditor with the jQuery adapter. I set up the editor initially like so:
$(document).ready( function(){
CKEDITOR.config.height = 400;
// i.e. <textarea id="msgtext"></textarea>
$('#msgtext').ckeditor();
...