jquery

Best tool for message view?

I'm trying to set up a messages view with asp.net mvc that will display inbox, etc. What would be a nice tool to utilize for this implementation? ...

JavaScript moving element in the DOM

Let's say I have three <div> elements on a page. How can I swap positions of the first and third <div>? jQuery is fine. ...

jquery fancybox - prevent close on click outside of fancybox

I'm using the Fancybox plugin for my modal windows. It seems like no matter what options I use I can't prevent the fancybox modal window from closing when the user clicks outside of the fancybox modal window (grayed out area). Is there a way to force the user to click the X or a button that I trigger the close event? This seems like i...

jquery iterator function parameters

How can I pass a parameter to a jquery iterator function (or whatever they're called), like: var states = new Array(); states.push(true); $(children).each(function(states) { if(this.depth>states.length) { states.push(this.collapsed); } else if (this.depth<states.length) { ...

jQuery Ajax success not being invoked

Hi, Here is my code, $.ajax({ type: "POST", url: action, data: params, success: function() { alert("Success"); }, error: function() { alert("error occurred"); } }); I have a form inside a modal dialog window, on submission i would like to stay inside the dialog rather than return to origi...

jqGrid: postData not being posted to controller action during in-line edit

I have a jqGrid on an ASP.Net MVC view. I want to use to pass the value of a hidden text control on the page as an additional parameter to a jqGrid method, when I'm making an in-line edit to a row. I'm using the postData attribute on jqGrid to do this: Javascript: $('#tblLines').jqGrid({ ... postData: {MyId : $('#MyId').val(...

jQuery-like interface for PHP?

I was curious as to whether or not there exists a jQuery-style interface/library for PHP for handling HTML/XML files -- specifically using jQuery style selectors. I'd like to do things like this (all hypothetical): foreach (j("div > p > a") as anchor) { // ... } print j("#some_id")->html(); print j("a")->eq(0)->attr("name"); ...

How will JQuery impact Web development?

JQuery is a hot topic these days. Today, on Stack Overflow, there are currently 8,470 questions with the JQuery tag making it the 10th most popular topic - right up there with SQL. In selecting a new skill to learn and master, I imagine most developers want something useful that lasts. No developer wants to learn something that is all...

jQuery or PHP Script to Grab Page Information

Hello, I'm looking for some direction on a script that I'd like to build. Essentially, I am looking to build something that functions similar to that of Facebook, where users can provide a URL, and in turn, the script grabs the 'page information' from that URL. Furthermore, if a user were to provide a YouTube URL, it would be able to ...

Rollovers on non-decendent objects in jQuery

Hello All, I'm new to the site and need some help! I need buttons that when rolled over, they reveal a table (I got that done), as well as change their own image to a tab (which they do), but keep that rollover tab image until the mouse leaves either the button or its respective table (this is the problem). Basically, it's pretty easy...

Weird results from databinding expression

I'm trying to generate this html <a href="#" class="button" onclick=" $('#someControl').toggle('blind', { easing: 'easeInOutSine'}); return false;"> With my databinding expression I have <a href="#" class="button" onclick='<%# string.Format( "$('#{0}').{1}", Eval("Key"), ".toggle('blind', { easing: 'easeInOutSine...

Prevent incorrect formatting before jCarousel is initialized

We just started using jCarousel with our application and we're experiencing some strange UI behavior. For a split second before the page is rendered, every LI that makes up the content is shown expanded on the page. Once the jQuery("#carousel-name").jcarousel(); is executed, though, the page springs back to what it's supposed to look lik...

jquery ui is not scaling text properly!

I'm trying use jquery ui to scale a div that I'm dragging around to make it easier to see what's behind it, but any text inside it is scaling strangely. The text itself becomes smaller, but it seems to have a bunch of padding around it and is floating now. The text extends past the bottom of the div even though it should be contained pro...

asp.net 2.0: update formview with jquery

Hi, I'm struggling with an issue I just can find a solution for. First of all, I can't use asp.net AJAX or anything else thant standard asp.net 2.0 as the server admin won't install anything else. So here is, what I try to do. (For the curious, skip to the bold question below) My page consists of several parts, each of which gets loa...

jQuery/Javascript pulling info from an object.

Hi All, I am trying to use the following code to create a list of client names from some json returned from an Ajax call. The data is as follows: {"status":1,"data":{"clients":[{"ClientID":"1","AccountID":"1","ClientName":"Access Loan Mitigation","Active":"1"},{"ClientID":"2","AccountID":"1","ClientName":"Big Time Business","Active":"...

Can I access contents of an iframe from a subdomain if I use www. on the main domain?

I'm trying to access and edit the contents of an iframe. The iframe points to a page on a subdomain on my own domain. This is the javascript code I'm using, although it doesn't really matter. $('iframe').load(function(){ $('div.code textarea.html').val($(this).contents()[0].html()); }); When I run it it says I don't have permission ...

Clickable autocomplete, like google

Hello I'm looking for an autocomplete that have no "submit" button, but that when the user click on the autocomplete keyword he would be redirected to another URL, that i will choose i'm using http://dyve.net/jquery/?autocomplete and i would like to implement in this script, not use any other (because if i type ODE in this one, he show...

Submitting a jQuery ajax form with two submit buttons

I have a form that looks like this: <form action="/vote/" method="post" class="vote_form"> <input type="hidden" name="question_id" value="10" /> <input type="image" src="vote_down.png" class="vote_down" name="submit" value="down" /> <input type="image" src="vote_up.png" class="vote_up" name="submit" value="up" /> </form> W...

Load new image when a user clicks on a link

I'm trying to figure out how to load a new image with ajax when a link is clicked on. The link looks like this (there are several links like this on the page they have little image thumbnails inside them so user can know approximately what image will load when he/she clicks on the link): <div class="box-content2"> <a href="/path/to...

Looking for a jQuery plugin that implements dialog docking

I need to create the ability to "dock" dialogs (in a browser page) to each other. I'm using "dock" in the sense that MS Visual Studio is using for the windows inside the IDE (where you can make them "dockable"). The user should be able to slide a dialog until its edge hits another window. Then both of them can be dragged together as one ...