jquery

How to stream Chart Images as FileResult from MVC Controllers update via jQuery Ajax

I am experimenting with Nic's method of streaming images as FileResult from controllers. CodeProject article. I thought I take it a step further and have an image get updated via jQuery. I have tried all sorts of ways but can't get the image to show. In this current state I am seeing all the characters of the PNG, I think it is sending ...

Best Ajax Search/Filter

I am looking for the best way to mimic the facebook friend window, where you can use ajax to filter what you type and update it. Any suggestions? I was playing with flexgrid but I think that's overkill ...

How can I tell if an element is being dragged using jQuery?

How can I check if an element is being hovered over and/or clicked on and/or dragged? I need this info so I can stop infinite loops for the duration of the drag. ...

Is there such a thing as too many $(document).ready handlers (IE)?

My dev environment is LAMP-based (Drupal); there are several JS (jQuery) files that are served up to provide various bits of functionality. Until recently, things worked fine (well, IE6 was hideous but at least it worked). However, recently, one of my JS files has started to refuse to execute at all in IE6 and IE7. If the file contain...

Profiling jQuery, how do I make my app more snappy?

I have some calls to jQuery functions like 14,000 times... what the hell? I don't have that many functions, really just simple stuff like appending and removing DOM elements, why do some of my event handlers call functions so many times? Plus to compound my issues, Firebug's profiler just show's the min'd functions names... and even whe...

How to layer specificity

Within the posting at http://www.smashingmagazine.com/2009/08/17/taming-advanced-css-selectors/ in the context of defining the rules of 'specificity' is stated: For example, if you want to change the background color of all the div elements that are posts on your blog, you can use the an attribute selector that targets every...

How to create a moving clouds using jQuery?

My previous javascript on moving clouds is not compatible with jQuery, I need a better codes that allows of looping and moving div. ...

why doesn't this jQuery code work in IE?

The following code is used so when clicking 'enter' when focused in an input field within a form, it disables the standard submit button functionality. Rather the javascript builds a new form and sends a post request to another page. I am using this so that I can achieve a "form within a form" functionality. The input field has its ow...

Dynamic including javascript with jquery

Hello people! I'm facing a problem using IE here. I need to insert a form on distinct web pages in distinct servers and domains. I'm doing this through a javascript include like this: <script type="text/javascript" src="http://www.sisgol.com.br/teste/write_js.php?content=form_content"&gt;&lt;/script&gt; <div id="form_hypescience"> </div...

ASP.NET MVC with jqGrid Form Editing - Controller Action for select options

Well, I'm falling for the jqGrid plugin for jQuery and trying to incorporate it in an ASP.NET MVC application. I have all the basic funcitonality working thanks to various blog posts from around the traps. What I am trying to workout now is how to return data from the Controller in such a fashion as to populate select options on the edi...

How many lines of code will be saved using JQuery instead of straight JavaScript?

Maybe someone more familiar with the topic can help me to simplify or write the question correctly. We are looking for metrics on JQuery or even other JS Frameworks in comparison with the use of straight javascript. I don't beleive in the lines of code metric, never have, but I cannot think on anything else to measure it. Function Poi...

jquery with asp.net mvc dialog box

i have a html link that i want to popup a dialog box with a list of user names and checkboxes. the user can then select one or more checkboxes and click OK and that information will be passed back to the main GUI. is this possible using jquery or should i be using another technology? ...

jQuery element constructors - which is the recommended way?

When you create an element by passing HTML to jQuery, there's a number of formats you could use, for example: $("<span>").addClass("foo") $("<span class=\"foo\"></span>") etc... Is there one style which works better than others? ...

Is it possible to implement the effect of turning pages of a book with jQuery?

Or is there a ready plugin that can achieve this? ...

Complicated CSS layout

Hi, could somebody help me with freaking complicated tile layout as it specified under the link. I have tried to use float:left for widgets but I getting the red block always below #2. I should be able to dynamically add widgets to black dashboard. I can use html5, css3 and jquery. There are not just 2 columns. If the dashboard has fre...

jquery use plugin on dynamic content

I'm trying to create an image gallery from an rss feed with the galleryview plugin. When the html content is statically in the page the plugin works but when I generate the html dynamically from the rss feed calling the plugin seems to do nothing. Here is the code I'm using: function getScrollerContent() { $.get('photos.rss', {}, fu...

Submit to a function rather than a whole php file in JEDITABLE

How would I submit the value and id not to a php file like save.php (which contains codes that would save immediately the new value) but to a function? Because I can get the whole page when I edit a certain element. Maybe because I post the value and id into a function.... ...

Jquery XML Paging and Onload Hashcheck

Hi Folk can you help me? i will create a XML Parser with anchor/hash url. My problem is I get the hash / anchor from the URL does not load. Here js in HTML Template <script language="javascript" type="text/javascript"> $(document).ready(function() { BROADCAST.init({ xmlPath : "broadcast.xml", swfPath : "swf", ...

How to disable browser or element scrollbar, but let scrolling with weel or arrow keys?

I want to hide scrollbars from div element or whole body, but let user scroll it with mouse wheel or arrow keys. How to achieve this with raw javascript or jquery? Any ideas? ...

Microsoft Ajax Control Toolkit vs. jQuery

Hi, we are currently developing a couple of custom asp.net server controls. Now we'd like to add some Ajax support to some of them. Now basically there would be two options Microsoft Ajax & Microsoft Ajax Control Toolkit jQuery I worked already with the Control Toolkit, writing a complete Extender and it was quite intuitive, once yo...