jquery

can't load/read yahoo geocode as xml and read it in jquery

Hi, I tried saving the result as an xml, when I read from there it works, but if I read it from yahoo's api, doesn't load anything. You can check it here here's my script $(document).ready(function(){ $.ajax({ type: "GET", url: "http://local.yahooapis.com/MapsService/V1/geocode?appid=YD-9G7bey8_JXxQP6rxl.fBFGgCdNjoDMACQA--&zip=100...

HTMLtags in input field

I have a question about inserting values into an input field from my MYSQL DB. First I have a form to save data from an inputfield to the database. An extra script filters diacrits Á=>Á to html code. So Állo will be saved like Állo When I insert the data from the DB to a 'div' it shows Állo. When I insert the data into a ...

jQuery - improve/reduce my ipod-style dropdown code! - challenge?

Hi all guys! by keeping inspiration from this http://www.filamentgroup.com/examples/menus/ipod.php i have maked my own from scratch cause i have needed this smarty dropdown solution for a client, but more lightweight & efficient! so with a good cup of coffe in my hand i have maked this DEMO: http://jsbin.com/ufuga SOURCE: http://js...

problem in wordpress like delete rows in jquery

hey guys im trying to impelement a technique to delete stories with jquery animation exactly like wordpress this is my script part : $(function(){ $('#jqdelete').click(function() { $(this).parents('tr.box').animate( { backgroundColor: '#cb5555' }, 500).animate( { height: 0, paddingTop: 0, paddingBottom: 0 }, 500, function() { ...

Iterate through directory filenames using JavaScript on ASP.NET C#

Hello all, I'm trying to read all filenames from a specified (server- not client) folder, and insert all the filenames into a javascript Array. It should behave like the Directory.GetFiles method in ASP.NET C#. I created a new array, and I just need the loop method (Javascript or jQuery) to iterate in the specific folder, and insert all ...

Slide Effect happening too many times

Hello all, I call this functions on onmouseover and onmouseout for several divs. //Takes effect on divs with id, 62,63,64,65... function slide_it(id){ $('#options_'+id).slideToggle('slow'); } The problem is that if I move my mouse over and then mouse out, then again, mouse over and then mouse out. If I do this several times, t...

JQuery selector in variable

I wanted to ask about using selector from a variable first I have: function check() { $('.info input, .info select').each(function(n, element){ if ($(element).val()=='') alert('empty'); }); } and called it in $('input')change(check); and they worked fine. But now I want to pass some value to the function to make it ...

Loading a page using jQuery.

I am using jQuery. My main page is index.php. on load of this page. How do i load another page internally. say a small block in the page ? ...

Change css class depending on label's text

I have asp:Table with number of asp:Label inside asp:FormView, it represents short stats info. I need to set Label.CssClass to "red" if it's text isn't "0". Currently I do this on FormView.DataBound event. But think that it's better to use JavaScript and probably jQuery. How can I do that? Sorry for dummy question - I'm new to jQuery....

jQuery how to remove :selected attribute and add new one properly

Thanks for tip. :) ...

Check for comma in textbox using jQuery

How to check for a comma in a text box. I.e. if comma is present the code should alert, <input type="text" id="name"/> Thanks.. ...

jQuery return parameters

This could be a novice question, but here goes... Why do we use data*.d* when we have to read data from a jquery to web-service call? What is the significance of the .d? Is there any supporting documentation for the same? Updated : comments in bold Thanks, Sashidhar Kokku ...

Event to listen to attribute changes

I dont think this is possible but maybe someone knows a way to achieve this. I want to attach an event to an html element to listen to attribute change. So say for instance that I want something to happen when a visibility of a div changes. The reason is that I have no control over the javascript that is switching the visibility, hence t...

Form:has selector does not work on IE

Hey, I am trying to use "form:has" selector which works on Chrome but not on IE. http://jsbin.com/uvumu/2 Does anyone have any idea why it is not working on IE? (when pushing the Post button there should be an alert box) Edited: Here is the code: JS: $(document).ready(function() { $(".comment-link").live('click',function() ...

Updating/Inserting multiple rows using jQuery and OData (WCF Data Services)

I have three tables, Template, Fields and TemplateFields. TemplateFields holds the selected fields for each template. I need to update TemplateFields when the user is finished selecting the fields. The only way I can see to do this is by deleting all the TemplateFields for that Template and then add them one by one in separate requests...

How do I show a hidden DIV with Jquery when a user clicks a radio box?

I am having difficulty showing a hidden div when a user selects a radio box. This is my code: The Jquery <script> $(document).ready(function () { $(".paypalmethod").click(function() { $(".paypalinfo").show('slow'); }); </script> The html <input name="method" type="radio" value="paypal" class="paypalmethod"/><img src="/images/...

Why the vertical scroll bar moves automatically ?

I don't understand why the vertical scroll bar moves automatically to the most top position when "Line 9" clicked, for example. Further clicks does not move the scroll bar. Could anyone explain why, and how to fix this ? I work with Firefox 3.6.3. HTML: <html> <head> <link rel="stylesheet" href="test.css" type="text/cs...

jQueryUI autocomplete - when no results are returned

I'm wondering how one can catch and add a custom handler when empty results are returned from the server when using jQueryUI autocomplete. There seem to be a few questions on this point related to the various jQuery plugins (e.g. jQuery autocomplete display “No data” error message when results empty), but I am wondering if there's a bet...

jQuery Datalink - Data linking

I was trying out the jQuery Data linking proposal from Microsoft and noticed something strange. My objects get this extra property and I was wondering what the reason for that is. I first thought it was a mistake I made but I noticed their demo page does the same thing This is the json result of my objects: [{ "propertyName":...

Adding images to jQuery Slider via a Form

I've created a jQuery slider on my site using the Nivo Slider whihc is available at http://nivo.dev7studios.com/ . I'd like to have the ability to add in the images + links via a form so that I may create a featured content area. Any help is appreciated. ...