jQuery is a very popular JavaScript framework nowadays. You can tell that based on number of jQuery tags on this site for example.
I haven't used any other JS frameworks and I would like to get your opinion on some of features you can think of that the library is missing.
What would you change in the project?
What would you add?
Are ...
Well, the title may not make any sense at all.. But anyway, I ma put some easy codes to clarify it.
I am using JQuery 1.3.2
Here is my JS
$(document).ready(function() {
$('#test').click(function() {
$('#result').html('<a href="#" id="hello">hello world</a>');
});
$('#hello').click(function() {
$('#result').html('<a href...
I'm trying to select a series of divs one at a time. I'm sure theres a better way to do this, but I gave them all unique rels and I'm using the rels to select them one at a time. I want to move them over the width of the div, then animate it dropping down the screen. What I have is:
$(document).ready(function(){
var totalbricks = 7...
Hi, I want to get a subset of a string in Javascript. Currently, I only know how to store the entire string:
I have this as a JSON variable with a callback to foo:
foo({"results":[
"<div id=\"following\"><span><a href=\"http://twitter.com/barackobama\">Obama</a></span></div>"
]})
And this is my callback function:...
Hey all,
Quick question: It's kind of tough to describe so let me just show an example.
Is there anyway to do this: (I'm using jQuery but this is a general javascript question)
$('div.element').offset().x;
$('div.element').offset() by itself will return {'x' : 30, 'y' : 180}, so I'm just wondering if there is any compact way of doing...
I'm trying to set up an Ajax callback using jQuery, and it's just not working. My Ruby code looks something like this:
return {:one => some_html, :two => more_html}.to_json
When it gets to the client jQuery bails saying "parse error". If I make it something really simple, like:
return {:one => 'Something', :two => 'Something else'}.t...
Consider the scenario where:
an ASP.NET webform page has a DropDownList and a ListView.
this DropDownList must set a cookie value on its OnSelectedIndexChanged event.
the DropDownList is also set to AutoPostBack="True" to force the ListView to reload using the DropDownList's new value.
the page is referencing current JQuery libraries, ...
I found the coolest slideshow type thing done with jquiry, when I copy all the files over to my computer to try to see how it works, I will not work.
It's just javascript, css, images, and html page
Why will it not work if it is not a serverside language?
example page
...
I am using a JQGrid in one of my ASP.NET projects where the grid shows a list of items that are sortable/filterable (That's all working fine)
The only problem im having with it is, one of the columns is a date field so I have the filter textbox using the date picker (using the below options)
{ name:'Due',
index:'Due',
width:100,
...
<input type="checkbox" name="filter" id="comedyclubs"/>
<label for="comedyclubs">Comedy Clubs</label>
If I have a check box with a label describing it, how can I select the label using jquery? Would it be easier to give the label tag an ID and select that using $(#labelId) ?
...
Hey there.
This may already have an answer here but I can't seem to find the right search string so..
I have, almost the same as the comments in SO, a page that has many instances of the same PartialView.
The partial view has a button in it that when pressed adds a comment associated to the product the PartialView represents.
I can e...
Hi,
In my application , i am having a code like
$(document).ready(function(){
$("#"+<?=$r['Attribute']['id'];?>).each(function() {
type= "<?=$r['Attribute']['type'];?>";
attribute_id= "<?=$r['Attribute']['id'];?>";
if(type=="dropdown")
{
var ht = $.ajax({
ty...
Hi,
I am currently working on a project where I have to create a custom calendar sort of application to display and manage appointments easily.
I need to be able to drag and reschedule appointments appropriately. jQuery-ui is pretty neat and I am able to achieve almost everything except that I require that no appointments (divs) may ov...
Hi All,,
I open a facebox where i take down the comments and in the server click of server button i have to send a mail but unfortunately the click event isnt firing.How do i do this..?
Kindly help me..I have seen that by changing the body to #aspnetform has helped somebody but when i do the same the facebox also doesnt get opened.
Is...
I'm trying to implement an autosave feature that submits several different forms on a page with the same name with TinyMCE'd textareas.
My code:
function autoSaveEditForms() {
$("#auto_save_notify").html("Saving...");
$("#auto_save_notify").show();
$("form[name=editForm]").each(function() {
if($('input[name="question"]', this).val(...
Hi
I know I'm just being OCD about a few milliseconds worth of performance time, but I was just wondering why the following is true for me. It seems goes against my logic.
I currently have a div that has fades out the image inside on hover:
$('div.someclass').hover(function() {
$(this).children('img').fadeOut(function(){
/...
I have multiple draggable elements and I don't want them to be dropped on top of each other. I'd want the dragged element to appear light green when dragged, but once it's over element with certain class, it would turn red. If it would be dropped it would revert to its original position.
Everything else is simple, but I would need an ev...
Hello,
The background is that I've got a celery distributed job server configured with a Django view that returns the status of a running job in JSON. The job server is located at celeryserver.mydomain.com and the page I'm executing the jQuery from is www.mydomain.com so I shouldn't need to consider JSONP for this should I, as the req...
Hi,
EDIT: I am also after advice if there is a better way to go about this??
I have a webpage that displays a timesheet for the user to fill out.
The timesheet is for a month so it has as many rows in the month
and also 5 columns of data, Normal hours, extended hours, shift hours
holidays hours and total.
I have a dropdown list that a...
Hi,
I am trying to create a facebook application, all is working fine except the ajax part that I am using to populate a second box from the item selected in first select box.
I am using jquery (v1.3.2) for accomplishing this. This ajax is working absolutely fine on the host where I have taken space for it, but it is not working in fac...