jquery

jQuery getJSON: Danish letters

Hey, Im using jQuery getJSON method to get data from my database via some php code. Im sending arrays of data from serverside to clientside via the getJSON method. If a word in this array contains a danish letter (ÆØÅ) getJSON just returns null. I have tried to check the words before i use the getJSON and here there is no problem. I...

jquery How to select the 1st cell of each table row

I have a table like this: <table id="myTable"> <tr><td>1sta</td><td>2nd</td></tr> <tr><td>1stb</td><td>2nd</td></tr> <tr><td>1stc</td><td>2nd</td></tr> <tr><td>1std</td><td>2nd</td></tr> </table> Using jQuery How do I select the 1st <td> element in each row of "myTable"? ...

Javascript: how to handle a next item in json - playlist

I have an application that creates a playlist of videos and returns them in json format, the video ID is the "key" and then it has video information attached to it. The video ID is not sequential, "1234", "4234", "123", "5454" are possible IDs, among others. I have a button for switching the next video, the problem is I don't know how t...

onclick detection on bgiframe in jquery

Hello All, I am trying to find way, to detect onclick event on bgiframe if possible. The reason behind this is, since i am using a jquery dialog in ie6, with bgiframe plugin included. I am not able to bind the $('.ui-widget-overlay').click(function() { $dialog.dialog("close"); }); And therefore i am not able to close the dialog, if c...

jQuery $.live() doesn't work with table rows on the iPhone

Hello. I'm making table rows click-able with jQuery's $.live() function. Works perfectly on Chrome, Firefox and even desktop Windows Safari -- but not on the iPhone. $.bind() works everywhere, but for obvious reasons I'd like to use the other function. Does anyone have any idea why it doesn't work and how can I fix it? Example code belo...

Jquery UI Dialog issue with IE 7,8

I'm currently using JQuery 1.3.2 , JQueryUI 1.7.2 and IE 7 I am having a problem with adding lots (list of 2000 items) of options into a tag inside a jquery dialog in production environment. I can't post any screenshot regarding this issue due to copyright materials. I have a button "New Contact" that is a JqueryUI dialog pop-up (mo...

jQuery event when hash tag (or any character) is typed!

I have a textarea field on my website and I'd like to use jQuery to trigger an event when a user types the hash tag. Similar to the trend of websites like Facebook and Twitter who allow you to query a database for friends as you type after you type a hash tag or use the '@' symbol. Would anyone be able to provide a plugin or example of...

Labels and hidden fields in Internet Explorer (and jquery)

I'm having trouble checking hidden checkboxes in IE. This is the base html: <input id="groups_ids_1" name="group_ids[]" type="checkbox" value="1" /> <label for="groups_ids_1">Display</label> This works fine, but if I then hide the checkboxes using either $('input[type=checkbox]').hide(); or $('input[type=checkbox]').css('visibilit...

jQuery: dom insertion selector problem after .get

HI Volks, here is my code block which I want to replace by the ajax respond: <div class="results"> <span id="like9"> <a class="like" rel="ajax.php?id=9" href="#">klick</a> </span> </div> this is how I observe the ajax link: $(document).ready(function() { $('.results .like').click(function() { params = getUrlVars($(t...

jQuery - consuming JSON resources - some return data, others don't. Why?

I'm trying to figure out how to consume json URLs in the browser and render the data in my web pages using DOM. I am not getting a consistent or predictable response. I found a JSON URL at Google Calendar which shows the json response in my browser if I just type the URL in the address bar. I found another JSON URL at business.gov whi...

Where can I download a non-minified version of jQuery UI?

I'm trying to customize the autocomplete combobox with the intent of using it for nested lists with flyouts. Starting this with the minified version of jQuery UI is obviously not ideal. The download builder only provides minified downloads. ...

how to get all Editable field values using jquery on button click

I have some dropdownlist boxes in my field set if I change any field in the Fieldset I need to catch the value of changed dropdownlist? Can I do this? thanks ...

jQuery edit boxes and forms.

Hey there, I currently have a table that populates itself with domains and their relevant paths on a server, e.g. Domain Path Functions example.com /home/domain delete The domains are grabbed from a PHP array, but thats the general idea. Now, I want to be able to put an edit button next to my delete button, and when...

How can I display the results of a POST form in a prettyPhoto (or similar) light box?

I'd like to display a simple success or failure message in a lightbox on a website that I'm developing. The form submits to a PHP page that simply assembles some mail, sends it off, and then formats the appropriate message depending on the success or failure of the mail. I submit the form with a traditional <input type="submit"> button...

Is there a way to graph with jQuery's flot with a data set that doesn't contain x values?

I have large amounts of data formatted in JSON formats, I recently scripted the data to conform to flot's data set, except for one problem, the data has no x values. EG: { label: "testMetric1", data: [12,314,123,41] } I want to simply graph these values as y values. is there a way to tell flot to just assume the x series will be seque...

Set Headers with jQuery.ajax and JSONP?

I am trying to access google docs with jQuery. Here's what I have so far: var token = "my-auth-token"; $.ajax({ url: "http://docs.google.com/feeds/documents/private/full?max-results=1&amp;alt=json", dataType: 'jsonp', beforeSend: function(xhr) { xhr.setRequestHeader("Authorization", "GoogleLogin auth=" + token); }, succes...

jQuery popup help

I'm using this script as a popup on my website for a login. But what im having trouble with is that it makes me put the HTML code of the popup in my index or page whichever will display the popup. Is there a way to make it so that i can call the popup code externally like whatever is in the popup? This is the popup code im using! htt...

How to set a fixed width on buttons within a jQuery buttonset?

I have a button set, and would like to set the width of each button so they can be the same size (i.e. if I have 4 buttons of 25% each of the element) Basically the site has a table on the left, and within that table I have 4 options. The way it is right now is it's not using 100% of the left column, so it looks bad. I'm looking to make...

Is it Possible to Make Cross-Domain Requests in Javascript AND Set Custom Headers?

Since you can't apply custom headers on JSONP calls, how do I make cross domain requests AND apply custom headers using jQuery? I'm basically trying to access google docs with jQuery and need to pass an authentication token: var token = "my-auth-token"; $.ajax({ url: "http://docs.google.com/feeds/documents/private/full?max-results=1&...

Using rel external in jquery fitted plugin opens the link 2 times

Using jquery fitted* plugin, if I put a rel ="external" on the clickable area is successfully opened in new tab, but clicking on the link opens 2 times, how to fix this? for example: i have: <p> text <a rel="external" href="/link">text2</a> </p> text opens perfectly one time, but clicking in text2 the link opens two times the code i...