I am doing a little app with JQuery, using drag-n-drop for the interface. Basically, the user grabs events (JQuery objects) and drops them on a calendar.
I want to be able to prompt the user for time input when the event is dropped, but the "Drop" event is my last hook to do work on the event object that was just dropped. So I can have...
I'm adding a Facebook 'like' button to the DOM using this jQuery plugin: http://onerutter.com/open-source/jquery-facebook-like-plugin.html
It works fine in all browsers except Firefox. The way it works is that when a certain link is clicked, some data is loaded including the URL for the 'Like' button to use, so a new Like button is gene...
What is the appropriate method to get the already-initialized javascript to interact with content loaded using jQuery's load() method?
Example: You have a table with an onclick event for each row, then append() a new row to the table, suddenly the onclick() event does not fire.
Hopefully it is possible to do this without manually re-in...
I have the following script which works perfectly until I regenerate the links ".resultLink" via jquery ajax:
$("a.resultLink").live('click', function()
{
var that = this;
$.ajax({
url: 'most_used.aspx',
type: 'POST',
data: { strMostUsedID:$(that).attr("href") },
error: function() { },
su...
Greetings,
By using the regular selector, I am able to select the grand parent of an input text field (which is a element actually), and via .next() I selected the next row.
var nextOne = $(this).parent().parent().next();
From this next ro, I want to select the an input text field which is a ".foo", which is a grandchild of this row...
Hi, I am having a problem appending list items from one ul to another. When each list item is clicked, it is supposed to be appended into another ul. However once those items are appended, they will continue to append themselves into their current ul....meaning they will sort themselves to the bottom of the list. For example:
<ul cla...
I'm trying to implement a continuous status update feature similar to these sites with ASP.NET MVC + jQuery
http://foursquare.com/
http://hotpotato.com/
Does anyone know where I can find some tutorials/samples?
Cheers
...
Hi guys, have abit of a problem with Jquery UI dialog. I set it to modal:true, and so when i initialize the dialog, i do see the grey overlay. However, the dialog itself simply does not appear. This is the strange part (perhaps): when I put settings to autoOpen: true, the dialog appears fine, it simply does not appear again when i click....
I tried to integrate this javascript mvc sample http://www.alexatnet.com/content/model-view-controller-mvc-javascript into an asp.net page, I'm complete beginner at jquery and nothing shows up, why ?
Update: I have added missing html listbox but now no javascript seems to execute to initialize the listbox nor the buttons seem to work
<...
i'm using JQuery-ui dialog;
i'd like to perform my custom actions when user clicks on dialog's close button [X], but i'd like to prevent the closing event too!
i tried this code without success:
$( ".selector" ).dialog({
close: function(event, ui) {
event.preventDefault();
//mycode
}
...
We are using jqGrid searching.. how can you determine if a user has clicked Search, Reset, or has closed the search window?
There is an onClose event but it doesn't seem to have any parameters that indicate the action.
??
...
I have a site that will be used mostly on mobile devices, the top nav are tabs but right now they are hard coded instead of using Javascript. We are taking into consideration all mobile devices that will not have javascript.
So, is there a way to gracefully degrade javascript Tab functionality to then to to the right html page?
...
Hi all, I'm looking for a tool that allows a non-tech person the ability to edit hard coded content in XHTML. For instance, Pagelime merged with jEditable.
The site is currently static, and I'd basically like to allow one person to log in, click on elements, change the content (P, H1-6, etc), then click enter and write that content dire...
I have a site that has a div with content and a navbar (looks like three tabs) in it. I have JQuery on the page as well. This is what the JQuery is doing...when you click on one of the tabs, it should fade out the whole div, change the content of the div to correspond with tab that was selected (this is done through an ajax hit to the ...
New to Javscript and jQuery, so I assume this is a pretty simple question.
I have a date I want to split into a string, then print out the array.
var date = "12/10/2010";
var dateArray = date.split(/);
$('#printbox').html($(dateArray[0]));
<span id="printbox"></span>
Edit: The question is, how can I split "12/10/2010" into an arr...
I like how you can use the Apple remote in front row and i know other apps on the mac support it. I am wondering if Web Apps could support it via Javascript? I had a idea for a tv type interface. I would have it understand the Apple remote and also understand up down left right enter back. I know from working on a slideshow app before th...
I am building a splash page for a website with jquery animations.
My problem is: sometimes (before the page and images are cached by the browser) the images load in an order which detracts from the quality of the animation.
Ok, heres what I did:
the container div has the following css: background:url(images/colorcity.png)
if js is e...
Hello.
I have made this sandbox test:
<html>
<head>
<title>whatever</title>
<script type="text/javascript">
function myLittleTest() {
var obj, arr, armap;
arr = [1, 2, 3, 5, 7, 11];
obj = {};
obj = arr;
alert (typeof arr);
...
Hello, I'm using this plugin:
http://jqueryui.com/demos/autocomplete/#remote
Works great but I would like to use the request URL like this: "www.mysite.com/search/my search input" and not like this: "www.mysite.com/?term=my search input" because I use codeigniter and that's how I work with URLs. So I will need to append the search input...
i have the following html:
<span class="addEventHidden"><img src="/Content/Images/add.gif"></span>
<br>
<div class="event">My Event</div>
<div class="event">My Event 2</div>
<div class="event">My Event 3</div>
<div class="event">My Event 4</div>
i then have the following event handler when i click on any "event" div:
$('.eve...