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...
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&...
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....
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...
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...
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,
...
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...
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...
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...
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...
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?
...
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...
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
...
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"> ...
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...
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(...);
?
...
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...
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...
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 ...
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...