Hi,
I have problem in adding autocomplete plugin to multiple text inputs in loop (no errors are returned).
// get text inputs to attach autocomplete
var locinputs = $('#localizations').find('input:text');
// iterate over elements and add autocomplete plugin
for (var i = 0; i < locinputs.length; i++) {
// asp.mvc...
I want to execute an ajax call as soon as a document is loaded. What I am doing is loading a string that contains data that I will use for an autocomplete feature. This is what I have done, but it is not calling the servlet.
I have removed the calls to the various JS scripts to make it clearer. I have done several similar AJAX calls in...
Hi all,
jQuery newbie here. I need to be able to set multiple cookies within the code without have to change out this variable each and every time. Is there any way to make this code generate unique cookies for different pages? As it is now, I'm having to rename that variable for each page that the jQuery animations exist on. (sbbcooki...
How do I send a javascript variable to a subsequent jquery function?
Here is my code.
<script type="text/javascript">
$(function() {
var name = $("#name"),
email = $("#email"),
password = $("#password"),
itemid = $("#itemid"),
tips = $(".validateTips");
function updateTips(t) {
tips
...
I have searched the stackoverflow site to find if someone has recommended any good books that show how jQuery can be used with asp.net. All the threads lead to only good jQuery books.
Can anyone recommend me a good book that shows how to use jquery with asp.net? Any upcoming books are also ok
...
I'm a bit confused, how can I create public and private members.
My code template so far is like:
(function()){
var _blah = 1;
someFunction = function() {
alert(_blah);
};
someOtherFunction = function() {
someFunction();
}
}();
...
Hi,
there are several list filters in jquery (quicksand, filterprojects, etc.), but I am looking to filter divs by class.
I want the same functionality of the above - you select a menu item attached to a class and the other items fade out.
Anyone seen anything like this anywhere?
...
Hi Folks,
When you click the "Click an element on the page to inspect" arrow with FireBug, it puts a Blue Border around the target element, and also returns the DOM Id.
I am building an application and that feature would be awesome to add. Be able to hover over elements and highlight the target, upon clicking return the DOM Id or CSS ...
This is related to the question I asked at http://stackoverflow.com/questions/2802948/how-to-make-an-ajax-call-immediately-on-document-loading
I am trying to get a String delimited by | characters from the server to use as input for jQuery's .autocomplete() plugin. If I have a local variable declared in the code then it works fine, but ...
The code below displays a google map and search results when you enter an address and hit the submit button. I've been playing with it to try
and force the page to completely refresh or reload once you hit the submit button. But I can't get it to work right. It loads the results "in page," but I'd like the page to completely refresh w...
I want to record time spent on webpages. Is there an appropriate JQuery plugin written for this? I could then record the value of the timer in a variable and insert to a database.
JJH
...
Hey guys quick question, I have an add remove script that will add a unique element and should remove it on a click function but does not. I think it is because the added object is not in the DOM when page is loaded but I am not sure how to fix this. IF anyone has any advice I would greatly appreciate it.
$(document).ready(function(...
I have an asp.net page where two grid views are available showing current stock market price updates. I need to update these two grid views every 20 seconds. So I was thinking of using JQuery to do this job.
What I need is a timer which will fire every 20 seconds, send an ajax request to the servers, bring the order lists from the serve...
If user select an option from dropdown it will shown it a textbox but if he select option having value "Other" then a row will appear to type value for other.
my code works fine except when option value is not equal to "Other"
<script type="text/javascript"><!--
function setAndReset(box) {
if(box.value == 'Other'){
$("#ShowHide").h...
2 part question here...I have several DIVs that use a simple .click show() function to display content. Is there a way i can combine these to trim my code? I wasnt sure, because they all are displaying DIV with Unique ID's.
$('a#hmo-blue-lnk1').click(function() {
$('#hmo-blue1').show();
return false;
});
$('a#hmo-blue-lnk2'...
Before we continue: It can't be a predefined list.
I need it sort of like this: http://loopj.com/tokeninput/demo.html ... A jQuery plugin that allows the user to type a string of words, press enter, and it makes it a block of text, from there they can press the X to get rid of it, or type more key words into the input area. I've found m...
Prior to submitting a form, I would like to check if a file has been attached and pop up a warning message saying that a file needs to be attached if it hasn't been. I was wondering how to accomplish this using JavaScript or Prototype or JQuery etc?
...
This works:
$('.overdue').addClass('alert');
But this doesn't:
$('.overdue').alert('Your book is overdue.');
What is the correct jQuery syntax for:
FOR EACH CLASS="overdue"
alert('Your book is overdue');
NEXT
...
For certain pages(functionalities) of the site, i need different permissions. I am requesting those permissions only if (and when) user is accessing those parts of the site.
The normal flow is to display a 'Please allow us to send you emails' link using something like:
<fb:prompt-permission perms="email"">
Please allow us to send ...
Hey y'all.
Is this possible using jQuery/PHP? I am looking to have my webpage automatically go to a different web page at a certain time of day. For example, i have a 'breakfast' page that is supposed to auto-redirect to the 'Lunch' (www.mylunchpage.com) page at noon. Then the lunch page go to 'Dinner' (www.mydinnerpage.com) page at ...