I've been looking around for a decent jQuery feed/XML parser and found good plugins like jFeed and jParse (among a few others). None of these support retrieving an external feed though, which is something I'm after.
Pretty sure this is down to jQuery's $.ajax() method rather than the plugins themselves (as they'll be built from this).
...
i've never looped through elements with jquery and it would be great with some help.
my DOM looks like:
<div class="section">
<div class="group">
<div class="comment">
<input class="comment" type="text" />
<br />
</div>
<div class="link">
<input class="link" type="text" /...
Hi,
I'm using js to add form elements into the html document. For instance, I'm adding an entire <form> to a table cell. Eg:
<form class="add-comment"><input type="submit" /></form>
I try to use js to invoke events based on elements within that newly created form but nothing happens. I should get an alert box. What am I doing wrongly...
HTML:
<div class="parent">
<div class="one"></div>
<div class="two"></div>
<div class="three"></div>
</div>
jQuery
parentWidth = $(".parent").outerWidth(true);
oneWidth = $(".parent .one").outerWidth(true);
twoWidth = $(".parent .two").outerWidth(true);
$('.parent .three').width( parentWidth - oneWidth - twoWidth);
But ...
I have a table with a dozen rows, one of which is:
<TR><TD>
<B>Order Date</B> </TD><TD> [foo] </TD></TR>
<TR><TD>
and i want to assign the value of the last cell to a var.
thx
...
So I have a simple Javascript Object:
function Vector(x, y){
this.x = x;
this.y = y;
this.magnitude = function(){};
this.add = function(vector){};
this.minus = function(vector){};
this.normalise = function(){};
this.dot = function(vector){}
//...
}
I would like to perform the following ope...
i have 10 images in a flash carousel thats set up to trigger jquery commands through an XML document
ie:
<photo image="images/01.jpg" url="javascript:toggleDetail1()" target="_self">
<photo image="images/02.jpg" url="javascript:toggleDetail2()" target="_self">
etc...
when the user clicks an image i want to ensure that only that pa...
Hi,
I have search the net and found nothing. Maybe someone here might have used something that google can't give me.
I wanted to use a week calendar. I am using this and have many difficulty in it. One is when my date and time are the same, they overlap in one another and only the one at the top can be clicked. I have tried to hack the...
I have HTML input and button elements. I use the buttons to submit forms, open secondary windows, etc. The problem is, a single click is turning into 2 (and sometimes many more) form submissions, or opening two additional browser windows. I've reproduced the problem in multiple web browsers. I've tried switching jQuery versions and th...
As noted in this blog post you can set the scope of this in an anonymous function in Javascript.
Is there a more elegant way of scoping this in the anonymous function call on success of the AJAX request (i.e. not using that)?
For example:
var Foo = {
bar: function(id) {
var that = this;
$.ajax({
url: "www.somedomain...
Is there a way to disable the theming on one element in the page?
I have some Jquery UI element but I need to have one of these element not themed. How to do that?
...
I'm trying to create a bookmarklet that parses a page and sends the results to a googledocs spreadsheet via a form that I've defined.
The relevent bit of the script is:
var form = document.createElement("form");
form.action = "http://spreadsheets.google.com/formResponse?formkey=Fd0SHgwQ3YwSFd5UHZpM1QxMlNOdlE6MA&ifq";
form.method =...
Hey there, I am trying to have a div "hide", then "remove" once the hide animation is finished. It seems I can get either to work, but not both. I have tried using the setTimeout, but this only results in the div getting hidden, but not actually removed.
Here is the code:
$(this).parents("div:eq(0)").hide("fast");
setTimeout(function (...
Hello,
I'm using the following code to create a Dialog box using JQUERY/UI:
var $dialog2 = $('<div id="sharerdialog2"></div>')
.html('<p>Loading...</p>')
.dialog({
autoOpen: false,
title: 'Image Stuffer',
position: ['center',150],
width: 450,
focus:function(event, ui) {
$('#dialogcloser').click(function() {
...
It looks like I can't make a call outside the current domain name with "AJAX". But I'm able to call the twitter API (with JSON) in JQuery... aren't both using the XMLHTTP Object? If so (or not), why am I able to call another domain name with JSON (using JQuery) but not with AJAX ? What's the difference between Ajax and JSON anyway?
...
I have a jquery slider that I have built, basically just three pannels that slide by applying negative left CSS values. Works great, but I have a youtube video in one slide that wont stop when I slide. I've tried display:none and Visibility:hidden which works in all but IE, the audio keeps going in IE.
Is there an easy way to kill a vid...
Hey everyone,
I am actually trying to make a .php page where I am going to have 3 draggable elements which have to be dragged to 3 droppable elements -each draggable to a droppable, and they are unique, so one each droppable will only accept a certain draggable.
The thing is that I need to control that all of the elements have been dra...
I have a simple drop-down menu:
<ul id="nav" >
<li><a href='/'>Parent One</a>
<ul>
<li><a href='/'>child</a></li>
<li><a href='/'>child</a></li>
<li><a href='/'>child</a></li>
</ul>
</li>
<li><a href='/'>Parent Two</a>
<ul>
<li><a href='/'>child</a></li>
<li><a href='/'>child</a></li>
<li><a href='/'>child</a></li>
</ul>
</li>
I need ...
i thought this code should work but it didnt, can someone explain?
$("#addLinkLayout input.comment, #addLinkLayout input.link").each(function() {
$(this).val().appendTo('div#links');
});
it says $(this).val().appendTo() is not a function.
...
i have a DOM element with class='tag'.
i want to check if the class value is tag and alert a message if its true.
i wrote:
$("#thread").each(function(event) {
if(event.target.class == 'tag') alert('yes');
});
but it didnt worked. you can get the id with event.target.id but not the class with this code? what are all t...