I've looked around and I'm trying to find an elegant solution to this and I'm yet to find one. I have an ASMX web service in .NET that I'm trying to call that requires parameters. I'm using jQuery on the client side to call the service and my jQuery looks something like this:
$.ajax({
type: "POST",
contentType: "application/js...
Hey
Is it me or do none of the (css) class effects of jQuery UI work in Google Chrome. I thought it might be my code, but even on the example site they are not working in my chrome. Other examples work.
http://jqueryui.com/demos/addClass/
Thanks
...
Hey guys, I have written some jQuery code to use the "slideUp" animation when deleting rows from a table. In order for the animation to appear smooth, I wrapped the contents of each TD in the row with DIV tags, and called the slideUp function on the DIVs, removing the actual TDs upon completion of the animation. The code for that is as f...
I have multiple forms with id=#REQUESTFORM. To retrieve the correct information when sending data, I use closest command. But same command does not work when I tried using it in success ajax callback. How will else can I receive and print server's response in correct form?
$("[name='respond']").live('click', function() {
$("[name...
I have some text on a page and I want to located and remove any text found in brackets.
For example:
<td>here is [my text] that I want to look at</td>
So I want to grab that text (my text), save it in a variable and remove it from where it is.
...
I"m trying to make a gallery piece for my website. I know there are ones out there that would do most of what I want automatically but I'm hoping to be able to build my own that way I know exactly what's gone into it.
Problem is, it's not working. Sort of.
The CSS works as it's supposed to. The jQuery Cycle plugin is providing the sexy...
I'm working on a site and I have run into a few problems. Here is the site:
http://wesbos.com/tf/shutterflow/?cat=1
I have two divs. .slide and .cover.
.cover fades in and out when hovered over displaying some text and a transparent background. This is done with Jqery and the transpareny is with CSS.
This works fine on load in all ...
How come this doesn't create a vertical 5px-wide bar on the ride side of the window?
<html>
<head runat="server">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#scrollBar").css({
height: $(window).height,
...
Is it considered good practice to add style to the elements generated by a jQuery plugin in the script itself, or an external stylesheet?
(function($) {
$.myplugin= function(options) {
var options = jQuery.extend({
backgroundColor: '#0066cc',
borderColor: '#003366',
borderWidth: '1px',
fontColor: '#66ccf...
I have a textbox that must have a MIN number of characters as well as a MAX number of characters. What is the best way, using jQuery, to make sure that the input is within the range (while displaying status messages to the user) before allowing the user to submit the form?
Update: the code below works to some degree, however I am getti...
Hi All,
I'm a bit confused on how to properly select a parent item, that is 2 DIV's up.
In other words, my HTML looks like this:
<div>Folder</div>
<div class="file_info">
<a href="test.jpg">Test File</a>
</div>
Here's my current jQuery:
$("a[href$='.jpg']").addClass("Image");
However, I don't want to add the class to t...
Hi all,
I'm working on a project which uses user authentication. I'm facing a issue with my AJAX requests if there is no authenticated session present when the request is made.
I've a session timeout of 3min, so if the user keeps idle for 3 min then do some action which causes a AJAX request then the request will fail and return a 403 ...
Hi,
I want to validate url and want to display message. Below is my code.
$("#pageUrl").keydown(function(){
$(".status").show();
var url = $("#pageUrl").val();
if(isValidURL(url)){
$.ajax({
type: "POST",
url: "demo.php",
data: "pageUrl="+ url,
success: function(msg){
if(msg == 1 ){
...
How do I "lock" a textarea with jQuery so that no more characters can be entered? I don't want to necessarily disable it since I want to allow characters to be deleted.
update: oops..it just came to me:
if I am limiting the length to say 400 characters then i can use the following when the length is > 400:
this.value = this.value.subs...
Hi,
I am using the following piece of jQuery code:
$('div#addMenu1').click(function(){
if (!menuSet1){
menuSet1 = true;
$('div#sliderOne').slideDown('slow');
$('img', this).attr('src', 'Green_Up.png');
$('img', this).attr('title', 'Collapse');
$('div...
Hi,
I currently have a page with four list boxes on it and imagine a button alongside each one, say:
List 1
List 2
List 3
List 4
I also have a <"div#formEntry"> that holds a form with text fields, for users to enter information in.
My question is, depending which button I have pressed, I would like to slideDown this div immediate...
Hi All,
I want to attach (show/hide text) dynamically to a span and when clicked on that particular text, i want to have show/hide effect on a fieldset below.
I acheived the task of having show/hide text appended to span. But the problem arises when i click on that text. Nothing happens except the text beside span gets changed.
HTML:
...
I have a -link element that has href link to page, but I have to use Ajax to load that content from href -url and not redirect user to that page. How can I modify my link to just load content from that link, so I can inject that content to current page?
<a class="bind-jquery-event-here-class" href="http://webpage.com">Link</a>
...
Let's say that a web page is twice the height of the browser window (thus there's a scroll bar). How do I retrieve the height of the web page in jQuery?
...
hi people. i am new to jquery so kinda new your help/guide to do this. i got a textbox where i write html tags. now what i want to do is a preview button. it should open a jquery layer/popup with the written html from my textbox so i can se it. is there a way that any of you could guide me to where to find scripts like this or help me ou...