jquery

Open source flashcard application / architecture

I'm looking to write a asp.net flashcard application and was wondering if anyone knows of a free or open source flashcard application that I could use as a reference? Or even better if there was a asp.net or jquery/javascript flashcard app out there? Thanks. ...

Remote JSONP datasource isn't working for me

no matter what i do, i couldn't get alert("test"); to display an alert. for some reason this jsonp (although it fetches the data correctly: http://u.kodingen.com/1JsHcN ) never calls the success function. if i copy and paste the example here: http://jqueryui.com/demos/autocomplete/#remote-jsonp it works beautifully. but my URL doesn't....

Help with a regular expression for a jquery selector

Need help writing a regular expression to match any class containing the phrase block-container I've come up with this: '[class^=block-container]' but I need help writing the wild cards around the phrase block-container. Examples i need to match: nav-block-container-left block-container-whitebox right-block-container ...

difference between this and $(this)

Possible Duplicate: jQuery $(this) vs this When using jQuery, whats the difference between this and $(this)? ...

jquery slideToggle weirdness

I have a menu that on .click triggers a slideToggle to show/hide elements of a list. When the page first loads, all elements of the list are visible. As you click on the menu, which corresponds to the different elements in the list, different parts slide away. The menu looks like this: One | Two | Three The list looks like this: <li...

Javascript/JQuery join() method error when using on an array

Hello All, I'm trying to loop through my JSON array and assign a specific key of each element into a variable: Here is the array: "joining_profiles": [ { "pic": "http://graph.facebook.com/832332325303/picture", "id": 3, "name": "Test2 Gmail" }, { "pic": "http://graph.facebook.com/6...

JQuery getting location of element relative to window

Given an HTML DOM ID, how to get an element's position relative to the window in JavaScript/JQuery? This is not the same as relative to the document nor offset parent since the element may be inside an iframe or some other elements. I need to get the screen location of the element's rectangle (as in position and dimension) as it is cur...

How to verify a form is empty ? PHP or JS

Hi All, Please, I'm a newbie in PHP, and created my web site, with a text form, i can verify with JQuery if the txt form is empty or not with the following code : $(document).ready(function() { $('#formLike').ajaxForm({ target: '#content', beforeSubmit: v...

JDocumentRAW::addCustomTag() error on joomla component using jQuery.getJSON()

Hello All, i m newbie to joomla, although i have worked a lot with jQuery so i feel comfortable in jQuery rather than mootools, now i m developing a joomla component, so what i do.. on joomla/administrator/component/com_property/admin.controller.php i write below code defined('_JEXEC') or die('Restricted access');...

slide background cover and change the covered background image

i have a div with an image background, another div above starting with transparent. I want to slide in a faded png background in the duiv above, change the background and slide out to show it. i have coded this, the problem is the sequence. the structure slide_in, change background, slide_out is mixed randomly. var step = 20; ...

JQuery - hide a set of divs/images one by one randomly

Hello, I have a set of visible divs/or images. by clicking one item, I'd like to hide the other divs/images. But it should be - randomly - one by one with either fadeOut() out or hide(). - (maybe animated) My HTML: <DIV class="myDivBox">Box no 1</DIV> <DIV class="myDivBox">Box no 2</DIV> <DIV class="myDivBox">Box no 3</DIV> <DIV cla...

How to know that a string starts/ends with a specific string in jQuery ?

I want to know if a string starts with the specified character/string or ends with it in jQuery. For Example: var str = 'Hello World'; if( str starts with 'Hello' ) { alert('true'); } else { alert('false'); } if( str ends with 'World' ) { alert('true'); } else { alert('false'); } If there is not any function then any al...

Weird table-layout:fixed; "bug" on WebKit.

I'm building grid component for my own needs with sortable columns, rows, etc. Existing ones either were not suiting my needs or were too heavy. I just started on resizable columns when realy unexpectedly WebKit has hit my with unexplainable anomaly. While table-layout:fixed; worked perfectly on all other browsers (even IE) Safari/Chrome...

How do I bind to the scroll wheel when over a div?

I'm creating an image editor in the browser and I've got the code for all of my controls done. Now I'd like to map hot keys and mouse buttons. the keyboard is easy, but the mouse is not. I need to detect when the mouse is over the canvas div and when the mouse wheel is moved above it. The mouse over part is not hard, its binding to the ...

Form Validation using Jquery

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Validation POC</title> <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script> <script src="Scripts/jquery.validate.js" type=...

jQuery plugin for datatables

I am working on a datatable which is not very big and I need to implement the following UI Draggable Columns Resizable Columns UI has to have memory across sessions. I have gone through the list of jQuery plugins for datatables and I am not really satisfied with what I was getting. Things like flexigrid and others with YUI or EXTJS ...

Using jquery, how can I slide a div into the page similar to powerpoint?

In MS PowerPoint you can slide content into the middle of the page from outside the screen and from any direction you choose. I wish to do this with Jquery. Basically, I want to slide a picture of a curtain from some direction, then slide a picture of a guy in and finally slide a quote on top of it all. Does anyone have any clue how t...

Key value pairs using JSON

Is there a way to handle data structures using JSON object in a way of Key/ Value pairs? If so can some one elaborate how to access associated value object from the key Assume that I have something like this KEY1 | VALUE OBJECT1 - (NAME: "XXXXXX", VALUE:100.0) KEY2 | VALUE OBJECT2 - (NAME: "YYYYYYY", VALUE:200.0) KEY3 | ...

2 dimensional array in javascript

Hi, i would need to store in a javascript variable the following table: Nodeid parentid theme Document 4787814 4787484 Theme1 Document 1 4787824 4787484 Theme2 NULL 4787834 4787824 Theme2.1 Document 1 of theme 2.1 4787834 4787824 Theme2.1 Document 2 of theme 2.1 4787834 4787824 Theme2.1 Document...

Jquery - hide() then fadeIn() then fadeOut() is there a cleaner way?

I'm trying to achieve some animation using jQuery. I have it working but I'm 100% sure there is a cleaner better way of doing and I'm hoping someone can point me in the right direction. Here is my code: $(document).ready(function () { $("#1-popup").hide(); // Hides the first popup $("#2-popup").hide(); // Hides the second po...