Hi,
I'm new to JQuery, so this is probably a very dumb question.
I've used JQuery to make the elements in a table draggable. I asked a question about how to make it faster, and the best response I had so far was to disable droppable for all the cells, and only enable them when something is being dragged.
Actually, for me, this makes ...
I've been looking for an example of a 1.1 web service getting called using jQuery. I'd like to call a web service and pass a few parameters to it.
Can someone point me in the right direction?
Thanks!
...
I am appending p tags to a div as I process a json request and would liek to style it according to what is in the request.
$(document).ready(function() {
function populatePage() {
var numberOfEntries = 0;
var total = 0;
var retrieveVal = "http://www.reddit.com/" + $("#addressBox").val() + ".json";
$("...
I have a very basic CSV file upload module working to bulk upload my user's data into my site. I process the CSV file in the backend with a python script that runs on crontab and then email the user the results of the bulk upload. This process works ok operationally, but my issue is with the format of the csv file.
Are there good to...
I am using a jquery click function:
Button code:
<input type="button" id="myButtton">
Jquery code:
$(document).ready(function(){
$("#myButtton").click(function(){
alert("Mybutton");
});
This code works in Internet Explorer but does not work in Firefox.
What am I doing wrong?
...
I need to implement an expanding/collapsing box in jQuery UI. When collapsed, only the box header would show. When expanded, the header+contents would show.
What I need to do is very close to jQuery UI one-element accordion with alwaysOpen=false (the same property is called "collapsible" in document, but in practice with jQuery 1.3.2 an...
I'm having trouble getting this div to automatically update using jquery - it's essentially a "chat" feature that would have the page refresh every 2 seconds.
Here's the problematic jquery code - I've tried several variances of this with no luck, so completely rewriting it differently is more than welcomed.
function updateChat() {
...
I have a dropdown that triggers an ajax call when its changed:
$('.travel-to').change(function(){
$.ajax({
type: "GET",
url: "/inc/rates/rates-viewer.php",
data: "shtech=y&c_name="+escape($(this).val()),
success: function(html){
$(".rates-viewer").html(html);
$(".rates-viewer tr.numbers td").css({ opacity: 0 }).fadeTo("...
I have an unordered list of items, something like this, shortened for brevity:
<div id="elementsContainer">
<ul>
<li><a>One</a></li>
<li><a>Two</a></li>
</ul>
</div>
I have the list styled up, but these 3 styles deal with background images for the list items:
#elementsContainer ul li {
list-style:none;
}
#elementsCont...
I have an ASP.NET application that is fairly basic. It queries some data and displays the data in a GridView (0 - 2000 or so records possible). I've been trying to find some ways to make it zippier, best practices, etc. as it seems to be a little sluggish while the GridView is being rendered. I've seen some threads on utilizing CSS vs...
I'm trying to build a simple multi-level UL Horizontal Accordion (or slide menu) in Jquery. Hunter Daley graciously provided the Jquery code, but I can't seem to figure out the css. I know this is newb, but I'm really stuck.
When Ul li Ul slides out it creates a linebreak, I'd like to have everything display inline, with no breaks. I...
I have an on my MVC View page. I use JQuery to filter a grid when the selected index changes.
At the bottom of the page I have an action link that. I would like to post this value to the controller that the action link is pointing to.
The problem is, obviously the value of the box can change.
How could I post dynamically changing d...
Why is the callback function receiving a XMLHttpRequest object instead of a JSON object?
<%@ Page language='C#' %>
<%
if (Request.RequestType == "POST") {
System.Threading.Thread.Sleep(1000);
int c;
if (Session["c"] == null)
c = 1;
else
c = (int)Session["c"] + 1;
Session["c"] = c;
...
I want to use jQuery in an add on JS library that can be added to random websites. These websites may or may not use jQuery already.
I have 3 questions around this actually:
I will probably load jQuery dynamically from my own js script (not from a script tag in the document head). Will jquery work this way? how can I make sure it will...
You can do this with JavaScript:
function bar(test) {
alert(test);
}
var foo = bar;
foo('hi');
I'd like to be able to do something similar with a jQuery event:
var foo = $('#bork').click;
foo(function() { alert('I was just clicked.'); });
However, I get an error when the page loads: this.bind is not a function. Am I doing somet...
Hello everyone,
I haven't found a good reference for declaring my own functions inside the jquery.ready(function(){});
I want to declare them so they are inside the same scope of the ready closure. I don't want to clutter the global js namespace so I don't want them declared outside of the ready closure because they will be specific t...
I'm trying to open an accordion div from an external link. I see the "navigation: true" option but I'm not sure how to implement it. Do you give each div an id and call the link like this? http://domain.com/link#anchorid
I'm new to jQuery so bear with me. Here is the code I'm using if it helps.
<script type="text/javascript">
$(fu...
I've been working on this for a few days, and have made some (though very little) progress in getting my scripts to work in IE.
FF & Chrome are flawless. Both IE7&8 completely shut-down when running my script.
The only error I get is when I first load-up the page, and i get a warning that their is an error in the main jquery.min.js pa...
I'm trying to write a plugin that will add a few methods to a jQuery wrapper object. Basically, I want to initialize it like this:
var smart = $('img:first').smartImage();
The 'smartImage' plugin would attach 2 methods to the object referenced by 'smart', so I'll be able to do something like:
smart.saveState();
// do work
smart.load...
I have a form on my page and am dynamically adding controls to the form with Javascript/JQuery. At some point I need to get all the values in the form on the client side as a collection or a query string. I don't want to submit the form because I want to pass the form values along with other information that I have on the client to a b...