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...
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",...
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...
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...
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....
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...
here is my upload function
function ajaxFileUpload(){
$("#loading")
.ajaxStart(function(){
$(this).html('loading...');
$('#buttonUpload').hide();
})
.ajaxComplete(function(){
$(this).hide();
$('#buttonUpload').show();
});
$.ajaxFileUpload
...
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...
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...
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
...
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...
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...
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...
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...
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
...
Say,how to select the tds of the 1st column with jQuery?
...
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...
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...
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????
...
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...