jquery

How to: jQuery cycle lite plugin (image rotator plugin) manually set images by ID

Hello I am using jQuery cycle lite plugin (image rotator plugin), and I want to use the middle example (click triggers) but instead of setting the IDs of the prev and next button, I'd like to manually set the image ID. My aim is to have a list of thumbs on the bottom of the page, and when thumb clicked set the large image in the 'slides...

JQuery to load Javascript file dynamically

I have a very large javascript file I would like to load only if the user clicks on a certain button. I am using jQuery as my framework. Is there a built-in method or plugin that will help me do this? Some more detail: I have a "Add Comment" button that should load the TinyMCE javascript file (I've boiled all the TinyMCE stuff down ...

Include JavaScript file in partial views

I am wondering what the best practice is for including javascript files inside partial views. Once rendered this will end up as a js include tag in the middle of my page's html. From my point of view this isn't a nice way of doing this. They belong in the head tag and as such should not prevent the browser from rendering the html in one ...

JQuery BlockUI not Unblocking the Page

I am having a really weird problem! I used the blockUI JQuery plugin in one of my pages and it worked fine. I did the same for another page and it is not unblocking the page when $unblockUI is called. Here is the code: function showCommentBox() { $("#commentBox").addClass("modalPopup"); alert($("#commentBox").hasC...

Importing a JSON feed from an external source in Javascript

I'd like to load a JSON feed from an external source using Javascript; what's the best method? I've been working a lot in PHP where it would be easy to do so with file_get_contents or cURL. Is there a related function or process in Javascript? ...

Append INPUT to TEXTAREA as being types in JQuery

I have an INPUT text box. As someone types into the INPUT text box, i need it to append/add-to a TEXTAREA value. Lets say user types '12345' into the text box. The textarea (default value="Comment: ") will automatically add: 'Comment: 12345'. Adding '12345' as they type. ...

Jquery and ajax - using a link to inject a files content

I'm looking to achieve the following. I have an initially-empty absolutely positioned div (#description) sitting on TOP of another div (#zoom) which gets large images injected into it when users select one of the 15 or so thumbnails on the side of the page. I have a link on the side such as: <div id="whatisit"><a href="description.php"...

jQuery and Asp.Net compatability

I am trying to use jQuery and Asp.net Ajax library. The jQuery code is solid, I have it working on a seperate page. When I incorporate the jQuery code into an existing page that using Asp.net Ajax, the jQuery code does not work. I think this has something to do with name mangling. How can I stop asp.net from name mangling or whatever e...

How can I find the position in the page of an element using jQuery?

I'm aware of the position method, but that retrieves the position relative to the offset parent. Do I just throw in a loop to transverse up the document nodes? I guess that I'm surprised that it isn't part of the core, and I'm wondering if it's tucked away somewhere that I don't know about. ...

Comparing two fields in a form in Javascript - Not working

Can anyone tell me what I am doing wrong? my comparePasswords() is not working... <script> function comparePasswords() { if (post-form.password.value != post-form.password2.value) { $('passwordShow').innerHTML = ''; } else { $('passwordShow').innerHTML = 'Passwords d...

How to give a page focus again so that the space bar pages down in FF?

I have an ajax script with a "get more posts" button that inserts a couple screens/viewports worth of information. In doing this, the document looses focus at some point and thus the default behavior of the space bar (page down) doesn't work in firefox. How can I focus the document again to regain the default behavior? What components c...

jQuery Ajax grid

Hello, We are starting a new ASP.NET MVC application and want to use an jQuery Ajax grid. I came across following options: - jqGrid (better than Flexigrid because it supports editable cells) - Flexigrid (looks better than jqGrid) - tablesorter - Ingrid - jqGridView - OTHERS? Which is the best choice for jQuery Ajax grid ? W...

How do I serialize file type input in jquery

Previously using Prototype I could serialize the input type file, it gave me the file name of the file being uploaded but when I serialized the form in jquery I just got the input type text and others not the file how do I do it? ...

Problem using jQuery cycle plugin as image rotator and a pager

Hi all! I am trying to use jQuery in order to make a pager for tumbs and large images and I don't succeed. I am using this example from jQuery's site, I think I followed the direction but it doesn't seem to be worknig. I do see only the first image and not all of them, but no pager. Am I missing something? So here is my HTML: <!DOCTY...

How to get this line of jQuery to validate as XHTML strict

Hello, I have this bit of jQuery at the top of my page (used for a simple image carousel): $(document).ready(function(){ $("#slider").easySlider({ prevText:'<div id="backarrow">Back</div>', nextText:'<div id="nextarrow">View Other Projects</div>', orientation:'horizontal' }); }); however, I can't get it to validate XHTML ...

DRY jQuery for RESTful PUT/DELETE links

I'm putting together PUT/DELETE links, a la Rails, which when clicked create a POST form with an hidden input labelled _method that sends the intended request type. I want to make it DRYer, but my jQuery knowledge isn't up to it. HTML: <a href="/articles/1" class="delete">Destroy Article 1</a> <a href="/articles/1/publish" class="put">...

posting password via ajax.get or ajax.post

hi, I have a login form. The form is submitted via ajax to an .aspx file to actually carry out the login action. In this case, I either have to use $.get() or $.post() but each of them reveals the password (when I look in firebug). Is there any way to hide the posting information from the user? ...

Detect when resources loaded via ajax

I recently asked how to detect when all resources of a page have been loaded, such as images and stylesheets. The answer came back, use the $(window).load(); method in jQuery. My question now is how do I detect when content is done loading via AJAX. AJAX injects some img elements, say, into the DOM... how can I tell when those images ha...

How can I call jquery function from javascript code?

I'm using RadAjaxPanel by telerik and it has ClientEvents-OnResponseEnd client-side event. So I've written JavaScript function: function OnResponseEnd(ajaxPanel, eventArgs) { // call jQuery here }; and my question is how to call jQuery function inside? I'd like to manipulate some html elements with .slide(..) function. ...

jQuery: Chaning Events- code correction

Hai Techies, Can any one tell me how can i replace the slideup function with fadeout('slow') for the below code div.slideUp(function() { div.load("GetResults.aspx?mode=bymanu&mid="+manuId, { symbol: $("#txtSymbol" ).val() }, function() { $(t...