jquery

jQuery check mysql database if username is already taken

Hi, i know that this is possible but i am confused as to how it works. I have been looking online for how it is done and I think i am missing something in the process I have this jQuery code so far: $("#Contact_Info").validate({ rules: { username: { required: true, minlength: 6, ...

use Request.Form command not Request.QueryString command with jquery

I have simple registration form. Once all information entered, user click submit button and all information sent to default.cs.asp?Process=Add2Member. Everything works. Now, I am trying to implement it into ajax Jquery so that user will stay on same page. I looked at sample codes to do this. I am confused at one point. As I understand, w...

How to hide flash embeds without disabling them

I'm trying to hide some embedded flash objects without disabling them. Right now I'm placing them in a div, and using the jQuery UI hide method. The problem is, when I show the flash later using the show method, the flash reloads. Is there any way to prevent this? Is it possible to have the flash hidden but still working in the backgrou...

jqGrid dynamic select option

I'm creating a jqgrid with drop down columns and I'm using cell editing. I need the options of the drop down columns to change dynamically and I've tried implementing this by setting the column to be: { name: "AccountLookup", index: "AccountLookup", width: 90, editable: true, resizable: true, edittype: "select", formatter: "select" }, ...

Drag/drop problem (draggable in position:relative parent)

Here's the scenario, I'm using prototype and scriptaculous, but I believe jquery would have the same issue. I have a list draggable images in a relatively positioned div. The problem is I can't drag the images out of the parent div... well... you can, they're just not visible. If you remove the position:relative on the parent div, it wor...

lightest non-modal dialog with jQuery?

Here is a demo: http://jqueryui.com/demos/dialog/ But it's too huge for me. There are 2 thousand lines included in all. I'd like to have one in a single file with less than 1 thousand lines. ...

jQuery image src change after load

Hi, I'm using jQuery to replace an iframe sort of environment on a page by loading the pages content into a div instead of a url into an iframe...I don't have anything against iframes or anything but it just seems to be cleaner and more versatile (returning fragments of html etc) than having whole pages for that... Anyway, using a simp...

jQuery: How do I select text in a div and add tags around it?

Hello everyone, I'm new to jQuery and I'm trying to do the following: <div class="test">text</div> I'm trying to write jQuery that will select the text inside the div and change it to: <div class="test"><span>test</span></div> When I try this in jQuery: $(".test").prepend("<span>"); $(".test").append("</span>"); It shows up in t...

jQuery - How to do hover on code that has been added using prepend

I have added some code using prepend as you can see. Each of these items (the table cells) has a class called "predicate". When the user hovers over these I want to replace "predicate" with "predicate-over". I thought I had what I need below but it doesn't seem to work. <script> $(document).ready(function() { $("#leo-smart").hover( ...

how to get event coordinate with jQuery?

<a id="clickme">here</a> when I click on the link,I want to get the coordinate where click happens. how to do that with jQuery? ...

JQuery + form fields not inserting to database 100% correctly

I have a complex form which uses blur events to trigger updating to mysql. There is validation which disables the submit button until all required fields are completed. The problem is, users are managing to submit the form even though they haven't completed all the fields. My theory is, for some reason the database is ignoring some of ...

Google App Engine + jQuery Ajax = 405 Method Not Allowed

Someone has to be able to explain what I'm doing wrong here! I'm trying to create the MOST simple example of an AJAX post to a Google App Engine app...and I'm failing! Here is the app python import cgi from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi...

How do I prevent multiple jQuery UI droppables from being triggered?

I have a jQuery UI draggable and several separately-defined droppables. Because one of the droppables is configured tolerance: 'intersect', it's possible for a draggable to be dropped on more than one kind of droppable at the same time. What's the best way to prevent the unintended droppables from firing? Basically, I'd like to prioriti...

Parsing JSon array in JQuery

Hi, I'm trying to get the hand on JQuery and Json using an Asp.Net webservice. The Webservice returns this result: { MyResult: { Ticket: { "Author": "rd", "CssClass": "RED", "ExpirationDateTime": "2009-08-16T16:55:43.577+02:00", "id": "38", "Message": "We are going ...

Why cant I load an external resource from jQuery load method?

In the process of learning Ajax requests using jQuery, I tried to load google home page on the click of a link. So I wrote something like: $("#ajax").click (function (event) { $("#g").html("Loading..."); $("#g").load("http://www.google.com"); event.preventDefault (); }); And somewhere in body: <a id="ajax" href="http://www.google....

Attribute localization using jQuery

Hi, I have a javascript page which I am looking at localising. I have the translation handled, however one thing I am having difficulty with is the best way to handle which text to set. Obviously, for a button I should set the title / value. For a span probably the innerHTML / innerTEXT and for an image the alt. I was wondering if ...

How to change the JQuery Thickbox windows dynamically

How to Change the JQuery Thickbox windows dynamically when the browser windows reduces or increases Please help me to solve this problem ...

ASP.NET AJAX or jQuery (UpdatePanel/ScriptManager or UFrame/jQuery.ajax)

Hi, We use the asp.net UpdatePanel and the ScriptManager/ScriptManagerProxy for ajax related functionality; reducing full page refreshes and calling WCF Services respectively. we also use jQuery and plugins for some parts of the UI. We have had some issues with javascript library related conflicts, but have come across some posts indic...

How to manage single JavaScript file in ASP.NET MVC application?

I am working on an ASP.NET MVC application and using jQuery. I understand from various web resources that I should: Reference the google CDN for loading jQuery library. (No problem with that) Combine, minify and compress my javascript files into one file. NOT write JavaScript code in view files. Now the problem is that on different ...

Adding extra CSS with javascript

There's this image on a page I'm coding which should be resized and horizontally and vertically centered depending on some variables. I can't use the CSS sheet for this, as the width and height variables are dynamic. Therefore I want to have javascript add two extra arguments (top and left) to the style of this specific image. I've trie...