Hi,
I have a code snippet that goes like this:
$('#content').css('padding-top', heightTwo + 44 + 'px');
heightTwo is always changing. When it has the value 200 for example, the padding top gets the value 20044. I want it to be 244 but don't know how to write it. What is the correct syntax?
Thanks
...
So here is our scenario...
We have a old website and from that website,on click of a button, we launch our newly developed application from within an IFrame.
Now In IE6 , I am trying to catch the scroll event (ie catch the scroll of the browser).
However,it dosent either the event isnt getting fired or i am not tapping into the right obj...
I'm working on a Web App Framework that I'd like to put under the Eclipse Public License for various reasons. The only problem is that I want to include jQuery in the framework, and that is under the GPL and / or MIT licenses.
Edit 1: The core of the framework is coded in PHP, using jQuery to jazz up the client side of things. I'm not t...
I have 3 .blur's and only the first one works for some reason. here's the jquery code:
<script type='text/javascript'>
$(document).ready(function() {
$("#user_name").blur(function() {
if ($(this).val().length > 4) {
$("#usernamecheckbox").html("<img src='images/checkmark.png' alt='' />");
} else {
$("#...
I'm trying to use the official jQuery autocomplete plugin with an ASMX web service in an ASP.NET 3.5 Web Forms application. If I understand it correctly, the autocomplete plugin can only use HTTP GET to call a service (with two query string parameters: q and limit). I figured out how to make the web service respond to the HTTP GET calls,...
Before, I had this:
<head>
<script src="/Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
var optPrompt = "- Select One -";
var subCats;
var parentCats;
var nextBtn;
var ParentChanged = function() {
ClearDescription();
...
I want a jQuery driven editor that can create the form HTML on the fly, and then generically save it all into a database field. I can handle all the jQuery, but I'm just looking for a structural DB design on how to make a quick, simple, generic form editor. Is saving all the HTML of the form a good idea?
Background information:
We nee...
My page is refreshing when I add a Comment in my example. What am I doing wrong?
I want the comments in the Details page to update without refreshing the page.
I am trying to do something very similar to how the comments are added here on StackOverflow.
My Details.aspx has a list of Issues, when clicked goes to a Details/id page which s...
Hello, I'm trying to learn how to validate a form and I have this problem:
When I run this code and I don't enter anything - the form should not send, but it does. My question is ... Why, and how can I fix it?
the html:
<form method="post" action="#">
<fieldset>
<legend>Formular</legend>
<label for="name">Name: </label>
<input type="t...
I know it is really annoying to read this topic again. Before you start diggin into the code, one solution could be that I don't get prototypes and objects in JavaScript. But at this point i think, i do.
The problem is:
How to clone an JavaScript Class (created with prototypes), so that the “cloned” Class remains untouched when extendin...
I want to do an addclass, but only if it doesn't have a child of a certain class.
$selector.addClass('addthisclass');
So I want:
<div class="addthisclass"><span></span></div>
And nothing on here.
<div><span class="badclass"></span></div>
Anyone know how to do this?
...
I have implemented jQueryUI sortable list and it works really nice. At some point in time, I wish to disable further sorting and keep item order as it is, without user being able to change it.
It tried something this:
$('.sortable').sortable('disable');
and this:
$('.sortable').each(function() { $(this).sortable('disable'); });
...
Hi
I want to use jQuery tabs as a navigator, i.e. the tabs shouldn't actually contain anything but instead, when user clicks all the other tabs then the current, it should navigate to another page.
Also, when arriving to that page, I want that second tab shoould be visible onload.
Example:
Page1.aspx:
Page1 | Page2 | ...
Hello all
I have added a method on jQuery validator like this
$.validator.addMethod('myEqual', function (value, element) {
return value == element.value; // this one here didn't work
}, 'Please enter a greater year!');
$.metadata.setType("attr", "validate");
$("#educationForm").validate({
showError...
I have a paragragh of user entered text in a textarea.
line1
line2
line3
intially all text would be black
when a button is pressed
each line's color changes to red gradually (2 sec each line)
can this be done with only jquery?
...
I am posting form data to a page that is using jQuery tabs. Because you can't load post data into an Ajax query (at least without a ton of extra work and making it more insecure), I'm loading the active tab as an actual div on the page.
<script type="text/javascript">
$(document).ready(function() {
...
Hi all..
When I found Hilight I almost fell down my chair. It's exactly what I need :)
Now, the sad thing is that the demo doesn't seem to work in IE8. Are there any fixes or alternatives out there?
...
<div id="first">
<div id="here">...</div>
</div>
<div id="second">
<div id="here">...</div>
</div>
jquery:
$("#second #here").click(function(){});
how to write jquery to detect when I click the second ?
...
Hi guys,
I know this is a simple one for some of you, so please help me out!
I have 3 panels (divs) which I want to slide one after the other from clicking a button. Sliding one panel is easy but how to slide multiple divs in order?
Thanks.
...
Is there a way I can generate switch statements in jquery/javascript by using some sort of loop to do the work for me? For example, if I had a statement like:
switch ($("#play option:selected").text()) {
case '1':
$("#play_1").slideDown().find("input").addClass("someClass");
break;
case '2':
$("#play_1"...