jquery

How to feed this XML stream to Google maps?

I have a url that returns XML coordinates in the below format. I want to put a Google map on my page and feed it these push pin coordinates. Is there a nice and quick way to do this via Javascript or jQuery? <messageList> <totalCount>1</totalCount> − <message> <esn>0-7396996</esn> <esnName>JOHN</esnName> <messageType>TEST</messageType> ...

Mapping the event position to the text position in non text-fields

Is there a way to map an event such as a click-event on this element <div>Just normal text</div> to the position in the contained text ( "You just clicked the 6th character", when hitting the 'n' )? ...

Using jquery to change checkbox status

Hi everyone! I have a list of items that have checkboxes associated with them, and the items are beneath a list header, which also has a checkbox(for db purposes only) which is actually hidden from view. I need to make it so that if any of the checkboxes beneath the header is checked, then the header checkbox is checked as well. BUT I ...

jQuery UI Slider Problem

I have been using jQuery sliders for about a week now without issues in my project, but I just hit an issue. I am adding 3 sliders to my page All 3 are added exact same way (like this): $('#slider_id').slider({value:100,'slide':function(e, ui){// some code}}); 2 work properly One does not work (it gives me a fiebug error 'f is undefi...

How do I convert this XML to KML?

I am a little new to this, but I need to convert the below XML to KML format so I can feed it into Google maps. Can anyone help with this? <messageList> <totalCount>1</totalCount> − <message> <esn>0-7396996</esn> <esnName>JOHN</esnName> <messageType>TEST</messageType> <messageDetail> ALL IS WELL AT CURRENT LOCATION.</messageDetail> <tim...

jQuery: using Append() with anchor links in WebKit(Chrome/Safari)

Been trying to add an image before the closing of the anchor tag: <body> <a href="http://www.test.com/"&gt;http://www.test.com/&lt;/a&gt; </body> If I use: $("a").append("<img src='testimage.png' /"); No image will appear in WebKit (Chrome, Safari, etc). Firefox and IE works fine. What am I doing wrong? Thanks in advance ...

how to do the each funtion for all to check checkboxes

I am using this code to check the checkbox is chekced or not.. $('#nextpage').click(function() { var result = $('#Details input[type=checkbox]').attr('checked'); if (result == true) { $("#tabs").tabs('enable', 3).tabs('select', 3); } else { $().ShowDialog('please select atleast...

Selecting specific range of columns with jquery

I'm looking to select columns 2-4 on the 2nd row in a table. Does jquery have any sort of "and" function in their selectors? Or would I have to do something like this? $('#id tr:eq(1)').find('td:lt(5)').find('td:gt(1)') ...

Jquery slideViewer nav above gallery

Hi there, I'm trying to get slideViewer 1.2.js to put the clicker navigation above the actual gallery container, instead of after it. Simply changing line 40 from .after to .before breaks it (can't click on image to trigger the next slide anymore..) I don't fully understand what happens from line 41-52, I suppose it finds each list ele...

Jquery UI dialog initiation? Is there a way to bind it?

I am trying to bind the dialog initiation (which happens in document ready) to a live or delegate for a div. Something like this for click event: $("#divSelectedContacts").delegate("span", "hover", function () { $(this).toggleClass("strikeOut"); }); for this: $("#divContacts").dialog('destroy').dialog({ ...

jQuery - get form elements by container id

Which is the easiest way to get all form elements which are contained by a wrapper element. <form name="myForm"> <input name="elementA" /> <div id="wrapper"> <input name="elementB" /> <textarea name="elementC" /> </div> </form> In the above HTML I would elementB and elementC but not elementA. I do not want to list all fo...

Why does my jQuery animation require an extra click in IE8 to finish?

I am pretty new to jQuery in general, however the following code works perfectly in Chrome and Firefox, but not in IE8. In IE8, I have to click anywhere on the page to start the animation after selecting a radio button. Here is the code: $("input[name=method]").change(function() { if($("input:radio[name=method]:checked").val() == 'i...

jQuery::Scrollable Div does not work

I am trying to create a scrollable DIV using the following: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <script type="text/javascript" src...

How do I get the clicked element with inline HTML onclick and jQuery?

Hi, I'm creating a tags with this code: $('#td' + id).append('<p><a href="#" onclick="excluirArquivo(\'' + response + '\'); return false;"><img src="/erp/proposta/media/images/delete.png" alt="Excluir arquivo" /></a> ' + file + '</p>'); excluirArquivo function function excluirArquivo(arquivo) { $.ajax({ type: 'POST', ...

Possible to get jquery .serializeArray() values out by key name?

Hi I am using the jquery .serializeArray() function and I send it to the server and that works all good.However I need to update a couple things on the client side that are serialized. So instead of doing another selector on the textbox I want to just grab it out of the serialized array. I am not sure how to do this Product=Test&Qty=...

MicrosoftAjax date.format function not working in Chrome

There is a bug in MicrosoftAjax.js String.format function when using Chrome 5.0.375. The function randomly returns 'undefined' for some dates. I went around that by using jquery date formatter that comes with datepicker. ...

Jquery, div with two classes hide one show the other - conflict?????

Sorry if this was answered in a previous thread, i couldn't find one. I have 4 sections: Section1, Section2, Section3, Section4 There are classes for each section, so I am hiding and showing based on the section. The problem is some classes need to be showin in Section1 and Section2. <div class="section1 section2"> blah blah </div> ...

jquery ui selectable get id?

how to get 'id' of item in selectable list, if the list is created dynamically? <ul id="selectable"> <li id='1'>..</li> . . <li... </ul> I tried var num = $('#selecable :selected').attr( "option" , 'id' ); but get only [object Object]... what is the right way? ...

Ajax post failing in asp

hey guys, this might be really stupid, but hopefully someone can help. I'm trying to post to an external script using ajax so i can mail the data, but for some reason my data is not making it to the script. $(document).ready(function() { $("#submitContactForm").click(function () { $('#loading').append('<img src="http://www.xxxxxxxx....

proper way to hide dynamic elements with jQuery

I have a div element which my code will fill with a dynamic amount of links. Using jquery, I want to hide all the links except the first one. This is what I came up with and it works, I was just wondering if this is the best way to do it: $("#panelContainer").each(function(n) { $(this).children().hide(); $("#panelC...