I'm trying to parse an mrss feed using jquery but am having some difficulty targeting the child element.
Code:
$(xml).find("item").each(function(){
var $item = $(this);
alert($item.find("media\\:thumbnail").text();
});
MRSS Structure:
<media:thumbnail url="http://somewebsite.com/someimage.jpg" />
UPDATE
The solution $item.f...
Hi,
I'm having a problem refreshing my grid, because I add some extra buttons after I load my grid, but when I try to reload another button is added.
$j(document).ready(function (){
$j("#search").button().click(function() {
var loadingImg = "../img/bpm_scripts/common/images/images";
var ejecutive=$j("#ejecutiveId...
I'm trying something very basic, but I just can't figure out why this won't work.
I can get information on the object using [i] but I can't change data this way?
// Make all the li's invisible
$('div#rotator ul li').css({opacity: 0.0});
// Calculate a random number between 1 and 3
var randnr = Math.floor((1-4)*Math.random()) + 4;
...
I have a form with labels and input fields. When clicking into a field I want to style the field with CSS and display some information about the input requirements in a div under the label.
The focus() and blur() events add the classes for styling the field just fine but trying to show/ hide the info divs triggers the methods on ALL fie...
Hello,
I'm using jquery's .ajax() method on a button click.
I wanted to know if there a way in whcih I can use the data that I passed in the data-part of the AJAX call in my success() function.
This is my code,
$.ajax({
url: //my URL here..
type: 'POST',
data:{
projDets : projDetailsArray,
},
datatype:'html',
error: ...
Hello folks,
I'm just starting to get a hang of this jQuery thing, so bear with me.
Essentially what I've got going on is a list of items with classes like "politicians" "entrepreuners" etc that define the people in this list.
The goal being, that I can attach tabs on the top of the list that will filter the results of the list.
I...
I'm using jQuery Validate to validate a page with a large number of repeated rows of data. Due to limited space, each row has it's own validation summary.
I use addClassRules to apply the validation rules to the page but the default error messages are too generic in the summary (e.g. "Field is required, Field is required etc).
Example...
Hi,
I have trouble to make a good use of jQuery fadeIn() or fadeOut() for text divs in IE(both 7 and 8), as you can see in this example : http://jsbin.com/etatu3/5 (see the code here : http://jsbin.com/etatu3/5/edit )
I did some research and it seems it's because of filter opacity.
I tried using
animate({filter: (opacity = 50)},10...
I'm getting an unterminated string literal error in Firebug:
Unterminated string literal
$(".search_info").html("<div id=\'sear...arm_bg.png?1279054090\" style=\"displ\n
This error is being rendered from clicking on a Sort By that toggles 'Most Recent'
I have narrowed it down to the 'about_us' text. By removing certain parts of the t...
Hey guys,
I have a preview box much like the one stackoverflow uses, for submitting material that updates in real time. The problem is that a really long word hangs on the outside. Does stackoverflow use a jquery plugin to wrap long words in the preview box or a css rule?
...
Currently i am implementing the front-end of a djangoproject we have here.
and we use Dajax (more precisely the Dajaxice) framework.
i don't know the framework, other than simply calling the server (which other developers here have setup with services that i can call to fetch all data)
it seems though that the dajaxice framework, does ...
jQuery UI Datepicker:
Hi,
I'm trying to have the pop-up calendar allow only the Monday dates in the future to be selected. I've tried this code:
$(function() {
$('#dateWeekly').datepicker({
showOn: 'both', // use to enable calendar button and focus
buttonImage: 'childtime/images/calendar.gif',
buttonImag...
I am curious if there is a way to detect the browser refresh event in javascript specifically. We are using the jQuery.address plugin to provide forward and back button functionality to AJAX functions. The problem I am facing is that this plugin does not seem to detect if the user has refreshed the page.
This code is executed each time ...
ok i've wracked my brain and others to figure out why this is happening in IE and latest version of FF. It works in chrome. i am but a novice developer and recently started using jquery. so i dont even know if i'm going about this correctly.
its a basic form for the most part. jquery ajax post() then get() to update the page. onc...
When setting up a event handler (submit, click, keypress, whatever) what is the fastest and most efficient way to get data to the handler and use it in the handler? Should I be doing something like:
$obj.data({name: value, ...});
$obj.click(function(e){
var $this = $(e.target),
name = $this.data(name);
});
Or is it better to do...
I need to create a 'Reply' button that shows a form for any item in a feed. In other words, it can't be showing/hiding something with a unique div id, because it has to work for any of a (potentially) infinite number of items.
If I use code like this:
<% @questions.each do |question| %>
<%= question.content %>
<a href="" onclick="s...
I'm using tiled to create a tile map.
(Tiled is a tile map editor with support for orthogonal and isometric maps)
It saves the map in an XML file. It can use certain encoding structures:
regular base64
base64 + gzip
base64 + zlib
regular csv
Now, I've completely given up on gzip (my server gzips traffic it anyway, so no loss there)
...
I want to provide a link to close the fancybox pop-up window.
Here is what I have for code, which does not work, but gives you an idea of what I am accomplishing:
$(document).ready(function() {
$('#close-button').click(function(){
close.click($.fancybox.close);
});
});
<p><a href="#" title="Close" id="close-button">&la...
I've written a rudimentary text editor for my page. Any tag with the .edit class can be clicked by a logged in user and a form appears with the text in the textarea field to be edited in addition to unbinding the 'click'. Upon submit the function performs a post and updates the database via a ColdFusion component and reloads the page to ...
Hello all,
I have a question concerning using the toggle function. I have a template that is being populated at the end of an AJAX call with data returned from a web service. What I'm trying to accomplish is load the onClick function so that a hidden textbox will be shown and toggled to be hidden on the next click.
What's happening is...