jquery

JQeury , Assign td text to a Vairable and post it

Hi I am relatively new to Javascript and have a problem i hope your guys can help What i am trying to do is this $("tr:not(:first-child)").each(function(){ var sitename = $("this" + "td:nth-child(1)").text(); var type= $("this" + "td:nth-child(2)").text(); ...

Dynamically add input with jsDatePick

If I insert new INPUT with new ID, how do I enable that new INPUT to have the calendar popup with jsDatePick? http://javascriptcalendar.org/javascript-date-picker.php Anyone tried? ...

Fixed positioned search box with Autocomplete suggestions

Hello all In my webapp I have a search box in a fixed toolbar on the top of webpage. I implemented the fixed position of toolbar like this.... #toolbar { position: fixed !important; position: absolute; height: 25px; width: 100%; top: 0px; left: 0px; margin: 0; z-index: 10...

problem injecting UTF8 encoded JSONP into a Win 1255 encoded webpage

Hi all, I am developing a third-party service embedded in websites as a JS snippet, that amongst other things need to fetch some jsonp data from my PHP server, and display the text contained in the json object on the hosting embedding website. I am using jQuery, so I issue the following .getJSON request: $.getJSON("http://localhost/ph...

jquery django button

I would like to create a button that records date and time in the browser, when the user clicks it and then send that information to a django db. 1.db part: Would the db field I save it to best be a DateTimeField() or a CharField()? I want the exact date and time of that button clicked? jQuery part: I heard (here) that jQuery can acco...

jquey ajax post method to post the json data to particular url and retrieve in particular webservice

I have ajax request to post data to asmx webservice, how will i post multiple data values as json data to that url $.ajax( { type:"POST", url:"AjaxService.asmx/CheckUserNameAvailability", data:"{\"userName\":\"" + userName + "\"}", dataType:"json", contentType:"applic...

JQuery, Click and Edit TD with Date to a New Date

Hi, I just wanted to know if this is possible. i Have a Table like this Site Name Type Address City Lat Long Fault Time ISB056 Spur aaaa Isl 73.0 33.64 13:14 PM What i want is to Click the Last TD (with the TH Fault Time) and have a datepicker ask a new date and have it inserted into the TD instead of the prev...

jquery Setting option selected with known value

I have the next select: <select name="priority" id="priority" class="update_priority"> <option value="root" label="Without parent">Without parent</option> <option value="72" label="Rank3">Rank3</option> <option value="71" label="Rank1">Rank1</option> <option value="67" label="Rank2">Rank2</option> <option value="64" ...

error with jquery. validate.js

Hi, I use this great jquery script but I recieve an error with debug mode "----This is a debug mode, you got a problem with your form, it will try to help you, refresh when you think you nailed down the problem you are not going into the success fonction and jsonValidateReturn return nothing-----" or display this inside firefox errors c...

Need clean jQuery to change parent's class when children are clicked

I needed some method of adding/removing classes of a parent element when it's children are clicked to reflect which child is currently selected. In this case a UL parent and LI children in a tab scheme. I needed a way to mark the current tab on the UL so I could style a background sprite on the UL; since styling my LI's backgrounds would...

Using jQuery, JSON and AJAX to populate a drop down

Hi guys, like the title says, I am trying to create a drop down menu using jQuery, JSON and AJAX, although I am familiar with the theory I have yet to put it into practice, any advice, demo code snippets or tutorials would be appreciated, since I would like to get off to the best possible start! Thanx in advance! ...

how can i get the calendar selected values?

How can i get calendar selected values in php file? i am using calendar from this link http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerMultiple.html ...

placing the json data to sql database from webservice

This is the particular webservice code where i retrieve the username ,how i can i write c# code to place json data to sql database in webservice and display the acknowledgement in html page public class AjaxService : System.Web.Services.WebService { [WebMethod] public bool CheckUserNameAvailability(string userName) { ...

How to hide an element inside HTML iframe?

Hello, I have a page that have toolbar at top and an iframe below the toolbar. It is Stumbleupon style. Some web pages that are loading into iframe has flash objects and those open on my modal div. How can I hide flash objects in iframe? You may see it in action here: http://www.yemeklog.com/1-pakistana-yardim-zamani.html Please click o...

Why $(this).focus(); will not work on the same element when focusout in jquery

Initially i was trying to validate a user input when i stumbled with a problem is that i cant fix the cursor of the focus on an element when focusing out. this is the code $("#ChapterCode").keydown(function(e){ if(e.keyCode==9 || e.keyCode==13){ if($(this).val()!=""){ ChapterCode(); get_fees(); ...

JavaScript and draggable images - can I optimise it?

Hi, I'm working on a web application where we have a very large image (4000 * 2000 pixels) that can be dragged about the place, zoomed in/out. When the image isn't zoomed in or out, it can be dragged about very fast and it looks great. As soon as i change the size of the image by some factor, the dragging becomes dreadfully slow. I ...

jQuery: live vs adding events manually

I have a table where I add, remove and resort rows from time to time. They contain two dynamic "things": The row itself need a mouseenter and mouseleave event for a hover effect, and a couple of buttons need a click event attached. What are some arguments for choosing between the jquery.live method and attaching the events when creating...

total up json data?

[UPDATE] Thanks guys,final code: var EUR_share_cost = 0; var USD_share_cost = 0; var GBP_share_cost = 0; var EUR_total_cost = 0; var USD_total_cost = 0; var GBP_total_cost = 0; $.ajax({ url: '/producer/json/index/period/month/empties/'+empties+'/fields/'+fields+'/star...

How to cycle through each li or div front and backwards using jquery

I have a ul with around five <li> items. E.g. <ul> <li>Step 1 : Take food</li> <li>Step 2 : Go Around</li> <li>Step 3 : Deliver</li> </ul> Also I have links like <a href="# id="prev"> Previous</a> and <a href="#" id="next"> Next</a> I have to show the first li at first. Then when the next link is clicked, it should now ...

Jquery+Updatepanel+UserControl document.ready doesnot get fired.

I have put some Jquery code in a user control and it is placed in a page with updatepanel. On a button click on a page User Control Grid is displayed. document.ready event doesn't get fired in user control after partial post back. How do I handle it? I am following this link but didn't get solution to my problem. ...