jquery

How to update parentlocation in XSLT?

Hi! I am using google search appliance for search. When I run a search term say "text1" it displays the result in the iframe. Then on the second time when i do a search say "text2" and click on one of the links from the result and return back using the back button, after visitng page. It show the search term "text1" instead of the se...

How to drag and drop multiple elements with jQuery Drag and Drop (with jQuery 1.4.x)

There is a plugin in the jQuery plugins repository, http://plugins.jquery.com/project/multidraggable, that does this for jQuery 1.3.x. When I use it in 1.4.x (and jQuery UI 1.8.x), I am able to select multiple elements, but when I drag, only one element is dragged. Can anyone help explain how I could get this working? Not sure if th...

Change HyperLink Url using js or JQuery?

Possible Duplicate: How To change the HREF for a Hyperlink using jQuery I have to change to Class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3 ms-topnavselected zz1_TopNavigationMenu_9" href ? <td onmouseover="Menu_HoverRoot(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" id="zz1_TopNavigationMe...

Why does the HTML in my JSON response get encoded?

I'm using this blog post as a guide, detailing how to use jQuery with jTemplates to stuff a JSON response into a template. My problem is, one of the returned fields (named Description) contains HTML, but the HTML brackets are getting encoded to \u003C and \u003e. Here's the HTML (in the Description field) the server returns: <a href="...

jquery submit and loading gif

hi, im using jquery to submit a php form. during the submission, it will validate for valid fields. so when user click the submit button, im expecting to show the loading gif while it process the form. when it is done, the loading gif fade off. my jquery submit is as follows: $(document).ready(function(){ $("#loadinggif").hide(); $(...

Removing any html/formatting/ect from text string as it is pasted, via Javascript/JQuery?

Not sure if this is possible across all modern browsers, but is there any way, using javascript/jquery to remove all html tags, css formatting, word doc format codes, ect. from a string of text as it is being pasted into an input area of a page (in my case an element set as "contenteditable), so it always goes in as just pure plaintext? ...

Reducing the need for JavaScript libraries

I'm writing several small things in JavaScript, notably a mousemove event, and a AJAX call. I don't believe that two things should necessitate loading the ~25KB that is jQuery. Add in the fact that I want as few external dependencies as possible and necessitating jQuery isn't something I want to do. Is there a primer / tutorials on rewr...

How to use Json string in javascript

Hi I have a function var url = "MyAvailability.aspx?mode=get"; $.get(url, function(data) { alert(data); }); that returns a Json string representation events: [{'id': 1,'start': new Date(year, month, day, 12),'end': new Date(year, month, day, 13, 30),'title': 'Lunch with Mike'},{'id': 2,'start'...

Include multiple functions in a PHP file and call them through jquery.post or jquery.get in a javascript file

I want to call various functions made in PHP from my javascript file. Normally using Jquery.post we call a PHP file and and pass various values as post. function new_user(auth_type, tr_id, user_name, email) { $.post("bookmark.php",{AuthType:auth_type, TR_Id:tr_id, UserName:user_name, UserEmail:email}); } If I want to c...

why is there a call to a function in a variable in a jquery plugin

Hello, I want to try to understand the use of these constructs because I don't. If I see this in a plugin function configuration(user_settings) { //Override the default settings with the user settings defaults = { time_in_seconds: 3600, time_format: 'ss', tick: function(timer, time_in_seconds, formatted_time) {}, buzzer: fu...

Are JQuery Events automatically unbound upon destruction of what they where bound to?

Hi All If I have the following code in two functions of an object: add: function() { // create trip. var trip = new Trip(); // add the trip using its id. this.trips[trip.id] = trip; }, remove: function(tripId) { // remove trip. delete this.trips[tripId]; } NOTE: The constructor for the Trip object binds a bu...

jQuery filtering selector to remove nested elements matching pattern.

Given this sample markup (assuming a random number of elements between .outer and .inner: <div class="outer"> <div> <div> <div class="inner"></div> </div> </div> </div> I can set up jQuery to select the outer and inner divs as such: $outer = $('.outer'); $inner = $outer.find('.inner') Works fine....

I need masked textbox in asp.net

only numbers must be in that textbox that entries have to be in 100 between 500 TextBox Needed to include 3 Decimal Places i dont want any mistakes while values inserting to database. Do i need to use jQuery or ASP.NET Validation Controls ? if jQuery is useful one then which plugin will i use else for asp.net RegEx Validator which V...

smoother jquery transitions

Please see: http://jasondaydesign.com/masonry_demo/ and click on the movemaine.com image I would like my transitions with the show & hide, plus the masonry rearrange to be smoother overall. I've played with the speeds and i'm not getting the results I want. Additionally, I would like a pointer cursor with the show hide, but I can't see...

jQuery UI Datepicker minDate changes adjust the calendar; how can I freeze it?

I have a five-month Datepicker inline calendar. startDate is a variable I wrote which is set by a user click event. I am adjusting the minDate and maxDate options after init by doing this: $('#datepicker').datepicker("option",{"minDate":startDate,"maxDate":endDate}).datepicker("refresh"); However, when the calendar is refreshed, it d...

Jquery Droppable Demo Help

I am testing out the Jquery droppable photo manager demo: http://jqueryui.com/demos/droppable/#photo-manager Currently when the photo is deleted it is moved to the trash bin. How can I have it copy the image and move it to the trash bin so that it appears in both places?? This is the code: <script type="text/javascript"> $(fu...

Jquery: Show snap-to gridlines using droppable and draggable?

I am trying to show a $f00x$f00 grid (20x20 or 30x30 etc) (with gridlines) that an image can be dropped onto. I'm not sure how to get the grid to display does anyone have any ideas? ...

InnerHTML/outerHTML in IE doesn't reflect checkbox state except in quirks mode

I am currently battling an IE JavaScript/DOM bug (what fun) and it has truly stumped me. The code in question copies some checkboxes into a form and needs to maintain their checked state. Problem is, IE (specifically IE8, though I'm guessing others as well) doesn't want to do that. I've narrowed down the bug itself to a very small tes...

Why does $.each say this JSON object is undefined?

Here is my Javascript: $.post('foo.php', { request: Request }, function(data) { $.each(data.chats, function(i, chat) { ... }); }); And here is the JSON that, verified by Firebug and everything else, this code is receiving: { "chats": [ { "chat_id": "22", "user_status": "Listening", ...

Is there a 'ready' event fired when a jQuery element is created on the fly?

I'm trying to implement something like a photo carousel in jQuery. This carousel could be filled with images using an array of image sources (I make an ajax request that returns a json with this data) and, once is filled, you can call a couple of methods, previous() and next() to move the carousel backward and forward respectively. The ...