Hi all,
I am wondering if anyone could show, or explain with examples, how facebook checks its database for new messages? It seems to do it periodically, without loading the page. What would be the best way to achieve this in a PHP/MySQL/Jquery script?
Any help is always appreciated!
Cheers, Lea
...
Hi,
I am trying hard to make this work! I have a list of images inside a div which i make draggable. I also have a dialog which is triggered (open) when dragging starts. For some reason I cannot drop inside this dialog. I can drop everywhere else on the page except inside a dialog. here is my code:
$(document).ready(function(){
...
How can I trigger a slideUp(); with a delayed start, but which doesn't force the rest of the code to wait until it has finished before progressing.
eg: A button is pressed and 1 second later a box disappears, but jquery is still working during that one second.
...
I'm not sure if this script is working properly. I do not want to overwrite existing targets. How can I adjust this to exclude links that already have a target defined?
$("a[@href^='http://']").not("[@href*='" + window.location.host + "']").attr('target','_blank');
...
I have a Zend Framework (PHP) web application that has a table with a lot of rows.
99.9% of the time, the user will take action on the first or second row.
00.1% of the time, the user will need to go back and take action on a different row.
So I only really need to display the first few rows on page load, and keep the rest available ...
I can't figure out why this is alerting me several times for each change...
$(function(){
$("#shift_name_<?php print $shift_id;?>").change(function () {
$(".alertmessage").load("messages.php?eid="+$("#shift_name_<?php print $shift_id;?>").val(), function(data<?php print $shift_id;?>) {
if(data<?php print $shi...
I'm working on a jQuery-powered registration form, and I'm checking all the input with jQuery, and the only thing left is to see if a user is choosing an already-registered name.
Here's my Ajax request:
$.ajax({
type: "POST",
url: "check_user.php",
data: "username="+username,
success: function(){
errors.push('Your userna...
Hi
In Page_Load() function, I have populated an arraylist and a hashtable. I need to read their values in the $(document).ready(function(){...}.
I am a beginner in terms of ASP.NET and jQuery. Please suggest a way to do it.
cheers
...
For this HTML code:
<table>
<tr><td>Visible</td></tr>
<tr><td>Visible</td></tr>
<tr><td>Visible</td></tr>
<!-- etc... -->
<tr style="display:none"><td>Hidden</td></tr>
<tr style="display:none"><td>Hidden</td></tr>
<tr style="display:none"><td>Hidden</td></tr>
<!-- etc... -->
<tr><td><a class="show-5-m...
Hi,
Is there to have a JavaScript function repeated every so many milliseconds that an html button is held down? It would be great if this could be done with standard JavaScript, but using jQuery or a jQuery plugin would be great too.
...
I'm attempting to display a modal dialog as a test run before I try to perform a more difficult task. However, I seem to be doing something wrong as the code I copied from the demo site is not working when I set it up and run it locally.
Here is my source:
<html>
<head>
<script type="text/javascript" src="lib/jquery/js/jquery...
I have a regular expression that returns us and canada zipcodes as follows.
((?<US>\d{5})|(?<Can>\b[A-Z-[DFIOQUWZ]]\d[A-Z-[DFIOQU]]\ +\d[A-Z-[DFIOQU]]\d\b))
I need to do this in java script or jquery. An application that can extract only these values. For example someone could simply paste a document into the textarea, click a butto...
Im been playing with PHP for a while, whilst not actually doing it for a crust. I have now stumbled upon jquery and have found it really easy to get what I want out of it. Combining all this together I have strung together a webapp but with no formal training I could possibly be going about it all wrong as far as structure goes.
What ...
I am trying to work on a content slider with effects similar to this website:Monitter
Unlike this website, I don't want to include any real time twitter updates. I just want the content in div's to be loaded in a similar fashion.
I have already looked at various jquery plugins having vertical content slider, but none of them seem to ha...
i am using facebox
that give help for opening box from link
but i want to open box from jquery click function not from hyper link.
like
$("#Button2").click(function()
{
code to open facebox
});
thanks
...
I have an ajax query sending to a php script and putting the response into a div. The code is as follows:
$.ajax({
type: "POST",
url: "core/process.php",
data: data,
success: function(response){
$("#form").fadeOut('slow');
alert("DO NOT LEAVE THIS PAGE UNTIL COMPLETE");
$("#response").html("DO NOT LEAVE THIS PAGE UNTIL COMPLETE...
how can i create a div and show it with jquery and also how to create multiple divs with multiple ids and show it in series...........
i want to create multiple div popups one after antoher and want to show if user has any notifications one after other
...
Using jQuery, how can I validate if a div exists in body of a HTML page or not?
...
How can I display multiple DIVs with same class and different IDs inline with jQuery? I.e.
first I want to check if DIV exists in BODY and then show the next DIV after the current DIV.
...
how can i get the div's current postion with jquery or divs current placement with jquery
...