jquery

jquery toggle and scroll to view

when a link is at the bottom of the browser window and user click it to show some content, I would like the browser to scroll down so that the shown content is located at the top of the window to be visible. how to do this in jquery? ...

Checking for blank input with jQuery

I'm submitting some comments via $.ajax. However I want to check to make sure that some content is entered in the input box. At the moment I am using this: if ($("#comments").val().length != 0){ However this only works if a user leaves in the input blank, if the leave a space or return then it will pass. How can I improve this if? ...

How to stop Explorer giving Active X warning when loading website containing Jquery on USB stick

I've done a lot a looking for a solution, including trying to put in the Mark Of The Web, but when I put a plain HTML site on a USB and launch the index page I get a security warning that Active X is trying to activate. this does not happen when launching the page from our raid server the page in question does not have any javasc...

jquery mouseover,mouseout and click

hi to all I have a sprite menu and I am using jquery for the mouseover, mouseout and click. The mouseover and mouseout work fine but I want is if I click and selected a menu then change the background position. It is now my problem, it doesn't work, maybe because once I click a menu then the mouseout still triggered. here is my jquery...

Add scroll to a table

I have a table in which i add rows dynamically and i want to add a vertically scroll to the table when its width get 300 or more. Any tips? ...

JQuery validation is not working for YUI editor. ASP.NET MVC

I'm using YUI(Yahoo UI) rich text editor control in my MVC view page. I need to do a jquery required field validation. It shows error message when submit without any value in that field but it stays after typing the value in the text editor. Please help me if anyone has tried it before or if you have any other javascript validation log...

How can I know what slide is active in jQuery plugin EasySlider?

I use EasySlider plugin and it works, but my problem is that it dosen't have any callback function or method to get current slide element. Is this possible or do I have to make my own script to get current slieds element? http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider ...

jquery filterable portfolio using selectbox instead of normal href

Hello, I'm using the filterable portfolio script by new media campaigns ( http://www.newmediacampaigns.com/page/a-jquery-plugin-to-create-an-interactive-filterable-portfolio-like-ours ) which works fine when using normal links in a unordered list. I would like to offer the options in a selectbox though. Could anyone point me in the righ...

jQuery best way to block any other processes while waiting for Ajax completion

It is jQuery. I have a signup form. At the domain textbox field, people fill in domain, then onblur Ajax call to registar API for validation on domain availability. The validation may take up to 15 seconds depending on network speed. In this waiting period, if user go to click submit button, how to block? My idea is simple: Before an...

JQuery Autocomplete: Submit Form on selection?

Hi all, I'm using JQuery Autocomplete on a traditional html form. I'm trying to get the form to submit (the old-fashioned way lol!) when a selection is made. Currently the input box gets filled out and I have to make a 2nd press of "return" or click the submit button. I've tried a few examples from stackoverflow, but I could get it wo...

Change the name of HREF link

Hi there, i have the following link <a href="example.com" id="example1"> Go to example....</a> Is it possible that when a body moves the cursor over "Go to example..." it changes to "Go to example One" , i am using php and jquery. Any help will be appreciated. ...

Focus lost when selecting a choice in jQuery autocompletion dropdown list.

hi, I'm using the jQuery autocomplete plugin for a text input. When selecting an item in the dropdown list of the autocompletion choices, I loose the focus on my text input. Can I avoid that? Is the dropdown list an element? can I get its id or select it in some way? Thanks ...

Ajax features broken across browsers (on one machine)

I have built a CMS system using jQuery and PHP, it has worked consistently for multiple users across different platforms over the past year or so. Today as I was presenting it to a potential customer over the phone he ran into a problem in Internet Explorer 8, for some reason he was not able to log in to the system so I created a dirt...

how to add units ?

How to add height , width unit to image using jquery , like pixel, % ect var img = new Image(); // Create image $(img).load(function(){ imgdiv.append(this); }).error(function () { $('#adsloder').remove(); }).attr({ id: val.ADV_ID, src: val.ADV_SRC, title: val.ADV_TITLE, alt: val...

Best way to do input validation when using Asp.Net Mvc 1.0, Json and jQuery Ajax

The title says it all really. I went through a few blogs/posts and there are some good solutions for input validations in Mvc 1.0, but most of them are about non-Ajax scenarios, so I was wondering what your preferred method is when using jQuery Ajax? Thanks. ...

Jquery issue with passing function click to function

I would like to push data from mysql db to div every x seconds. at window.setTimeout(update, 60000); - how to pass in the btnStart.click function into it again??? Not too sure about the syntax for passing in function call. Here's the code for reference $('#btnStart').click(function() { $.ajax({ url: "ajax.php", type: "POST...

Download file and display contents with javascript

I have a simple webpage which has a link, on pressing it a file is downloaded(rest web service call). I need to read the file and display the contents using javascript. How do I do this? ...

Select box calling another element's click event jquery

I have a div on my page witch is hidden : AddSupplier, I have a button on my page witch must show the div if its not visible, but the same button saves some stuff if the div is visible. So all that is working but in this AddSupplier div there is a select box "ddSupplierTypes" and when the select box gets clicked the AddSupplierButton cli...

Trouble moving Inline Javascript to the very end of my html file.

Is it possible to move a remote inline javascript widget to the very end of my html, and then, once the DOM is ready, inject the widget inside a specific element. I see inline javascript as a candidate for poor performance. Thanks in advance. ...

Buzz using jquery

How do I implement BUZZ (Yahoo chat buzzing) or shaking window functionality using jQuery? ...