Checking If User Bookmarks A Website
Oct 12, 2006I think it's impossible to know if visitor has bookmarked your website, but if someone has any ideas how to check this,
View 5 RepliesI think it's impossible to know if visitor has bookmarked your website, but if someone has any ideas how to check this,
View 5 RepliesSuppose I want to allow a user of a website to add a poll to the website for everyone to see/vote on. How exactly would I write a script for that?
View 8 Replies View RelatedI am making a sign up form, and i want to show "id not available" or "available", while user looses focus from a text box , without submitting the form. same as it happen in twitter while signing up.
View 1 Replies View Relatedi m trying to develop user availability check during sign up process in cakephp framework using jquery! i am having trouble... after my call to ajax it does not gives a response.. my code for ajax call is below...
<script type="text/javascript">
$(document).ready(function(){
$('#name').focus(function(){
$('#username_feedback').hide();
[Code].....
Two JS questions:1. Is there a way to check (using JS only) if the user have local admin privileges on the local machine?2. Is there a way to check (using JS only) if office 2007 or office 2007 compatibility pack is installed on the local machine?
View 5 Replies View Relatedi'm trying to make a little script that automatically adds bookmarks to google bookmarks from a html file;
this is what i currently have:
javascript:
var googleBookmarks=document.createElement("div");
googleBookmarks.id="googleBookmarks";
googleBookmarks.innerHTML="<h1>Google Bookmark</h1>";
for(i=0;i<document.links.length;i++)
[Code]...
I have the following Javascript code and I can't seem to get it to work properly...
function DeleteSelectedBookmarks() {
bookmarksToBeDeleted = array();
if (document.deletebookmark.elements.length == 1) {
if (document.deletebookmark.deletebookmark.checked) array_push(bookmarksToBeDeleted, document.deletebookmark.deletebookmark.value);
} else {
checkboxes = document.deletebookmark.deletebookmark;
for (i = 0; i < checkboxes.length; i++) {
if (checkboxes[i].checked) array_push(bookmarksToBeDeleted, checkboxes[i].value);
}} if (count(bookmarksToBeDeleted) == 0) {
alert("You haven't selected any bookmarks to delete.");
return;
}
$.get("bookmarks.php", {delete: serialize(bookmarksToBeDeleted)},
function (result, bookmarksToBeDeleted) {
if (result == "done") {
if (count(bookmarksToBeDeleted) == 1) alert("Bookmark Deleted.");
else alert("Bookmarks Deleted.");
} RefreshBookmarks();
});}
What it is supposes to do is gather the amount of bookmarks that need to be deleted and then send the command to the server to do so. The server then gives a message back (if it is successfully the result is "done") and depending upon how many bookmarks it deleted it gives a different result, ie. singular vs. plural. How do I do this?
You know how the get time functions pulls info from the users computer? Is there a way i can get that same information from a web site or a clock on the the same web site?
View 1 Replies View RelatedImagine a wife has signed on to a web site in a browser tab. She does not sign off and walks away to do something else. Her husband sits at the computer and seeing her signed on, opens a new tab and tries to sign on to the same site. I need to automatically sign the wife off when this happens so as to avoid confusion later regarding which session is active.
View 10 Replies View RelatedIm needing a script that when a user clicks the "X" (closing the browser) or abandons my site a new small pop up window will appear..
The new small pop up window will ask "Why are you abandoning my site? Did you have any questions .. please let us know.." and then the user has the option to answer it or not.... then submit message or totally close the new window and main window..
I know the "window.closed" is the key but I dont know how to use it .. I checked on the internet but no information nor samples of it...
I have been asked by a client if it is possible to have an image appear when a user tries a screengrab on images on his website.
View 1 Replies View Relatedhow to check if a user didn't leave the site.Ofcourse you can use the Onunload() or Beforeunonload() function.But some browsers like Opera and Safari and who know what other browsers don't support it. And I don't want to have false information about users still being there while they left.Is there any other alternative? Like expecting server side each X seconds a AJAX request from the user?If the user doesn't send a request, the user has left.
View 2 Replies View RelatedI want to change a db record when the user leave the website. I have this PHP script:
<?php
require_once("../config.inc.php");
if (isset($_POST["user"]) && isset($_POST["ip_address"])){
$query = 'UPDATE users SET logged = 0 WHEREuser= "' . $_POST["user"] . '" AND ip_address = "' . $_POST["ip_address"] . '" AND confirmed = 1;';
mysql_query($query, DB_LINK);
}
?>
And this jQuery script:
// script da includere in tutti i file delle pagine per l'utente loggato
// cambia lo stato dell'utente da loggato a non-loggato quando viene chiusa la finestra del browser
$(window).unload(function(){
$.ajax(AJAX_PATH + "logout.php", {type: "POST", data: "user=" + escape(USER) + "&ip_address=" + escape(IP_ADDRESS), success: function(){alert("Arrivederci!"); return true;}});
});
but it doesn't seem to work.
I am looking for the script to resize my website pages according to user's screen size. The size of the table in the template is 1008 * 576 pixels and users with small screen are not able to see the whole page, they have to scroll horizontally. Is there anything possible without modifying my current template?
View 2 Replies View RelatedI'm new to javascript and I have a button in an interface for an app. It's like drag and drop and i want this button to link you to a certain website searching for what the user types in the searchField1 box. The button is button16. Such as you type dogs into the text box and you click the google button among other search engines and it will redirect you to a google search doing a search for dogs. But how do I make this button search google and search for whats in searchField1. I would really appreciate the help. Im looking everywhere to learn this but just cant find it. If you could tell me how or send me a link to a tutorial code...
View 2 Replies View RelatedThe javascripts files in my website are constantly getting injected with malicious codes which redirects my website
View 2 Replies View RelatedI'm trying to code a feature for my website using DHTML where the person viewing the website can rotate between viewing the positive/negative points of the website being reviewed. This example was in the publication called Using HTML 4 by Lee Anne Phillips. Code:
View 5 Replies View RelatedI have a ajax program on a page on website A. And I need to let it talk to a program on website B. I tried to put website B into the url of the parameter but it doesn't work.It gives me a "[objet XMLHttpRequest]" error.here is the code on website A:
[Code]...
I have a webpage and i want to put a section of another website on to my own website..
The Section i want to put on my website is on this page www.bebo.com/thegaadiscos and i only want to put the section with the comments on it...
What i want is a bit like the face book section of this website [URL]
I'm creating an AJAX user validation so that when a user types in a username, it checks it in the database to see if it exists. I want it to execute after the user finishes typing. I've tried using:
$("#username_field").keyup(function(){
which works, but I don't want a query executed every time the users presses a key. I was wondering if there was a better way to do it. Meaning I what the check to be preformed after the user finishes typing.
is it possible to track whether user is typing in the browser's address bar or aside google search box ( which appears in most of the browsers besides address bar)? if yes, I would like to know HOW? references are welcome.
View 4 Replies View RelatedI have to come up with a user authenication page the logs the user in and also gives them access to do the right things. I have attached the code and the access file and have got started on a few things.I first need to create a login page with the fields username and password have that check the access database and then proceed it to a page to do the following depending on the user access. For The Login button to even be enabled the username and password must have a value in it. I have no idea how to do that
Add A User [No duplicate Users]
Modify A User
Delete A User
[code]....
I have read all posts about how to detect that url have changed to new
page and trigger the event handler then eg.
function aidLogout(evt) {
if(evt) {
/* maybe via analyse of evt object i can detect the close of the
browser window */
}
if(window.event) {
/* maybe via analyse of window.event object i can detect the close of
the browser window */
}
var i = new Image();
i.src = "aidlogout.asp?uid=1562&SessionID=ABCDEFGHIJKLMNOP"
} /* assuming that aidlogout.asp will return nothing or empty image */
window.unload = aidLogout;
/* or via
if(window.addEventListener) {
window.addEventListener("unload", aidLogout, false);
} else
if(window.attachEvent) {
window.attachEvent("unload", aidLogout);
}
PS i know about super Gecko onclose event which fires when browser
window is closed, but i could not find such method in IE.
How can i check parent's URL from a child (popup) window ? and how can i
refresh it if the URL is say http://www.xxx.com/?
I have some javascript that uses setInterval(..) to change the src of
an image every second. Is there any way of programmatically checking to
see whether an image is loaded properly or if a 404 File Not Found
error occurs for it?
Does anyone have any coding rules they follow when doing argument checking?
When arguments fail during check, do you return from the call with an ambiguous return value, or do you throw exceptions?