jquery

jQuery ajax problems

I am writing some functionality using jQuery that i normally handle with a page refresh/form submission. Basically I am submitting a form using jQuery's ajax. <html> <head> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#show-comment-form").clic...

Detect IE6 with Jquery

Guys, I am trying to establish how to detect the IE browser in jQuery 1.3.X - now before you all write "its deprecated in 1.3.x!" - I know this. I have this code if (jQuery.browser.msie && jQuery.browser.version == "6.0") { alert ("This is less than IE7"); } else { alert ("This is greater than IE7"); } When running it in IE8 - IE...

Double-Click HTML files and JQuery

I noticed that when I open HTML file locally by double clicking on it, it will not "run" the same as if I had it on a web server and opened it by HTTP GET request. I need to have a local HTML file a user can open by double clicking on it. This HTML file has several JQuery load calls such as this: $("#content").load("http://somepage.com...

jquery - why is mouseleave triggering

i am trying to develop my own accordion/sliding menu. (as a side qn, any good ones that can be easily customized/skinned?) i found that seem to trigger when i am sliding down an "inner" menu. since its "inner", my mouse definately has not left #mainnav my test page here without that annoying test alert here $("#mainnav").mouseleave(...

jQuery and sIFR. On hover - delay and show

Hello guys, I'm trying to make a sIFR text appears when hovering on a div, with some delay. The markup is like this, several times : <div class="box"> <div class="text"> <h6>sIFR Text</h6> </div> </div> This code is doing the trick (from hide to sIFR on hover), but without delay : $(document).ready(function() { ...

Serialize form to JSON with jQuery

How do I serialize all elements of my form to a JSON object? I'd like to have some way of automatically building a JSON object from my form, without having to loop over each element. I do not want a string, as returned by $('#formid').serialize();, nor do I want the map returned by $('#formid').serializeArray(); ...

onclick go to url THEN do something specific

i have a page on my site (let's call it list_page.html) with js functions that allow you to click a link and see a list of multimedia objects. clicking another link (on the same page) will hide the div with the multimedia list and reveal a list of video objects. another link will hide whatever list is visible and reveal a list of audio o...

jquery affixing display: block

Hi, I have a message board, and I have some code that loads new messages automatically as they arrive. I have, addtionally, the following code run on all board posts. $(".old_post").hover(function(){ $(".post_right_nav", this).show(); $(this).css({ 'background-color': '#E6E6E6' }); ...

Is there a better way to do jquery Tabs?

Below is the jquery code I am using for my AJAX tabs Is there a better way that would be faster in the browser, I don't care about fancy transitions. <script type="text/javascript"> var pageUrl = new Array(); pageUrl[1] = "HOMEbulletin.inc.php"; pageUrl[2] = "HOMEfriendstatus.inc.php"; pageUrl[3] = "HOMEbulletin.inc.php"; function...

jQuery Thickbox with .ASHX image handler - shows garbage

I am using an .ASHX handler to return images from my ASP.NET app. When I use the browser to hit the URL directly (example): http://localhost/myapp/GetImage.ashx?key=12 it works fine... image shows up on the page. but when I use that same link as a target in Thickbox... I get this: the distilled version of ASHX the code: byt...

jQuery .attr function not returning correctly

I am building a list with checkboxes, after the list is created I am using ".each" to go through them all and trying to apply a click procedure. My code like this works fine: $.ajax({ url: "./views/todoitems.view.php", data: "cmd=list", success: function(html){ $('#list-container').empty().append(html); $('input:checkbox').each(...

How can I reload a jquery tab on form submit?

I use jquery for ajax tabs, not jquery UI that is to large for my needs This code below is my ajax tabs, it loads the selected tab with an external file I also have a for that uses ajax to post data to this page HOMEfriendstatus.inc.php which is #tab2 What I want to know when I submit the form, regardless of what tab the user has loade...

CSS / Jquery Effect - What is this ?

Hi, on this website: http://www.eco-environments.co.uk/ if you scroll down to "What we do" and rollover the links you get a bubble popup display, can anyone tell me how this is created please? Thanks ...

Jquery Jqgrid + Asp.Net don't work too easily?

Hello, I have been struggling quite a bit to get this JQgrid to work with Asp.Net. I found asp.net samples online...but if I modify them according to my database,it flops. Do I need to change the DataTable to JSON functions as well? Out of my search,I found these 2 articles getting me pretty close... http://arahuman.blogspot.com/2009/...

How to override target=_blank in KML popups in embedded Google map?

I'm using KML to overlay shapes on a Google map. Information corresponding to each shape is included in the <description> element, along with a link to a detail page corresponding to that shape. So for example, my KML includes this: <description> <![CDATA[ <div> ... <p> <a href="Concession.20.aspx">Vi...

Dynamically loading css stylesheet doesn't work on IE

Hi, I dynamically load a css stylesheet (with a little help from jQuery) like this: var head = document.getElementsByTagName('head')[0]; $(document.createElement('link')) .attr({ type: 'text/css', href: '../../mz/mz.css', rel: 'stylesheet' }) .appendTo(head); This works fine in Firefox and Google Chrome, but not in IE. Any h...

JQuery event.stopPropagation() not working

Hi all, In my html I have a span of class dragHandle embedded within a li. <div class='treeView'> <ul class='tree'> <li><span class="dragHandle"></span>Item 1 <ul> <li><span class="dragHandle"></span>Item 2 <a href="#">link</a></li> </ul> </li> </ul> I attach event handlers using jQuery as follows: ...

Detecting AdBlocking software?

I was recently visiting a site and noticed that the page had a section that said it noticed that I was using AdBlocking software and could I kindly turn it off to help support a small site like that. I was just wondering how you would do that? Would it be best done client-side or server-side? ...

How can I get older jquery code to work with newer versions of jquery?

Related: http://stackoverflow.com/questions/528241/how-do-i-run-different-versions-of-jquery-on-the-same-page/528251 I have a pages that uses a lot of jquery, I have a drag and drop that saves position into mysql DB also. My jquery file is about 2 years old and today I tried to use a newer version because there is a script I am wanti...

How to determine a 'line-height' using Javascript (jQuery)?

Well, encountered the need of a line-height coding a plugin, so, can you give an advice, please? Thanks) ...