Hey all, I'm looking at building an ajax-heavy site, and I'm trying to spend some time upfront thinking through the architecture.
I'm using Code Igniter and jquery. My initial thought process was to figure out how to replicate MVC on the javascript side, but it seems the M and the C don't really have much of a place.
A lot of the JS w...
I've constructed a calendar template for a Drupal site using an HTML table, and I've got jQuery to add a class 'no-text' to each empty cell:
$('table.calendar td:empty').addClass('no-text');
This works well, but my problem is that the CMS WYSIWYG editor automatically adds the HTML entity to empty cells. I've therefore attempte...
I have this code.
function loadBottom(dockitemid)
{
var itemno = dockitemid.substring(3,4);
var adres = pages[itemno - 1];
$("#BottomLoader").fadeIn(300);
$("#Bottom").load(adres,function(){$("#BottomLoader").fadeOut(800);});
}
The problem is it only works for the first time. Once the #Bottom div is loaded with some ...
Hello! I'm diving into the world of web development after ten years of desktop application development and am currently learning about the many high level concepts, one of them being jQuery. I've been hearing people mention that jQuery will eventually be integrated into the ASP.NET framework.
Has it been integrated into ASP.NET yet?...
I've got a list of elements and I want to use the header divs to separate them after the pages loaded up. So the code below,
<div class="header">Header 1</div>
<div class='test'>Test 1</div>
<div class='test'>Test 2</div>
<div class='test'>Test 3</div>
<div class="header">Header 2</div>
<div class='test'>Test 4</div>
<div class='test'>...
Hello. I have something like the following. A main page has jquery tabs on it. It loads content for the tabs from other pages. Using the hijack plugin, the content loads correctly for me. Now, on the loaded tab, I have a form (page2.html below). On here, when I hit the link, I would like the new page as directed by the action (edit...
I have an iframe inside my page... And this iframe is basically a simple form with date input field to which I binded jquery datePicker.
My problem is that iframe is pretty small in dimensions, so when I give my input field focus and datepicker rolls out, it's only partly shown and the rest is hidden inside of iframe.
My idea is move d...
What's the difference between the space and > selectors? And possibly related, how can I look for something that's the direct child of something else, and not lower down the descendant line?
...
I want to have a bunch of spans with classes of different "depths", i.e one may be depth 1, another depth 2, another depth 3.
<span class="depth1"></span>
<span class="depth2"></span>
<span class="depth3"></span>
Then, if I want to hide anything that's below depth 3, I don't know how else to do it besides a for loop
for (i = 1; i <= ...
I am using the jquery form validation plugin to validate a long form. If a user submits the form with multiple fields that fail to validate, the cursor returns to the last field that did not pass. Instead, I want the cursor to be returned to the first field in the form that failed validation. Rather than modifying the plugin, I would lik...
I thought it would be simple but I still can't get it to work. By clicking one button, I want several animations to happen - one after the other - but now all the animations are happening at once. Here's my code - can someone please tell me where I'm going wrong?:
$(".button").click(function(){
$("#header").animate({top: "-50"}, "slow...
I have a simple one text input form that when submitted, needs to fetch a php file (passing the inputs to the file) and then take the result (just a line of text) and place it in a div and fade that div into view.
here is what i have now
<form id=create method=POST action=create.php>
<input type=text name=url>
<input type="submit" valu...
I need a div to fade in when the page loads.
<div id=monster></div>
Im already using jquery FYI.
Thanks in advance.
...
I setup the form validation using jQuery validation plug-in's validate method and I have a submit handler that modifies the input element's value (I use YUI editor and it needs saveHTML() call to copy the iframe's content to the textarea element.). When submitting the form, I want the validator to validate the form after executing my sub...
i feel i have done everything right but i cannot get lightbox to work at all. It is also coming up with the error that jQuery is not defined in the jQuery file.
file is http://www.lotuswebdzine.com/lotusweb/portfolio.php
...
i have created list of elements. if one element is highlighted (using buttons 'prev' and 'next'), it gets 'active' class. if 'add element' button has been pressed, element gets class 'selected'. but if an active element is selected too, i want to replace 'add button' with 'remove button' - which removes class 'selected' from active eleme...
Hi everyone,
I need to insert the text of a selected text box into a hidden field, I'm not quite sure how to achieve that,
any help would be appriciated.
<form id="select">
<select name="select" id="select">
<option>NY, 10", £6.65</option>
<option>NY, 12", £8.95</option>
...
Hi!
I have a little jQuery animation which fades in a link when hovering an :
$(function() {
$('.delete').hide();
$('#photos img').hover(function() {
$(this).parents('li').children('.delete').fadeIn('fast');
}, function() {
$(this).parents('li').children('.delete').fadeOut('fast');
});
});
But if I quickly mouse my mo...
I have a piece of code which runs on window resize. I am pulling the width, and the outerWidth of a input text element.
This process works fine in every browser, except Webkit, which returns the proper result from outerWidth, but the result from width never changes from the on load original.
This is actual console output from my script...
Hi Guys,
I am testing some jQuery in Chrome/Safari and I just cant seem to solve this error. Basically, I am doing:
jQuery(':radio', '.some_class')
.change(function() {
jQuery('.special_class').show();
})
.blur(function() {
jQuery('.special_class').hide();
});
...