but how would I get the first date displayed in the calendar? For instance, the first date displayed in January 2013 is Sunday Dec 30, 2012. Once I have the first date I assume I can iterate through and create the td's I need in the new table assigning td ID's = to each date.
Hi all. I have a slider with a range of 1 to 10. I only want to allow selections on 1,2,3,5,7,10. How can I disable steps at 4, 6, 8, and 9? Originally, I was only allowing 1, 3, 5, 7, 10. I was able to accomplish that by setting the step to 2 and then if the user selected 9, I would change the value to 10. But now that I have values on either side of 4 and 6, I don't know what the user is intending. Any ideas? Thanks.
Hi all - I'm pulling my hair out with something pretty simple here. I get an undefined error on my alert. I figure data.paid is not correct but I'm not sure how to alter it. BTW, the json is created via classic asp.
my ajax returns the following json:
[
{
"paid": "1",
"amount": "$100.00",
"date": "2/5/2010"
}
]
var source="vb/PaymentSearch.asp?Dir="+dir+"&vendor="+vendor+"&invoice="+invoice;
I am using the jquery autocomplete plugin with great success with one exception. When my json returns an escaped apostrophe, the autocomplete acts as if it didn't find any matches.
My json returns the following where the last entry includes the escaped apsotrophe:
[ {"value":"13046-MORAN ENVIRONMENTAL RECOVERY","id":"13046"}, {"value":"13067-MORGAN GICK MCBEATH & ASSOCIAT","id":"13067"}, {"value":"13017-MORGAN SERVICES, INC.","id":"13017"}, {"value":"13007-MORGAN STANLEY MORTGAGE CAPITL","id":"13007"}, {"value":"13037-MORIN\'S LANDSCAPING INC.","id":"13037"} ]
my sql stmt is:
"SELECT [Vendor] & '-' & [Name] as [value], Vendor as [id] FROM Vendors WHERE (Directory=" & Dir & " AND Name like '" & term & "%') ORDER BY Name;"
I am trying to accomplish the following: If a user selects from the first set of radio inputs and the class=benabled, then the second set of radio inputs is enabled but if the class is "bdisabled" then they are disabled. Seems pretty simple, right? The following code works fine in Chrome but will not enable the second set in IE.
Can anyone please set me straight? Thanks.
PS - I'm using .live because the working application loads the radio inputs as part of a page loaded via ajax.
This is something of a theoretical question as I am still in the planning stage. I am developing a home page where there are jquery features utilized. There is a cascading menu which can load any of approx 70 pages via ajax insertion into a "content" div on the main page. Assuming that each of the 70 pages has unique jquery (or javascript) functionality, how do I get the javascript to work on each page without putting the javascript functionality for all pages in the main page and using either .live() or .bind(). Given the number of pages involved, the code has to be disbursed throughout the site . . . .
I hope the question makes sense and I'm guessing may have been answered before. That said, it's several hours since I started searching for a solution and I am turning to you guys. Can anyone please steer me in the right direction?
Hi all, (sorry for the double post - didn't see the first one go through)
I'm new to jquery and have a couple of questions.
In the code below I have to return(false) in order for the #autocomplete input not to be updated by the value (rather than the label). It initially updates the label and then as the code continues to run it switches it back to the value. Am I doing something wrong?
More general ajax question - I'd like to send a second parameter that changes with changes made to the value of grpDir. I'm sending the second parameter but it only picks up this value when the page loads. How can I make this second parameter dynamic?
Code is below.
Thanks in advance for your help.
Directory<BR><div><br>
<input type="radio" id="grpDir" name="grpDir" value="1000"> A
<input type="radio" id="grpDir" name="grpDir" value="2000" checked> B
<input type="radio" id="grpDir" name="grpDir" value="5000"> C
<input type="radio" id="grpDir" name="grpDir" value="6000"> D
I'm new to jquery but am getting more comfortable as I go. I have a specific question on the ui autocomplete widget and, probably a general jquery/ajax question.
Here's what I'm trying to do: Use an input box to update a field with a label and a hidden field with a value. This works fine but as you can see in my code below, I need a return(false) because after #autocomplete is populated with the label, it then reverts back to the value without this call. This doesn't seem right to me but the return(false) takes care of the problem. Any insights?
Second question: I want the url I send to be dynamic using the value of grpDir. This value is read once the form is loaded. How do I make it update when the autocomplete actions take place?
Thanks in advance for your help. Excerpts of my code is below:
Directory<BR> <div><br> <input type="radio" id="grpDir" name="grpDir" value="1000"> A <input type="radio" id="grpDir" name="grpDir" value="2000" checked> B <input type="radio" id="grpDir" name="grpDir" value="5000"> C <input type="radio" id="grpDir" name="grpDir" value="6000"> D </div> <input id="autocomplete" size="30" /> <input id="vendorNo" />