jquery

How to highlight an HTML content and save it to the database for future loads

Hi all, I'm trying to highlight the selected text contents by the user inside the HTML page I loaded using PHP + XSL transformation. I have seen some solutions related with highlighting current selected text, but I need to save some information to the database that makes me able to highlight the same contents for future loads of the sam...

jquery, wait for user input

am basically looking for a way in jquery where my script will wait 15seconds or so, and display a correct ans if the user hasnt selected an answer already. at the moment it just seems to run straight through. ps this method is called in a for loop, with other methods/functions so it runs straight through iterating through the array. thr ...

How do I disable drag and drop in fullcalendar

I am using FullCalendar throughout my project and i need to display it in one area of my site where events are not draggable but to remain highlighted in the month view. Any ideas please. ...

How to create a virtual scroller?

I want to create a table to grid some data. The table can list a lot of data (100K+ rows). So what I want to do is show like 20 rows at a time with maybe a 100 row buffer. As the user scrolls down on the grid, it loads in the extra rows via ajax? I have seen this done but I don't really know how that can be achieved? ...

Jquery .children(); reset

Im using .children(); to count a number of results pulling from a search query, but when I get a search that doesn't bring back results it still has the same count from the previous search. Is there anyway to clear it to ready it for the next search? Here is the code im using: function results(){ var n = $("#sidebar").children().length;...

In jQuery, is the selector $('[id=foo]') less efficient than $('#foo')?

In jQuery, is the selector $('[id=foo]') less efficient than $('#foo')? ...

On check, disable all others

HTML: form input:radio 1 input:radio 2 input:radio 3 If one of these is clicked, I'd like to disable the rest. I think siblings selector will be used here but I can't figure out how. Thanks for your help! ...

Asking data in AJAX

hello.. i tried these two codes but it is not functioning.. i only want to ask for the data output from another domain from http://vrynxzent.info/hello.php first code $.post("http://vrynxzent.info/hello.php",function(e){ alert(e); }); second code alert(askData()); function askData() { var strUrlList = "http://vrynxzent.info/hel...

Send a callback to other page?

I have an asp.net page. I'm using a jquery library to open a modal window on link click. Within this modal window I'm loading another page. After i make update within this modal window I need to send a callback to "Parent" page. if I call function from this window I'm getting the error it couldn't find function. Window.opener.functionnam...

Why is my variable empty in post?

This is what I'm trying to do. Have one main form with all the data and have several dialogs, from which the data will be added to the main form. After all the data is in the main form I will submit the form. But the problem is it won't save the values of the data in the dialogs when I copy the html to the main form. It won't put the va...

jQuery slider does not display

so i figured i would start small... no go. the jquery UI slider does not display... what is wrong with this page? http://www.bcidaho.com/healthcare-reform/timeline.asp i have the jquery library called in the head, the UI core, and the UI slider js files... my error is "object does not suppor this property or method"??? ...

Nested ajax calls not working in IE7

Hi all, I have nested ajax calls that are not working in ie7. They work fine in Firefox. The service file in the second $.post is not being entered at all. In other words, if the first line of my service file is print 'hello'; I never see it...even if I add a console.log in the $.post for the response. I have seen this issue in other pla...

Jquery Cycle + Jcarousel slideshow thumbs not loading?

I'm working on combining jquery cycle and jcarousel to make a slideshow. It works great in Firefox, Chrome, and Safari, yet in IE the thumbnails are not loading. I'm guessing it has something to do with how the images in the pager are generated and then jcarousel just isnt proccessing that in IE but I 'm not sure. I feel like I'm very c...

Did I do this properly? .each() & .click() jquery

Am I doing something wrong? Or is there a better way to do this? This is the code I have: //Create as many li's as needed for(var t = 1; t <= pageLimit; t++) { if (t <= 9) { $('ul.thumb-list').append('<li><p>PAGE ' + t + '</p><img id="' + t + '" src="../jpeg/thumbnails/0' + t + '.jpg" /></li>'); } else if (...

How to apply multiple events to the same function

I'm not the best at this jquery stuff. But I'm trying to seperate the action from the function so I can apply multiple events that cause the same function. Unfortunately this isn't working. Anyone know why? Updated Function, but still errors $(document).ready(function() { var $info_items = jQuery('.checkbox.has_info, .has_info'); $in...

check text area for certain character combinations

I have a text area which gets filled in various ways including paste, keyboard input, from an autocomplete etc. Now I want to validate this text area and if contains any combination, including multiples of some characters and if so, set it to empty. The characters I want to filter are: tabs, new lines, spaces, carriage returns, as wel...

jquery mousewheel: detecting when the wheel stops?

Hi there! I'm using Jquery mousewheel plugin and I would like like to be able to detect when the user has finished using the wheel. Similar functionality as the stop: event in the draggable stuff. Can somebody point me to the right direction? ...

jquery parent descendant selector

Why is 1 faster than 2? $('#p1').find('span'); $('#p1 span'); ...

Event not firing within a function when using jqGrid and jQuery

I'm new to javascript, jQuery and jqGrid, so this is probably a pretty basic question. Why does the event fire correctly here, triggering the alert: $("#list").jqGrid({loadComplete: alert('load complete') }); but not here when the alert is inside a function? $("#list").jqGrid({loadComplete: ...

Get url from previous h2 a element using jQuery

Hi, Using jQuery, while in the span element, without knowing post-383 id and class, how can I retrieve the url within the h2 a element? The html code: <div id="post-1383" class="post-1383> <h2 class="entry-title"> <a href="http://example.com/soul-music/"&gt;Soul Music</a> </h2> <span class="btn"></span> </div> Something like this? $...