I have some xml like
<entry>
<a>a</a>
...
<subelement>
<b>b</b>
....
</subelement>
</entry>
if I do $(entry).find('whatIAmLookingFor')
it works for some elements, but not for other elements, when those elements are nested in the subelement.
I can get it to work by doing
$(entry).find('subelement')....
So i have this function in JS, sending a request to insert a new Status message to the database.
function DoStatusInsert(){
var wrapperId = '#statusResponseNow';
$.ajax({
type: "POST",
url: "misc/insertStatus.php",
data: {
value: 'y',
uID : $('#uID').val(),
message : $('#message').val()
},
...
Hi Everyone,
I have a form that uses Ajax for client-side verification. The end of the form is the following:
$.ajax({
url: 'mail3.php',
type: 'POST',
data: 'contactName=' + name + '&contactEmail=' + email + '&spam=' + spam,
success: function(result) {
//console.log(result);
$('#...
Hi,
Suppose I have a list of dinners. This list will present the users with, location, data and some other relevant info.
Since that there's a lot of people attending, I want a button on each dinner that opens a jquery dialog that will show the people that will attend.
What I accomplish until now:
On each dinner on the list I have th...
i'm using http://blog.xlune.com/2009/09/vgrid/
which is similar to masonry/filtering.html
(can only post one link sos!)
i'm trying to get the filtering and animation similar to masonry
code is as follows
<!DOCTYPE html>
Using Masonray Filter
<script type="text/javascript">
//console.trace();
$(funct...
Hi, this sounds really simple and stupid..but I'm having a hard time removing the content before each dash from each H4 element on my page....i've been trying to do this with Jquery/Javascript.. Any insight?
Here's a sample of my HTML code:
<h4>California-Medical Research</h4>
<h4>Florida-Industrial</h4>
<h4>Atlanta-Computers</h4>
I...
I load some HTML code into a div with the .load function af jQuery that contains some code I want to execute;
$.ajax({
type: "GET",
url: url,
dataType: "html",
success: function(data){
//.....
}
});
After loading the ajax request the alert(); function works, but the the someFunction won't.
$(document).read...
Hello, I am trying to parse some very basic JSON, but I don't know where I'm going wrong when trying to display it to the screen.
Am I not GRABBING the data correctly, such as, "data.re1Code"?
I hope someone can shed some light onto my basic question sorry.
JSON Data
[
{
"rep1FullName": "Justin Giesbrecht",
"rep1C...
Is there a nice, clean jQuery based timeline slider that you would reccomend?
I need simple, easy to use slider.
Would it be easy to do this in pure CSS?
Using Overflow?
...
Hi,
following up to the thread below, I managed to create the drop down menu like blip.tv's,
http://stackoverflow.com/questions/3508484/drop-down-menu-dotted-border-and-solid-border-in-one-line
here is the outcome,
http://quack-project.net/tmp/3/index.php
I use css and jquery to achieve that.
It works fine on all browers (Firefox, ...
I have a table that returns results from a search. When the user search for something else, the same results exist and the table is just populating the data without removing the previous search. This is all on a JSON result action with no postback so the page is not reloaded. When the page is refreshed, I get an empty table. I tried ...
I use validateEngine (http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/) to make sure the user fills in the appropriate fields before the form submits.
What I am having a problem is when the user hits submit without filling in all the appropriate fields, it does not submit the form, alert...
What I'm trying to do here is to mimic one part of the way SproutCore and Cappuccino work.
You know how Mail.app works? You click on a message, it gets selected? You Shift+Click, everything in between gets selected? You Command+Click, it gets added to that selection? You drag over many, they all get selected?
Then you can drag them...
Found the problem:
Had an empty element in my colModel and colNames (ex. colModel: [{name: '', id: '', editable: true}]).
I am using jqGrids tableToGrid to convert an exsisting table to a jqGrid. My javascript code looks basically like this:
jQuery(document).ready(function{
tableToGrid('#grid', {/*All my options*/});
jQuery(...
OK, I'm trying to include some animating backgrounds using Spritely as a test on my website but I'm having some problems.
For some reason, I cannot get the background to pan correctly.
I use this jQuery in my document ready event handler:
$('#bg_1').pan({fps: 30, speed: 2, dir: 'right'});
And then firebug gives me the following erro...
When adapting jQuery's isFunction method
isFunction: function( obj ) {
return toString.call(obj) === "[object Function]";
}
InternetExlorer 8 returns the following error: "Object doesn't support this property or method". A good article digging into this function won't fix this behaviour. To check wether obj is defined, I changed the...
Hello all,
I wanted to know how would I go about setting the HTML of my td element as the value of a hidden field.
<td align="center">
<%if (inst_dm != null) {%>
...some code..
</td>
<%} else {%>
<td align="center"> Contact not available.
<%}%>
<input type="hidden" name="inst_dmhidden" value="<%$(this).html().trim()...
This little search example works but only the first time.
How do I clear all the classes from the p elements so when searching the second time, the highlight from the previous search doesn't show?
<!DOCTYPE html>
<html>
<head>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="t...
hi all,
i'd like to checkout the xLazyLoader plugin for jQuery which should be located here:
https://code.google.com/p/ajaxsoft/wiki/xLazyLoader
unfortunately i'm getting a forbidden error :( anyone know if it was discontinued?
i could find it somewhere else - version 1.3 but - it will hang my firefox because of an "too much recursio...
OK, so I have these background <div>s which pan left and right using the jQuery plugin, spritely.
So, I was wondering what the best way to position them was.
I obviously have specified both of the two <div>s which each contains one background image to have a z-index: -1 so they appear behind everything else.
But I would like them to b...