I'm kinda new to jQuery but understand it for the most part. My problem is that when my ajax call which refreshes the entire div is done, all my dynamically created forms don't work. If you try and submit them, the event doens't work properly and just tries to do a normal form submit. I have all the other items such as links bound using ...
I tend to follow a fairly "modular" approach to building applications and I recently started working with jQuery. The application I'm working on is going to be fairly large so I'm trying to break pieces out into separate files/modules when possible. One example of this is a "User Settings" dialog.
This dialog has a form, a few tabs, a...
How can I show or simulate (using a fixed timespan) a loading animation for iframe content which is displayed using Colorbox?
What I'd like to achieve is actually a temporary overlay over the iframe content, which disappears when the iframe-content is loaded. Is this somewhat possible?
...
I have the following markup. I would like to add class_A to <p class="subitem-text"> (that holds the radio button and the label) when user clicks on the <input> or <label>.
If user clicks some other radio-button/label in the same group, I would like to add class_A to this radio-button's parent paragraph and remove class_A from any othe...
Hi
I am using jquery 1.3.2 and asp.net mvc 1.0. Originally I was using some other rich html editor but I ran into one major problem when a user pasted in text from open office or MS office it would bring along tons of styling junk.
If a user like wrote one sentence what was like 25 characters and pasted that into my current html editor...
Is there a nice and easy way to have a Colorbox act as a dialog window? I understand there are enough events which can be addressed but I'm unable to construct this in a nifty way... Or are there existing ways to replace the close button with ok/cancel or yes/no or other buttons..?
Edit:
I need to be able to pass somesort of return func...
Hi
I have the weirdest problem. I am implementing a simple gallery with a use of nivo slider jQuery plugin. Everything works perfectly when I test it on my local machine, however I am having an issue on an online hosted server.
The images do not tend to appear when you first open the website. There seems to be an issue with caching the...
Are there any good JavaScript libraries that can do this ?
These are usually done in flash
I have found this plugin so far, looking for others to evaluate.
http://jquery.vostrel.cz/reel
...
I use a custom background for my slider by overriding the CSS:
.ui-widget-content {background: transparent url(../img/bg.png) no-repeat;}
Slider's behavior is controlled by:
$(document).ready(function() {
$(".myslider5").slider({
animate: "true",
step: 1,
min: -1950,
max: 1950,
value: 0,
...
I have a function trying to run this:
if ( action=='fadeIn' ) {
if ( $( this ).css( 'position' ) == "static" ) {
$( this ).css( {position: 'relative'} );
}
$( this ).append( '<span class="bg_fade">' )
}
var fader = $( this ).find( '.bg_fade' );
alert(fader.attr('class'));
It works fine in Firefox, but in IE, the alert re...
i have a script in jquery (that grabs a value from a select field and transfers it to an input field) that i need to do in mootools...i love jquery... mootools i dont know...
not having much luck...
here is the code:
<select size="1" class="inputbox select "
id="producers" name="producers">
<option selected="selected" value="">-...
Hi all,
I have seen links that open modal windows AND have a nice animation effect that create the illusion that the window grows out of the link clicked. On closing the window a similar animation shows that the window shrinks and disappears in the link which originally opened it. I remember I saw it on some jquery page but don't rememb...
I want to make an "Open File" button to import txt files contents into a textarea.
How can I read the file contents without uploading it to the server?
I want to use javascript (with jquery lib) and I want to do it without refreshing the page.
...
This is very similar to a question I asked the other day but my page code has become significantly more complicated and I need to revisit it. I've been using the following code:
$('#myLink').click(function() {
$('#myImg').attr('src', 'newImg.jpg');
setTimeout(function() { $('#myImg').attr('src', 'oldImg.jpg'); }, 15000);
});
To r...
Hi,
I'm using Lightbox to display photos. So If I have two categories of photos, "work" and "vacation", I would do...
<a href="images/image-1.jpg" rel="lightbox[work]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[work]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[work]">image #3</a>
<a href="images/image-4.jpg" ...
Hi,
I am handling a click on a list item with jquery:
$("#some_list li").click(function(event) {
// magic happens here
}
The list items look like:
<li><input type='checkbox'>Some text<span class='info'>(?)</span></li>
I want to have different behaviours depending on whether the user clicks within the (?), or anywhere else ...
I have multiple coupons on a page and I'm trying to get comments to work on each coupon. So for each coupon i have a comments form. Im using jQuery + Ajax to accomplish this. Here's what my code looks like.
Coupon Page
<p>Comments:</p>
<% form_for(@comment) do |f| %>
<%= f.label :body %><br /><%= f.text_field :body, :size => "24...
TLDR I need to change a javascript variable on the same page after clicking a link (can be from a different page) so that the getjson request pulls different data without having to duplicate on html pages.
I am using some getJSON requests with Jquery, to make calls to populate my pages.
I want to be able to (in plain HTML / javascript...
I've got a model creation form in rails which I also have returning JSON through ajax.
My code so far look like:
$('#new_stem').ajaxForm({ //#new_stem is my form
dataType: 'json',
success: formSuccess
});
function formSuccess(stemObj) {
//does stuff with stemObj
}
And I have a multipart form with a file uploader (but I'm not su...
Hi all:
Please go here and use username "admin" and password "endlesscomic" (without wrapper quotes) to see the web app demo.
Basically what I am trying to do is to incrementally integrate my work to this web app,
say, every nightly, for the client to check the progress. Also, he would like to see,
at the very beginning, a mockup about...