jquery

Using jquery, how can I handle tags the same way that Live Mail handles email addresses?

I have a need to have a tag-like system that operates very similarly to how Live Mail does email addresses. For those who don't know, Live Mail provides a textbox in which you can enter email addresses. As you finish typing in an email address, Live Mail changes the address from being plain text into a div that has a border and has the ...

Jquery: How can I select all TD elements that don't contain an A element?

I'm trying to use JQuery to select all of the TD's in a table that DON'T have an A tag inside them. (They should just have text). How can I do this? ...

With jQuery, how can I implement a "page loading" animation?

When I submit a form using jQuery, I want to display an animation image (load.gif or progressbar.gif, etc.) for a few seconds. How can I show a GIF image in jQuery? ...

States and Countries select box - best way to do it?

Hi guys, this may seem trivial but I'm setting up, on a profile form page I'm building, a countries and states select box such that when you select the US or Canada then the states box would display states of the selected countries else it would display a None Applicable instead. My countries and states are in a database and I'm populati...

Bypass all cacheing on jQuery.autocomplete(1.02)

I am using jQuery.autocomplete(1.02) on my search box and I want exact string and substring matching. I don't care (yet!) about the database load, I'm happy for it to fire off a query every keystroke and bypass the caching entirely - I just don't want anything missed. To this end I have tried setting cacheLength=1, the minimum permitted...

Is there any way to increase the display speed of the SimpleModal dialog in jQuery?

I am using the SimpleModal plug-in in jQuery. When I use the action event, the modal dialog appears slowly. Is there any way to increase the speed of the modal dialog, so it appears quicker? ...

Sort using php and jquery

I'm trying to re-order a HTML table when the user clicks on the table header. Here is all I can do, but still doesn't work. in the HTML: // onClick on table header var par='ASC'; sort(par); from: ajax.js function sort(orderByType) { $.ajax({ url: "sort.php", type: "get", data: "orderby="+orderByType, success: func...

asp.net postback with jquery?

Hi there, Can anyone help, I have a asp.net button but recently replaced it with a standard html button ... What i need to do is postback to an asp.net page and ensure a method is called the button before was an asp.net button so i had this event Protected Sub btnCancelar_Click(ByVal sender As Object, ByVal e As System.EventArgs) ...

Draggable to drop once only on greedy droppable

I have two droppable divs that are very close to each other on the screen (note: they are not nested). A large draggable div is dragged on top of the two divs; when the mouse is released, the draggable happens to fall on both droppable divs (i.e. two droppable events are fired). What I would like to happen, is that in this scenario, the...

Fade in overlay in modal dialog

I have a JQuery UI dialog which is modal and has a black background with 50% opacity. Is it possible to make the background opacity fade from 0% to 50%? If so, how? Because currently it feels kind of like getting a punch straight to the face when a dialog is shown. FWIW, this is the CSS I'm using at the moment: .ui-widget-overlay { ...

Storing jquery code in external file and directory structure?

Hi there, Can anyone can confirm the best idea for storing jquery code, initially i was inserting everything in the HEAD of a document but i am seeing more and more code being used across pages, Is the best way to use include files .. with the extension .JS? Anything else or better with respect to this? What would be the best place...

Jquery with JSON Array - convert to Javascript Array

Hi, I've the following XML output from an asp.net webservice: <ArrayOfArrayOfString><ArrayOfString><string>1710</string><string>1711</string><string>1712</string><string>1713</string></ArrayOfString><ArrayOfString><string>Teleszkóp 350mm gázas</string><string>Teleszkóp 150mm olaj</string><string>Teleszkóp 260mm olaj sárga</string><strin...

JQuery animate

I have some JQuery code in the click event handler for a checkbox that updates the value of a span control on the page, then animates the background color of the span tag to yellow and then fade back to white in about a second to draw attention to the user that the value of the span has changed. The problem is that if a user clicks repe...

tinymce and Jquery UI dialog working nicely

I'm having some problems with Jquery UI Dialog and TinyMCE. Passing data to a text area works well with UI Dialog and Jquery. So setting data in text area like this works fine: $("#MessageDialog #messageDto_Body").val(messagedata.Body); $("#MessageDialog").dialog("open"); When I attach a tinyMCE editor to the text area...

Cross Domain Ajax Request with JQuery/PHP

Help, if you can- The situation: http://foobar.com includes a remotely hosted javacript file (http://boobar.com/stuff.js). The goal is to just get an alert from the remotely hosted php script on foobar.com I have tried the following code in stuff.js: $.ajax({ type: "GET", url: "http://www.boobar.com/script.php?callback=?", dat...

on click toggle ul - on click elsewhere hide ul

hey all - my second day of attempting jquery on a task at work, and am a bit stuck. i've got an unordered list of links.. inside an unordered list of links on clicking an <li class="headlink">, I would like the <li class="headlink"> 's child <ul> to become visible. on clicking away (anywhere on the document), I would like the child <u...

$('*').index(currentElement) will give a unique number?

Is $('*').index(currentElement) will give a unique number?i am asking because i can't understand the index method good from the JQuery docs ...

jquery autosize web interface?

Hi there, I have been designing with jquery and using the jquery UI widgets .. but always been designing for 1024 x 768 ... Is there any tricks or plugins (preferably that work with jquery UI) to automatically resize elements of my interface ... that way when somebody views it at a higher resolution it doesn't look so small.. Anybody...

Static Variable problem On JQuery

if(i==0){ $(document).ready(function(){ $("div#rozet").hover(function(){ $(this).hide("fast"); $(this).animate( { top:'+45px', left:'+500px'}, {duration: 1} ); $(this).show("slow"); $(this).stopall(); }); i=1; } if(i==1){ $("div#rozet")....

Including the rendering of an HTML document into another HTML document

I have a string representing a stand-alone (and valid XHTML 1.0 Strict) HTML document, something like var html = "<?xml ... <!DOCTYPE ... <html><head><style>...</style></head> <body><table>...</table></body></html>"; The body of this HTML document contains a table whose CSS-style is described in the head of the HTML ...