jquery

Using jQuery to create bar graphs based on user comments

Hi, I am still learning jQuery and have come up against something I just can't get my head around? (I'm not great at math!). I know that there is probably a graph type plug-in out there I could use but I don't know if I need something so bulky/code-heavy. Any help would be greatly appreciated. This website is the best learning source on...

jQuery/JSTree/ASP.net: How to get Newly Created Node's ID from Server

I currently have a JSTree all set up to do the creation and renaming of a new node: .bind("create_node.jstree", function (NODE, REF_NODE) { $.ajax({ async: false, cache: false, type: 'POST', url: "ApplicationAJAXHandler.aspx?action=CreateMenuItem&...

How do I get my application.js (jQuery) file to execute a script from somewhere else in my Rails app?

I'm starting to feel crazy because what I want to do is so simple: write a line of javascript in my Rails application.js file that will cause a script somewhere else in the app to execute. I've tried it with jQuery.get() and jQuery.getScript() but nothing seems to work. Here's some sample code from my application.js file: #application....

Using jQuery cookie.js to remember hide/show element?

Hi guys, I have found a great tutorial on how to show and hide a certain div on a page. I got the code working fine, but I would like to extend is to that the show/hide is remembered on page loads. I've looked for a solution jQuery cookie was the answer.. if I'd knew how to write the actual code that is.. Here's the current snippet: <s...

Easy way to drop XML Namespaces with JavaScript?

Is there an easy way, for example, to drop an XML name space, but keep the tag as is with jQuery or JavaScript? For example: <html:a href="#an-example" title="Go to the example">Just an Example</html:a> And change it to: <a href="#an-example" title="Go to the example">Just an Example</a> On the fly with jQuery or JavaScript and not...

jquery menu bar floating top

Hello, I'm trying to make a menu bar float constantly at the top of the browser, so when they scroll down the page the menu bar remains at the top. How could I go about doing this? Regards, ...

Changing slideshow images according to season-Possible conflict with jquery cycle plugin?

I am trying to automatically show images based on what month it is with javascript. I am also using the jquery cycle plugin for the slide show. I originally just had the images within the HTML and everything was copacetic. Now when loading the images source with javascript there is a long pause before the first picture loads up and al...

How do I incorporate jScrollPane into a Wordpress PHP header file?

Can anyone give me a hand? This is for a charity event and coding clearly isn't my day job. The site is www.gingertown.org/wp I don't understand where to put this line: $(function() { $('.scroll-pane').jScrollPane(); }); I also have a feeling I'm not calling the js correctly. From digging into wordpress I modified my file to loo...

How do I use JQuery Validation in ASP.NET MVC?

I'm trying to use the JQuery Validation's "addClassRules" method in my ASP.NET MVC application. In my master page I'm including the following files... <script src="<%= Url.Content("~/Scripts/MicrosoftAjax.js") %>" type="text/javascript"></script> <script src="<%= Url.Content("~/Scripts/MicrosoftMVCAjax.js") %>" type="text/javascrip...

Reloading modernizr after ajax

Hello, I have part of a page being dynamically refreshed via the jQuery load() method, but its not looking so hot in IE. Short of rewriting the mark-up to suite ie, I would like to reload modernizr after the ajax and have it re-work its magic to the newly inserted content. Is this possible? hopefully via the load() callback somehow? upd...

jqGrid caching the grid data

I have a button onclick it should go to a another page containing jqGrid..but if user want to go and see the data it should be cached and show instead of making a call to the server.... form values were cache by default but jqGrid ...how to cache it? ...

Parse PHP Array from serialized data

I am using the jQuery plugin from http://mjsarfatti.com/sandbox/nestedSortable/ It does an excellent job on easily sorting the list, but I am having issues with saving it a DB and loading it back up. My question is once you get the array into PHP, serialize it and store it into a database, you end up with something along the lines of a...

Disallowing keystrokes in the textarea with jQuery

In the Twitter signup process, they do not allow you to input any character other than alphanumeric keywords What would be a good way, efficient way of doing so? The plugins available seems to be a little too slow for my liking, so i was wondering if anyone had more efficient way of doing so ...

How to create large scroll web page ?

I will put 10.000 picture ordered like connected hexagons.But I can`t see pictures more than 140.They not fit in browser and also scroll bars not shows all elements.I want to make that on screen will be visible 100 image and if I will move mouse up,down,right or left and page will be scroll to that position. <div calss="userList"> ...

IE 7 jQuery .append functionality not working

I have the following snippet of code: $("#QnAList").append("<div id=qdiv" + i + " class=divBase> <span id='" + i + "'>" + msg.d[i].QuestionText + "</span> <span id='display'" + i + "'>" + answerDisplay + "<span class='triage'> </span></div>"); msg.d[i].QuestionText is the problem that I'm having. In FF it is displaying the text perf...

jQuery selectors and variables

Is there any obvious advantage in performance in writing var e = $("#el"); e.css(...); e.attr(...); .... e.click(...); instead of $("#el").css(...); $("#el").attr(...); .... $("#el").click(...); ? ...

javascript to jquery

I am trying to update my javascript to be jquery. Here is the javascript (this is working correctly) <script type="text/javascript"> function getWindowHeight() { var windowHeight = 0; if (typeof (window.innerHeight) == 'number') { windowHeight = window.innerHeight; } else { i...

What are methods of form validation from inside a shadowbox?

Ok I have a form inside a shadowbox, this thing will just not validate... I have tried it a million different ways. It also lives inside a Wordpress Theme which I don't think is breaking it. Jquery is loaded in the header. the form is pasted into a gist: http://gist.github.com/578270 Any ideas? Thanks so much, feel like I am banging...

Are there any built-in jQuery functions to highlight the borders of a form field?

Without using any plugins, are there any built in function in jQuery or jQuery UI to achive the form field border highlighting effect that you see on sites like http://www.youtube.com ? In YT when you click inside the search field the borders highlights blue. I tried to achieve this using css and jquery addclass() function to give the ...

Jumping div in Safari and Chrome. jQuery/Javascript

I have a div #HangerLeft that the css.right is automatically generated via jQuery to sit on the left side of the page based on the body width. It is absolute positioned. function hangerLeft() { var hangerPosition = (jQuery("body").innerWidth() / 2) + (990 / 2); jQuery("#HangerLeft").css("position","absolute").css("right", hangerPosi...