jquery

Possible JavaScript framework version conflicts when using site-wide vs local page scripts.

I assume this would be an issue with any JavaScript framework. I use MooTools on allot of the pages on my site. On some pages the scripts are 2 years old. When a new page needs MooTools I usually download the latest version to avoid any possible hang-ups with past bugs and to make use of any new features. This has worked fine as my old...

I'm trying to make a loop with jQuery...

All I need it to do is run the function animateAds over and over. Can anyone help? This is my code: function animateAds(n) { $('#ad_1').fadeIn('slow', function (){ $('#ad_1').delay(100).fadeOut('fast', function (){ $('#ad_2').fadeIn('slow'); }); }); }; $(document).ready(function() { for (n = 0;...

jquery and mobile browser compatiblity?

I want to build a relatively simple version of my site for mobile phones but i will definately need javascript and jquery for many functions. Googling didn't help to find an answer. How is compatibility of jquery with popular browsers in mobile phones? I am talking for smartphones. For example the deafult browsers for these platforms W...

How to keep an absolutely positioned element directly over the position of inline one?

This is a follow up question to http://stackoverflow.com/questions/2233097/how-can-i-stop-an-iframe-reloading-when-i-change-its-position-in-the-dom if you want the background. I have an inline div <div id="leaderboard-slot"></div> (with a fixed width and height) and another div ("leaderboard-loader") further down the page with the actua...

JS/jQuery - Displaying results based upon user input

Hey all, I've been thinking about this project I've taken on, now what I am after is a form that will have a list of questions, simple yes/no questions that when answered and submitted it will dynamically return the relevant data on that same page. So initially all answers will be loaded onto the page then hidden, and the way I plan on ...

Whats a good argument for/against using inline javascript within the html body tag?

One of my co-workers is thinking that it is simpler to just include the document.ready() calls (MULTIPLE) for jquery anywhere in an html document, rather than trying to have them all in the head, foot or in an external js file. Can you give me your thoughts about this? The document.ready stuff is loaded by modules that are included in a...

Jquery binding event.

<img id="sun" href="logo.jpg"/> How do I use JQuery to bind it so that when "sun" gets clicked, something happens? I just want bind onclick to sun. ...

Simple questions about ajax - Help me understand

I need a little help understanding something. I am using the colorbox plugin to load an external an external html snippet (which works fine). But none of my jquery selectors see the newly loaded html. Is that right (I think it is)? and if so how do I work around that. Thanks ...

How do I change a variable based on a checkbox during validation

I've successfully pulled the checked value from a radio button group with jQuery 1.4 using the following code: var myFirstVar = $("input[name='myFirstVar']:checked").val(); How would I alter this code to find out whether a check-box was checked, and to change the value of the var based on whether it is checked or not. I tried many th...

Data inserted successful but jquery still returning error

I used following jQuery to insert a data via Data Service. Event though I got 201 status response and the data is successfully inserted into my database, the system still regard it as a error and give me "failed" alert? what did i missing here. thank you in advance $.ajax({ type: "POST", url: "http://localhost:...

jHtmlArea event handling of keypress

I'm currently developping a text-to-symbol conversion tool (non-profit), and I'm having this problem: For the WYSIWYG-editting of the text, I'd like to use a nice small wysiwyg editor (like jHtmlArea). This editor will show floating divs, so I'll have to intercept a lot of keypresses (spaces/arrows/etc) Currently, my html area is loade...

Help with a `marquee` type effect with jQuery

I need to implement a marquee type effect. I don't want to use the marquee element - non standard and deprecated and all that. I have access to jQuery for this site. I've seen a few plugins, but no reviews of any. Have you used a marquee jQuery plugin before? What are your recommendations? ...

How can I show different content when JavaScript is disabled?

Hello, I need to show COMPLETELY different content when JavaScript is disabled. I know I can use <noscript> tag... but how can I hide the rest of the page when JavaScript is disabled? Thanks. ...

Feature detection for jquery 1.4

How would I go about doing a detect to see if the browser is either firefox, ie (but not ie6), opera, chrome or safari by using feature detection? ...

How to get original input attributes

Hi, I use qQuery as a glue to obtain/search original DOM elements by ID to use their original properies and methods. jQuery provides the function get() for this. How does this work with the input element? <html> <head> <script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"&gt;&lt;/script&gt; <script> $(function () { ...

Cannot get click() function to work on jQuery

Thanks in advance for the help: This function works fine in dropping in the div from the first click function, but WILL NOT acknowledge the second click function in any capacity whatsoever. I can even activate the first click function as many times as I want. What am I missing? I'm ripping my hair out over this. $('span[rel="confirm"...

mailto link in internet explorer navigates to dead end

I am using an anchor with mailto, and I am finding that the behavior is extremely unrefined. <a id="Help" href="mailto:[email protected]">Questions</a> when I do this in IE8, I find that in some locations, the windows asks if it can open outlook, you say yes, and it opens a new email message and sets the To: section. It also leaves...

jQuery + jQuery Form Submit Plugin + jQuery Validation Plugin

I realize this has been asked a few times, but wondering if you can help my situation out. Background: I've tried to create a form that submits using Ajax (jQuery Form Submit). Which I have gotten to work fine, and then I wanted to get validation on the form. Which I was able to get to work using jQuery Form Validation Plugin. But I can...

Jquery and AJAX. Putting an Ajax call between animations

First let me tell you that I learned scripting all by myself so my approaches are sure a bit weird. To explain what I want to do please go to this example site I prepared: How it should be, kind of! You'll notice that when you press on all the links which appear after pressing "Showroom" and all other menue buttons the content of the ma...

jquery mouseenter/mouseleave error when the target div has child input fields

I have two sortable lists, one being nested, with a mouse enter effect on the li elements of the nested sortable list. My problem is that the mouseenter and mouseleave functions are being called inconsistently when a user moves the mouse quickly through the list over the child elements which are input fields. Here is a sample of what is...