jquery

Is there a way to simplify this jquery?

I wrote a dropdown menu with the following structure. It is supposed to drop down on click, and close on click. Here's the HTML <ul id="nav" class="nav"> <li> <a id="menu1" class="menu">MENU 1</a> <!-- top menu --> <div id="submenu1" class="submenu"> <!-- hidden by default --> <a href="#">SUBMENU ITEM 1<...

Jquery dataTable id order problem

I am pulling out data from MySQL ordered by id, which is 1,2,3 and there is no problem. However when I use it with http://www.datatables.net/, the order becomes 1, 10, 11 ,12,.. I am not able find any parameter to sort this problem. I am wondering if anyone knows how to fix this. Thanks in adavance. $(document).ready( function() { ...

What to use to create bar, line and pie charts with javascript compatible with all major browsers?

I used to work with flot but it doesn't support pie charts so I'm forced to change. I just saw JS Charts, but their documentation is very obscure regarding cross browser compatibility (I need it to be IE6+ compliant :). Also this will be for commercial use, so I'd rather have something that I can use free of charge jQuery Google chart...

How to change the content of "This field is required" in Jquery form validation plugin?

How can I change the general message of "This field is required" in Jquery form validation plugin to "このフィールドは必須です"? The color of the message can be changed by using the following code: <style type="text/css"> label.error {color: red;} </style> But how to change the content? I want to change all "This filed is required" messages. I...

Jquery horizontal slider for categorylist

Hi, im trying to create a sliding horizontal menu with different categories. I would like to use one div layer that has a fixed width value, and another div inside this one with more width that the first one. This way only part of this second div could be visible. Im having two problems: The categorylist html code is not working prop...

Move scroll of a div with jquery

Hi, Im trying to move the scroll of a div with jquery, but i dont know what im doing wrong. Here is the code that im using: $("#CategoryList").animate({ scrollLeft: "=-5" }, "slow"); where CategoryList is the ID of my div with scroll. Could you give me a hand? Thanks in advance. Josema. ...

jQuery - find child with a specific class

Hi, I am trying to write code to search all children for a div that has a specific class. The DIV does not have an ID. Here is the HTML I will be using. <div class="outerBUBGDiv"> <div class="innerBUBGDiv"> <div class="bgHeaderH2">Technology Group</div> <div class="bgBodyDiv"> <div align="center"> <img height="33" border="0" width="1...

Simulating a click in jQuery/JavaScript on a link

I want to simulate a click on any link on a page using JavaScript. If that link has some function binded to its 'onclick' event (by any other JS I don't have any control over), then that function must be called otherwise the link should behave in the normal manner and open a new page. I am not sure that just checking the value of the '...

Jquery tabs load content on active with asp.net?

I'm using Asp.net and have just started to look for a tab solution and I really like jquery ui. The most important thing is that the tab content only load when the tab is active. As I use Asp.net I have some GridViews connected to SqlDataSources in each tab and only want this content to load when the user selects the specific tab. Using ...

How to delay jQuery TOOLS tab change?

Hello! I have a problem with jQuery TOOLS Tabs. I set the event to mouseover and if I move the mouse too fast then more panes appear. Is there a way to delay the switching of tabs or a fix for this? ...

How can I position my jQuery dialog to center?

I have tried following code, but it only positions dialogs left upper corner position to center, and that makes element to be aligned to right. How can I center dialog to real center which counts elements width, so that center line will cut dialog to 50% 50% halfs? $('.selector').dialog({ position: 'center' }); http://docs.jquery.com/...

jquery validate and IE

Hi i am using jquery validate that works fine in FF but IE dont listen the rules and dont submit. Here is the code $(document).ready(function() { $("form#loginForm").validate({ submitHandler: function(form){ customer_dispatch('login'); }, rules: { user_login: { required: true }...

Catch only a left clicks on links.

We are using event "click" to catch click on links and load content via ajax. But event happens also on right mouse and wheel clicks. How to process only left? confused // jquery.coyod-engine-0.5.0.js $(document).click(function(e){ var t = $(e.target); if(t.hasClass('aj')) { e.stopPropagation(); e.preventDefault();...

problem with picture zoom in

I have a small picture which would zoom in if it's clicked on, the zoom in function work s when I'm using 17" laptop screen, but the zoomed in picture dosen't appear completely when I'm using a different size screen.when used on mac it's the same problem. I was just wondering if there was a way to make it look the same in all different ...

ASP.NET MVC: Entering in the controller again from the page via ajax?

Hi there, can anyone help? I have just started asp.net mvc and its all working.. entering my controller and then sending out the view... I am also writing a log here.... The page that loads as quite a bit jquery and javascript so i need to be able to enter into the controller again preferably not a postback but via ajax or similar - ...

navigation add active link in Jquery

I'm using the same js as the one answered in this question: http://stackoverflow.com/questions/302955/active.... my problem is, instead of adding the class to a default link i would like to add the class to a link with the same directory. example: Page2 is in a different directory. a link, outside of the nav, is clicked on that page...

how to get content of nested div with jQuery

So I have a nested div structure and I would like to get the content of the second level. How should i do it with jQuery .load? The following works only with simple divs(non-nested)... .load("https://remote-site.com/blah.html #div_1", function() { } Ok, the whole stuff is: <html> <head> <title>AJAX Checker </title> <link rel="styles...

jQuery Accordion populated by XML file, how?

Hi, pulling hair out here, is there any tutorial or snippets to enable me to create an accordion that is powered/populated by an XML file? Currently my XML file is loaded ok, but every entry appears in a single accordion header.. obviously I need each XML chunk in a different accordion thingy.. head hurts. update: <forces> <force> ...

Jeditable to edit a link. Help.

Hi, I have been playing around with jeditable for 2 days now, and it's great! But I got a little problem, I have a link which should be editable, but whenever the field become editable, I can't edit that field, when I click, it jumps right to that link. Any solution? Here is my code <a href="$homeurl/$hashkey" class="editsubject" id=...

Why do I get a 403 forbidden when calling to external IIS based MVC controller returning a JSON result

I have an application that's been provided by a third party. The only means of modifying the behavior is through client side script. I have a screen in the app that does some ad-hoc querying but doesn't provide any means by which to save the settings. Rather than have the user re-enter setting each time, I've injected some elements vi...