jquery

jQuery UI sortable, each sortable div contains an iFrame gets refreshed in FF3 but not in IE7

I'm using the jQuery UI Sortable on DIV which contains DIV tags. Inside of each of the sortable DIV's is an iFrame with a src= to a different site. In IE7, sorting works as expected. If you've navigated within the iFrame, the iFrame retains the current state. However, in FF3, when sorting stops and the iFrame is reloaded with the ori...

Problem passing parameter to WebMethod with jQuery Ajax

Hello - I have a simple web method and ajax call and continue to recieve an error that saying that it can't convert a string to an IDictionary object??? Here is the ajax call: var params = '{"ID":"' + rowid + '"}'; $.ajax({ url: 'EDI.asmx/GetPartnerDetails', type: "POST", ...

How to detect right mouse click while left mouse button is pressed in IE?

I have the following: <html> <body oncontextmenu="return false;"> <script src="jquery-1.3.2.min.js"></script> <script> $(document).ready(function() { $(document).mousedown(function(e) { if (e.button == 2) //right click { document.body.style.backgroundColor = "green"; } else //left clic...

Update TreeView node from a pop up window while mimimizing server-client trips

I posted several times but no one would give me an answer that I can understand in plain English. I am new to JSON/JQuery/Ajax/all other cool libs or tools you may advise me on, so keep that in mind. I am using c# with asp.net web forms (i also have ajax toolkit, but haven't used it yet). Here is my scenario: I need to implement a func...

How to highlight only the text on hover, not whitespace? (javascript)

I am using jquery to highlight on hover, but it highlights entire div instead of just text. I tried using an "a tag" but do not want a reference link obviously. im sure this is simple, but im wasting too much time on trial and error. tia ...

Read multiple variables from data object returned with ajax

I am making a jquery ajax call to an mvc controller. I want to return 2 or more variables from the controller. How do I package data in controller for this ? how do I extract with jquery? ...

How to get textbox value from client side and create query string from it?

I'm using jquery for modal dialogs. I want to open model dialog from one page and to send some additional query string to modal dialog page. something like this: <asp:HyperLink ID="hypClientSearch" runat="server" NavigateUrl="~/SomePage.aspx?KeepThis=true&additionalQS='<%= txtBox.Text %>'&TB_iframe=true&height=650&width=800&modal=true"...

jQuery fade all other images

Hi, I made this code with jQuery to fade images (but not the one a move the mouse over) and all images fade at the same time! $(".playThumb").fadeTo("normal", 1); $(".playThumb").hover(function() { $(".playThumb").each(function() { if ( $(this) != $(this) ) { $(this).fadeTo("fast", 0.3); } }); }, function() { $(".playThumb")....

What does formatResult and formatItem options do in JQuery Autocomplete?

Am a bit confused here, what does the formatResult and formatItem do in the JQuery Autocomplete plugin? I have a function that is returning a comma separated string (from Django), but my autocomplete function is unable to split the string into individual entries/rows, how can i achieve this using autocomplete functions? e.g the return...

Overwriten "this" variable problem or how to call a member function?

I have this class where I am using a combination of jQuery and prototype: var MyClass = Class.create({ initElements: function(sumEl) { this.sumEl = sumEl; sumEl.keyup(this.updateSumHandler); }, updateSumHandler: function(event) { // Throws error here: "this.updateSum is not a function" this.updateSum(); }, updateSum: funct...

Hyperlink Rewriting with Javascript/Jquery

Here's what I"m trying to do. I have a hyperlink like this on my page: <a href="http://www.wikipedia.com/wiki/Whatever_Page_Here"&gt;Whatever Page Here</a> When a user clicks the link I want to grab that click. If it's a link I don't want them to click (like something that doesn't match the format http://www.wikipedia.com/wiki/xxxxx) ...

Anybody who have used Django and JQuery Autocomplete?

Is there anybody out there who have used Django and JQuery Autocomplete? Am stuck on this and i will highly appreciate to see how someone else has done this! especially without using the AutocompleteWidget! Gath ...

Async requests to model-bound action methods with JQuery

I have an ASP.NET MVC action method which uses model binding to accept a strongly typed model object as its input, i.e: public PartialViewResult SaveUser([Bind(Prefix = "User")]User NewUser) { } How do I specify the argument when requesting this method asynchronously with JQuery? I have previously used the load() or post() methods to ...

How can I run a jQuery function using AS3

I am trying to run a jQuery function on my HTML page from AS3. This is my jQuery function: function loadImage(imageNumber) { imageURL = '<img src="images/image' + imageNumber + '.jpg">'; $("#imageBox").html(imageURL); } Here are the settings of my flash file in the HTML page: <param name="allowScriptAccess" value="always...

How to get URL Parameters from asp.net / jQuery.ajax POST?

Hi friends, I am trying to figure out how to get the parameters that are passed in the URL from a jquery plugin that I am using. Basically, I'm sending a POST ajax request to my web service and trying to use the URL parameters. But, they are always returned as nothing. I"m assuming this has to do with the fact that I'm in a POST. Can...

Javascript variable evaluation in a map.

I'm attempting to pass some data via the jQuery's $.post() and I'm running into some problems with, what I can only classify as, variable evaluation in the data map. Lets get to it: var field = 'fooVar'; var value = 'barVar'; $.post('/path/to/url', { field:value, 'fooString':'barString' }); The end result is a POST with the following ...

storing hidden ids and then submitting them with ajax, best practices?

I have a list of messages with element ids as "message"+id ( message1, message2 etc) when user makes ajax request from any particular message i want to access only the id. should i strip the id from the message id in jquery before submitting or do it on the server side? Or is there a simpler way to represent the id on the webpage for eac...

Bookmarklet to perform multiple tasks

Hi everyone. I've been tinkering around this application all day long and have had a few difficulties. So basically the bookmarklet needs to allow the user to use a lot of functions from multiple JavaScript files, although all of the functions that the user will use are called from one file. Basically it includes all of the necessary fil...

How to change image and alt attribute on click?

I'm looking to change several images onclick using JQuery instead of normal JavaScript and also change the image alt attribute at the same time for accessibility. It should be something easy as I'm not looking to do some special effect on change but I still haven't find anything about it. Here is the way I was doing with JS (without ch...

jquery livequery problem

hi.. i dynamically load html elements.. and used livequery() plugin to handle click events.. but only the first element could be clicked. here's my initial DOM: <div id="styleList"> <h4 class="subPaneTitle blurred">List of themes</h4> <ul> <li class="listHeader"><span class="themeID">Theme ID</s...