I know how to hijack a link in jQuery, and I know how to find an element's parent, but I can't seem to combine the two. I have multiple divs, each of which contains a link. I want to hijack the link and update the parent div's content.
<div class="container-1">
<a href="/foo.html">Add content</a>
</div>
<div class="container-2">
...
I am doing an AJAX call that returns some HTML and jQuery:
<div id='selected'>Here is my Selection Text
<a id='trashSelected' href=\"javascript:void(0);\">Remove</a>
</div>
<script>
$('#trashSelected').live('click',function delete()
{
// remove the container
$('#selected').remove();
sub...
Some game developer sites are using Xbox Live for authenticating their users (example). Basically something similar to OpenID concept. I wonder is there any api I can use to put this xbox login to my site or it is only for Microsoft partners?
...
i have some images loaded viad load method, something like this:
<ul>
<li><img src="1" alt="" /></li>
<li><img src="2" alt="" /></li>
</ul>
on mouseover i want to append a div inside that <li> with a greater z-index than the img so that div comes "in front" of the image(like a bar with links for image editing).On mouseout i want...
Hi everyone,
I'm doing a theatrical performance, and I need a program that can read images from a folder and display them full screen on one of the computer's VGA outputs, in a predetermined order. All it needs to do is start with the first image, and when a key is pressed (space bar, right arrow), smoothly cross-fade to the next image....
I have become accustom to editing CSS live in the browser using FF dev toolbar. However I do miss Textmate and syntax highlighting. I'm looking for a plug-in for Textmate to edit CSS live while viewing in Firefox. I have tried other editors such as CSS Edit, Espresso, Coda but none live up to the power and flexibility of Textmate.
Idea...
Is the jQuery live method using setInterval to update the events?
Does this affect performance?
...
Hello,
I would like to get the list of XBOX friends for a certain gamercard (http://live.xbox.com/en-US/profile/Friends.aspx) and display it in a widget for my site.
I know that there are alot of iPhone apps that do just that, but I would like to do it on the web, without an iPhone.
Does anyone know of a PHP class to either login via ...
I've been trying to find a tool that will Sync between two remote computers securely and also run as a service so I don't have to stay logged in.
Windows Live sync seems to do the job although I've read it can't be run as a "service" reliably because it will occasionally log out of the service [http://www.dscoduc.com/post/2009/06/24/Don...
I am currently using the .load() function to load content into a container div dynamically. The content being loaded is table data which I'd like to zebra stripe. The zebra striping is easy on a static page, but I can't figure out how to zebra stripe the new content loaded into the container div.
Here's the code with which I'm trying ...
The following question is inspired by this blog entry at ajaxian.com and this comment by paul irish.
Here is a way to declare live event.
$("li a").live(...)
As per this blog entry, it is my understanding that live events are nothing but a catch all at the document level. Any event that bubbles all the way to the top are caught by l...
Hi!
I am currently dynamically adding content to the page with the help of Jquery. The content that is being added contains some input fields and I need to use some kind of form hint/helper plugin on those.
I have tried this one, but i have no idea how to set it up correctly: http://mucur.name/system/jquery%5Fexample/ whilst dealing wi...
Hi y'all....
got a question.....!!
i'm aware that if u r loading a div within a page with form elements using ajax, then u gotta use the live function to add events to those elements that were not in the dom tree....
and also i read in the jquery website that live function does not currently support focus, blur etc....
my question is...
What is the exact difference between live() and ready()?
Edit: found that die() is the opposite of live()
...
I asked a similar question earlier http://stackoverflow.com/questions/1610752/how-can-i-have-jquery-attach-behavior-to-an-element-after-inserting-it, but still have not found an answer. To keep things clear I am asking a new question with a different example.
Here is my code that doesn't work.
$(document).ready(function() {
$('form...
Hi,
So there are two constraints to my question:
I must use an external function call in my click event, and
I must use a live click event, rather binding a typical click event.
So my problem is that I'm trying to unbind a click event after it occurs, and then rebind it once the click event code is complete. I'm doing this to preve...
What , if any, alternatives are there to Flash, Silverlight, and Java applets for streaming live media?
...
Dears
I want to connect to an officelive webservice from my custom external ASP.NET Application and I found that it would be possible to use the Live ID Client SDK to authenticate Windows based to use Office Live webservices.
In fact, I tried to use the Live ID Client SDK in my webapplication but I ran into a threading problem while I ...
Hi all,
I have a peculiar issue that I'm suspecting may just be normal behavior, but I need people to confirm. I'm hooking up live click events to a number of <li> elements by using this code:
$('li', $list).live("click", rightItemSingleClickEvent);
Note here that I am using a blanket selector here to hook up the same live click eve...
I'm using an ajax function that builds fill the innerHTML of a span and then build the jquery function. The first time I call the jquery function it works fine, yet if I called the ajax function again the jquery click function is being called twice, and if i call it once more the jquery get called 3 times and so on. This the jquery metho...