First off, my question is really similar to a question posted here, with the difference being I am using wordpess and the nextgen gallery plugin to manage my images, which writes images thumbnail images as such:
mygallery/image1.jpg
mygallery/image2.jpg
etc...
and thumbnails like this:
mygallery/thumbs/thumbs_image1.jpg
mygallery/thu...
Hi,
Facing some problems with jQuery selectors.
My HTML is like:
<form method="" action="">
<p id="question_1">
<h1 id="question">1. A Question</h1>
<div id="choices">
<p id="option1"><input type="radio" id="option" name="q_1" value="1" />A</p>
<p id="option2"><input type="radi...
Having an issue with my "hideText" image replacing my "showText"
Anyone know why? This works fine if show and hide are both text,
but not at all when show and hide are images.
$payload .= '<script type="text/javascript"><!--
$(document).ready(function() {
var showText="<img src=\'images/panelOpen.gif\' />";
...
So, I'm using the asmSelect plugin to create lists, but also trying to use it to edit existing lists. asmSelect allows you to manually sort/arrange the selected options before submitting.
My problem is whenever I go and grab the user sorted list from the database and let asmSelect do its thing on my page, by default (because it's a mul...
Imagine a slideshow looks similar to this: http://malsup.com/jquery/cycle/div.html except it has only two images instead of three.
Also imagine that it has two triggers, like the demo in the middle of this page: http://jquery.malsup.com/cycle/lite/
That's what I want to build.
However, when you press 'next' and 'prev', I would like ea...
I want to automatically close a fancybox iframe, but I want to give it a delay.
$(document).ready(function() {
parent.$.fancybox.close();
});
The code above will automatically close the window successfully, but I want to add a delay, so they may read the message the page displays before it auto closes for them.
...
I'm attempting to implement the jqGrid using a WebMethod on the page that hosts the grid. This works if I using the dataType: function() in the jqGrid:
$("#mygrid").jqGrid({
...
datatype: function() {
$.ajax({
url: "myPage.aspx/gridData",
type: "POST",
contentType: "applicat...
I've been looking at using media queries on a site but bolt at the idea of downloading a huge file only for it take ages to download on a iphone over 3G.
Is it possible using jquery to alter a filename (ie. add -iphone to background.jpg to make background-iphone.jpg) when the site is viewed on an iphone / netbook / ipad perhaps using me...
We are rendering our content inside a HTML 'wrapper' which is supplied by the client. That HTML wrapper contains a reference to jQuery 1.2.6 so that's what I've been using for my jQuery functionality up until now.
The problem I'm facing is that I'm dynamically rendering content that needs a click event associated with it. The click eve...
Later today, I was scrolling through ejhon.com slides and I found out the following:
Give this code
function katana () {
this.myvar = true;
}
katana ();
console.info (myvar);
Past the moment I compiled the code, I thought that myvar is attached to the katana function. Actually, it gets attached to the window objects, which pollutes t...
I want the check_membership() function below to return the AJAX "data".
However, "result" keeps getting set to the XHR object, not the returned JSON object.
How do I fix this?
function check_membership() {
var result;
result = jQuery.ajax({
type: 'POST',
url: '/ajax/member',
dataType: 'json',
a...
I'm trying to get it to where I can scroll #page to the anchor within the ajax response which is displayed withinin the #page div. The below code works for the first click, but not for subsequent clicks. What gives? Thank you for your time...
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/D...
I have some working Javascript that manipulates the some DOM elements. The problem is, I don't understand why it works, which is never a good thing. I am trying to learn more about object oriented javascript and javascript best practices, so the organization may seems a little strange.
Basically, I wrap two methods that manipulate the ...
I recently stumbled upon a jQuery plugin that was supposed to force IE to render properly. I can't remember what it was called.
Does anybody know what I'm talking about?
...
Hello,
I have a website that uses ajax jquery and facebox. ( http://tinyurl.com/23eh4xc )
Inside the div "#content" there are some links to other pages that open fine using facebox.
If I reload the content of that div using ajax jquery , then the links wont popup using facebox effect anymore.
I tried to create a function that I would ...
I'm currently trying to make a cheap, simple slide show navigation box for a client (something along the lines of what, say, the Red Sox or Gamespot use on their sites, but far, far simpler). So far, it's actually coming along nicely, with one problem - the images don't appear upon a first visit. They only appear after the page is relo...
When a textarea has more text in it than can be shown it will display scroll bars. How can I make it so that the textarea will expand itself when it has more text than it can display. My goal is never to have scroll bars appear. A jQuery solution is preferred.
...
I'd like to have a DIV fade in after fading another out. Because the one DIV is inside of the other, I need the parent DIV to fade out completely (clearing any other content that might be showing) before the child DIV then fades in. I tried using the jQuery callback function in my code below to no avail.
$('#viewer a').click(function(e)...
This is my javascript function. Its nested in a document.ready fuction()
$(".bim").change(function() {
var str = "";
$("input:checked").each(function() {
str += $(this).next().text() + "_";
});
str = str.substr(0, str.length - 1);
alert(str);
});
It works fine in Firefox and Chrome.
It DOES NOT work with I...
Hi,
I have the following script to post some stuff to the server and write the json result back to the users browser. It doesn't work as expected :(
$(document).ready(function () {
$('#productForm').ajaxForm({
dataType: 'json',
success: function (response) {
var tmp = '<tr>';
tmp += '<td><a h...