jquery

Mimicking a CLI in a web page, using jQuery

I want to mimic a CLI in a web page, where a user types in a command on the page, and it is sent to the server for execution, and the response is displayed in the page - much like a CLI behavior. My jQuery fu is not what it should be and I am thinking that this must be a 'pattern' that must occur quite often so maybe someone can point t...

Implementing Google ClientLogin via jQuery

I am trying to authenticate to a Google account using Google's ClientLogin method. I am trying to do this via jQuery; however, with my current code, I am getting a 405 Method Not Allowed response from Google. Below is a sample of my code: $(document).ready(function() { $('#connect').click(function(){ $.ajax({ type: "POST",...

What is wrong with next jQuery code?!

can you help me why it returns error. part of code /publications/deleteItem/' + valueClicked works ok, i checked (proper item is properly deleted). var valueClicked = 123456; $.ajax({ type: "post", url: '/publications/deleteItem/' + valueClicked, // 100% works! success: function(xml) { alert('602!'); }, er...

boolean variables posted through AJAX being treated as strings in server side

Following is a part of an AJAX functionality to add classes and packs to session cart:- The jquery part function addClassToCart(itemId) { addItemToCart(itemId,true); } function addPackToCart(itemId) { addItemToCart(itemId,false); } function addItemToCart(itemId,isClass) { $.post(url+"/ajax/add_cart", { operation: 'add_c...

How to disable a jQuery function after it is called ?

I want to disable the working of a jQuery function. In my page I have a login form. After login success, it disappears and the main page is shown. But if I refresh the page, it again shows the main form. It is because all of my contents are in 1 .html file. I made all of them display: none; and after login jQuery runs the .show() method....

jQuery slider help

I am creating my own custom content slider and am wondering what the best way to go about it is using jQuery. I want to have two buttons next/previous. When the user clicks next the current slide will slide to the left and the new slide will show. How should I go about doing this in jQuery? I would use a plugin but they are so annoying...

Send another <input> value in Ajax file upload

here is my upload function function ajaxFileUpload(){ $("#loading") .ajaxStart(function(){ $(this).html('loading...'); $('#buttonUpload').hide(); }) .ajaxComplete(function(){ $(this).hide(); $('#buttonUpload').show(); }); $.ajaxFileUpload ...

Is it possible to limit the user to upload an image with fixed dimension?

Hi, Is there any Jquery Plugin to perform the image dimension operation on an image before being uploaded using uplodify. i want the plugin to check the image dimension with the fixed define size and then only process for uploading. right now i am doing it with PHP function, instead of server side validation i want to adopt the client...

Jquery mouse over div slideUp and mouse out div slideDown.

Hi friends, Here is my code http://jsfiddle.net/AB6J3/7/ you can see, edit, etc. When I roll over to red border box, the orange box should slide up and at mouse out it should slide down. it works well for the other way, but when I change slideDown to slideUp, it doesnt work :/ what am I missing? Appreciate helps. <!DOCTYPE html> <htm...

Implement Facebook Like Button on JQuery Galleriffic page

Hello, I am using JQuery Gallerific photo album at our site. http://www.twospy.com/galleriffic/example-5.html I want to implement the Facebook Like button and Open Graph Protocol on this page. facebook like button <fb:like href="http://www.twospy.com/galleriffic/example-5.html" layout="button_count"></fb:like> open graph protocol ...

HTML5 contentEditable with jQuery

I have some elements that need to have the text inside editable, for this I am using the HTML 5 attribute contentEditable. I can't seem to do use jQuery for this using multiple selectors. What I want to do is have every tag inside a container div be editable. Here's an example of what it would look like if it worked with jQuery: $("#con...

Slidetoggle am I missing something

I have this page and when i click the header like "Computers" or any of the others the items below need to slide up and down I have this structure <div class="title-box box-active"> <div class="line"> <div class="text left"> <p>(1) Software</p> </div> <div class="price right"> <p...

jQuery/CSS auto width assignment not working propely on IE, Safari, Chrome

Here it goes: I have a fixed DIV containing an IMG. The DIV is fixed to the window borders (top, bottom, left. The right edge "floats free") so it adjusts to any window resizing. The IMG has height:100% so it uses all of the parent's height and width:auto to keep the aspect ratio. My goal is that when window resizing, my parent DIV need...

jQuery Uploadify - Problem in Update Panel

I am using jQuery Uploadify and it doesn't re render the FileUpload control after UpdatePanel's updated. here's the js code: $(document).ready( function () { $("#").uploadify({ 'uploader': 'scripts/uploader.swf', 'cancelImg': 'images/cancel.png', 'buttonText': 'B...

jQuery: append() object, remove() it with delay()

hey guys, what's wrong with that? $('body').append("<div class='message success'>Upload successful!</div>"); $('.message').delay(2000).remove(); I want to append a success message to my html document, but only for 2sec. After that the div should be deleted again. what am i doing wrong here? regards ...

How to select the first <td>s on the left of <table> with jQuery?

Say,how to select the tds of the 1st column with jQuery? ...

jQuery add css without being in html

I want to add css styles with jQuery, but not be in in the html when I print out html(). Example: $('#wat').css("cursor", "pointer"); $('#ok').click(function() { var str = $("#wat").html(); $("#html").text(str); }); when it prints out the html, inside the element with the ID of "wat", it has style="cursor: pointer; Is there a way...

$.ui.position undefined in IFrame

I'm using the jQuery autocomplete widget. I have it implemented in a plain page. It works beautifully. I embed the autocomplete control in a modal window and I'm getting an error: $.ui.position is undefined $.each( [ "left", "top" ], function( i, dir ) { if ( $.ui.position[ collision[i] ] ) { $.ui.position[ col...

adding jsp in jquery layout pane

I have my layout like following: The west pane comprises of few links on which when user clicks, corresponding jsp page should displayed in the center pane of the layout.... How can i achieve that an outside jsp page should be displayed in a particular pane; here center pane???? ...

Javascript - To combine or not combine, that is the question.

Ok, so I know that it's obvious to combine all of a pages Javascript into a single external file for efficiency purposes, but that's not quite the question here. Say I have Default.htm with a search field that has a little Javascript magic attached to it. Then I have Contact.htm with a contact form that has some Javascript magic attach...