I have the following code which is loading an xml file to populate a dropdown menu. Right now the value equals the option text but I would like to have the value equal to some number which comes from the same xml file. Can someone tell me how to format the xml file to do this and what code to add to make the value appear in the html code...
How can I transform jQuery carousel to show 3x3 square of images instead of 1x3?
From:
<- |image| |image| |image| ->
To:
|image| |image| |image|
<- |image| |image| |image| ->
|image| |image| |image|
My source code is like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/x...
Hi,
I am trying to build an auto complete using Solr (TermsComponent) and Rails. Now there are several options of doing this using jRails, 'plain' jQuery, autocomplete plugin etc.
What is the best way to do this? Are there any good tutorial for this?
Thanks in advance for any help.
...
Kind of an awkward title guys, sorry.
Anyway, I'm trying to resize my images with the following snippet of jQuery:
$(window).load(function(){
$('img.FancyBox').each(function(){
$(this).width($(this).width() * 0.25);
});
});
Now, this works, but it would be really nice if I could find a way to specify the images to load 25% of their o...
I have a form with two sets of checkboxes. The first is a list of roles on a committee (chair, vice chair, secretary, etc.) The second set of checkboxes is a list of people in those roles. For instance, Todd is our vice chair and Gwen is our treasurer. If I want to have Todd's checkbox selected when I click the vice-chair checkbox, I...
Greetings all,
I have a simple JQuery function which is bound to an ASP:Button and fires when the submit button is clicked, like this:
<asp:Button ID="btnSubmit" CssClass="btnSubmit" OnClick="btnSubmit_Click" runat="server"
Text="Send" />
$(document).ready(function () {
$(".btnSubmit").click(function () {
a...
So I already have the website working (I'm not working from scratch). The problem I have is that a lot of the content is available only if you're logged in (pretty much everything). So sometimes I have a modal popup which retrieved (using ajax) something to display.
In my server side code, if someone's not logged in, they are redirected...
Hi I'm quite new to JS and jquery.
Im having a problem accessing the properties of an object returned from the jquery ajax method.
As you can see in the code below I'm trying to use the properties of the object 'data' in the success call back function to create a table row, which I then try and add to a table.
$('#add_comp').submit(f...
I have a search filter that fires an ajax request to update the result set upon changing filters. It often happens that the user will change many filters in one go, firing off many AJAX requests.
So I decided to abort previous requests if a new one is made (by using the ajax.abort() function). Now... Firebug shows all those requests as...
I'm trying to get a grip on the jquery file tree plugin, and I have a problem with file paths. The thing is, the jquery call sets a root directory, and if it is set to "/" I want it to be a path in my server directory. So I set this in the server code that the jquery code interacts with.
Here's the jquery call:
<script type="text/javas...
$('.updateDescriptionProduct').click( function() {
if ( updateProductDescription(productID, description) == 'true') {
alert('success!');
} else {
alert('did not update');
}
});
function updateProductDescription(productID, description) {
$.ajax({
url: '/index.php/updateProductDescription',
global: false,
...
I'm trying this to get the id of each element in a class but instead its alerting each name of the class separately, so for class="test" its alerting: t, e, s, t... Any advice on how to get the each element id that is part of the class is appreciate as I can't seem to figure this out.. thanks
$.each('test', function() {
alert(this)
}...
I need to display a page inside of a page, like an iframe, but using jquery. The pages are not on the same server.
The main page is a html page inside of a cms and the page that needs to be nested is a media page with lists of images or audio files, that is located on another server. The heights will vary on the media pages, so I kinda ...
I have a variable named colWidth in jquery which runs some math on numbers grabbed from an input using jquery. How do I set a value of an input field with an id of #test to the value of colWidth?
$("input#width").keyup(function () {
var value = $(this).val();
$("span#width-text").text(value);
}).keyup();
$("input#columns").keyup(fu...
I'd like to recycle jQuery UI css to create widgetboxes that are side by side and also multiple rows...
Ideal:
[] []
[] []
My try so far ends up getting all the UI widgetboxes coalesced on top of each other. Even using tables to try forcing the distinct cells.. Here is the unsuccessful code for each cell:
<div id="1" class="ui...
Hi I was wondering if there is a limit to the number of divs that are allowed on a web page?
For example will Internet Explorer start to choke when it has to render a webpage with a thousand divs?
...
I am learning jQuery right now and am looking to validate form fields with it.
The registration form in question is at http://taehee.pumpl.com/register.php
The basic code for the form field I made is:
<div id="register">
<form action="">
<fieldset>
<legend>Register</legend>
<ol>
<li><label f...
Hello expert,
please check this file
http://www.findmyshift.com/scripts/minified/4.1.1518127339_-603332839.js?20100812231650
The script is written in an interesting method,Could you please explain how this is done ?
Anyone can explain how a simple function can write in this method ?
Thank you
...
I'm loading TinyMCE via JQuery and after it's loaded, I'd like to add a save button to it. The save button is calling a function but Firebug says the function is not defined, in this case destroyTinyMCE() is not defined. What's wrong?
$('div#introText').click(function() {
loadTinyMCE();
$('div#introText').after('<input v...
I'm using a button to slideToggle the display of my disclaimer here, and for some reason, I cannot find out how to change the value of the button properly.
Here is my jQuery code:
$(document).ready(function() {
$('<input type="button" id="toggleButton" value="Hide">')
.insertAfter('#disclaimer')
.click(function() {
$(this)...