jquery

ASP.net MVC, jquery Block UI, Ajax

Hi, I m very much new in the asp.net MVC architecture. Well i m trying to load a page with Login link on the top right. On click i want jquery Block UI to display my username and password textbox and button to login and when user sign in , i wan top div to refresh without whole page postback instead of saying "login | Register" it should...

fullcalendar not showing events

My setup is like this: Based on this example http://arshaw.com/js/fullcalendar/examples/json.html I tried to get my own fullcalendar application working. I replaced 'events: "json-events.php",' with 'events: "http://localhost:8080/CalendarServletTest/HelloWorldServlet",' and changed the dataType of fullcalendar to 'jsonp'. (The Servlet ...

jQuery resize event for div children

$("div.content-left > *, div.content-main > *" ).live('resize',function(){alert("Size changed")}); does not work, because the resize event only applies to window resizes. But in my case the divs change size late, because the content is loaded late by an ajax request - or by clicking a panel menu. I definatley need to avoid to register...

jQuery: How can select clicked element in table without define unique id for each element

Hello, I have table (that generated by server) below. I want to get input element value class="itemQuantity" of clicked row. I write jQuery code but he missing "this" of clicked element. <script type="text/javascript"> $(document).ready(function() { $('.updateButton').click(function() { alert($('.itemQuantity').val()); ...

option & jQuery .click() won't work together

Hello, this works great in FF but not in IE, Chrome or Safari. $('#countryDropDown option').click(function() { var countryID = $(this).val(); dostuff(); }); // countryDropDown = id of select So, as you can see I want to attach a click event to each option. I alos tried var allOpts = $('#countryDropDown option'), l = allOp...

How to remove all tags after certain tag?

Hello, I need to remove tags going after #first and only in #container. How can I do it with jQuery? <div id="container"> <div id="first"></div> <div id="remove_me_1"></div> <div id="remove_me_2"></div> <div id="remove_me_3"></div> <a href="" id="remove_me_too">Remove me too</a> </div> Thank you ...

jQuery slideDown + CSS Floats

I'm using a HTML Table with several rows. Every second row - containing details about the preceding row - is hidden using CSS. When clicking the first row, the second row gets showed using jQuery show(). This is quite nice, but I would prefer the slideDown-Effect. The problem is, inside the details row, there are two floating DIVs, one...

Scope of forms using jQuery

I am building several forms dynamically on a page (Kind of like news feeds on facebook where each feed has a text box and submit button). So for each feed I am building (using Python) the following form: <form> <input type="text"> <input type="hidden" id="feednum" value=FEED_NUM> <input type="button" class="btnSubmit" value="submit"> <...

A JQUERY standard way of storing the original value of a form field?

Is there a standard way in JQUERY to (at document ready time) store the original values of the form fields on the page in order to check (later) whether the fields have truly changed or not? Normally I will do something like this: var NameField = $("INPUT[name='NameField']"); //Record the original value. NameField.OriginalVal = NameFie...

Prepopulate jQuery Data in html

jQuery has the very cool feature/method ".data", i wonder if there is a way to have the data in the code so that jQuery can use it when the rendering of html is done. Suppose i have a repeater and looping out children, and i want to add some data to those children without using classes etc. Will i have to add javascript to that repeater ...

how to get a list of checked ids from jstree with checkbox plugin?

how to get a list of checked ids from jstree with checkbox plugin? ...

Remove an event and setting it again

Hello. I have a mouseover and a mouseout event on a menu, that shows/hides a drop down menu. This drop down menu has some other menu items, and I wish to (when clicked) to remove the mouse out event on the target that showed the menu. But once another target is clicked I wish to enable this event again. I hope I explained it well. Thi...

Poll database using jQuery/Ajax

Hi guys, I am trying to use jQuery (latest version) & ajax to poll a mysql db every x seconds, post.php does a simple search query on the table and limits to 1 row. (eg SELECT id FROM TABLE LIMIT 1) I've got some other jQuery UI (using v1.8) code that displays some modal/dialog boxes on the screen, simply put if post.php returns someth...

asp.net mvc jquery hidden field

the thing is that I have a form with a textbox and a button and a hidden field, now what i want to do is to write something in the textbox ,pass it to the hidden field and then access that thing written in the hidden field in the controller . how can i do that? ...

Add number (in Category Description) with child number

Hello I tried to get some help ealier, but I think it didn't make any sense, what I wronte. Sorry for my realtivly bad English. Wordpress: I have several categories, with a number in each description. Every category has some children. Example 4. I need some type script, that takes the category description (the number specified) and ad...

how to get the individual parameters from the list of dynamic parameters in a webmethod,sent using jquery ajax method?

hi, I am using jquery ajax method on my aspx page,which will invoke the webmethod in the code behind.Currently the webmethod takes a couple of parameters like firstname,lastname,address etc which I am passing from jquery ajax method using data:JSON.stringify({fname:firstname,lname:lastname,city:city}) now my requirement has been chan...

Positioning decorated series of div tags on screen using offset, DOM JQUERY RELATED

Hi, I am using JQuery to position a series of div tags which basically use a class inside of the tag which decorates the divs as bars. So the div is a green box based on its css specifications to the glass. I have a list of STARTING postions, a list of left coordiantes- for the starting points I wish to position my DIV say 556, 560, ...

Any jquery autocomplete plugin which consumes this json format?

Any jquery autocomplete plugin which consumes this json format? {"Table" : [{"ClientName" : "Pandiya"}, {"ClientName" : "Bala"}]} or how to change the above to source: ["Pandiya", "Bala"] ...

jquery detect the url to which something will get redirected

hi there, I have a window.onbeforeunload function, and I want to detect where I will get redirected to... any ideas? Markus ...

How to access the elements in <script> inside the body tag

Hi All, I am using <script> inside the body tag. <script type="text/javascript" language="javascript"> $('#audioVolume').text($('#audioVolume').text(Math.round((document.mediaPlayer.Volume + 2000) / 10) + "%")); </script> Error: Microsoft JScript runtime error: 'undefined' is null or not an object. Need: I want to access the html e...