Questions tagged [live]
.live() function in jQuery attaches an event handler for all elements which match the current selector, now and in the future. It was deprecated in jQuery 1.7 and removed in jQuery 1.9.
1,591
questions
296
votes
10
answers
391k
views
jQuery 1.9 .live() is not a function
I recently updated jQuery from 1.8 to 2.1. I suddenly discovered that the .live() stops working.
I get the error TypeError: $(...).live is not a function.
Is there any method I can use in place of ....
161
votes
7
answers
104k
views
jquery live hover
I'm using the following jquery code to show a contextual delete button only for table rows we are hovering with our mouse. This works but not for rows that have been added with js/ajax on the fly...
...
102
votes
4
answers
40k
views
Jquery live() vs delegate() [duplicate]
I've read some posts here and elsewhere on the web about the differences between live() and delegate(). However I haven't found the answer I'm looking for (if this is a dupe please tell me).
I know ...
80
votes
4
answers
100k
views
jquery click doesn't work on ajax generated content
I am using $(".button").on("click", function(){ });
to click to a button which is on a container but then an ajax call is done and the content
gets updated with new stuff and then when i try to ...
65
votes
10
answers
45k
views
What is the difference between the bind and live methods in jQuery?
I'm curious to know the differences between the bind and live functions.
To me they seem to be almost identical.
I read the benefits of live/bind methods, but it didn't tell me about the differences....
61
votes
11
answers
132k
views
jquery .live('click') vs .click()
I am wondering whether there are any circumstances where it would be better to use .click(function {...}); rather than .live('click', function {...});?
From what I gather the live option seems to be ...
51
votes
4
answers
35k
views
.live() vs .bind() [duplicate]
I want to know the main difference between
.live() vs. .bind()
methods in jQuery.
51
votes
4
answers
5k
views
jQuery: live() vs delegate()
I'm using jQuery in my web application. While reading its documentation I read about live() and delegate(). Although they have explained both methods, I don't understand the exact difference between ...
44
votes
7
answers
53k
views
Object has no method 'live' - jQuery
<script>
$(document).ready(function(){
$('.delete').live('click', function(e){
alert('delete');
e.preventDefault();
});
});
</script>
<a href='#' id='_1' class='...
41
votes
6
answers
128k
views
How to embed new Youtube's live video permanent URL?
I stream live on youtube a lot and since yesterday I experience a weird thing:
I embedded the livestream URL in my site. it was youtube.com/embed/ABCDE (normal embed link). That link used to show the ...
41
votes
3
answers
24k
views
Upload live streaming video from iPhone like Ustream or Qik
How to live stream videos from iPhone to server like Ustream or Qik? I know there's something called Http Live Streaming from Apple, but most resources I found only talks about streaming videos from ...
36
votes
6
answers
106k
views
Play RTSP streaming in an Android application
I am trying to develop an Android based application, which can play video from a live stream. This live stream is produced using Wowza Media Server.
The URL is:
rtsp://tv.hindiworldtv.com:1935/live/...
35
votes
21
answers
151k
views
Live search through table rows
I want to do a live search through the table rows, using jQuery, the "live" word is the key, because I want to type the keywords in the text input, on the same site and I'd like jQuery to ...
35
votes
1
answer
84k
views
Free JSON formatted stock quote API (live or historical) [closed]
I have an project where i implement live stock updates of various companies of all countries.
Can any one tell me where we can find "Free API" to fetch these details. I already search a lot on ...
31
votes
4
answers
68k
views
Jquery - Perform callback after append
I am appending content to a list using:
$('a.ui-icon-cart').click(function(){
$(this).closest('li').clone().appendTo('#cart ul');
});
I want to perform further functions to the appended ...
27
votes
1
answer
31k
views
Flutter live streaming
I am trying to build a mobile app which streams video from the camera of the device and sends it live to a server. Also, the mobile device should be able to play live video received from the server.
...
26
votes
2
answers
19k
views
jQuery .on() with multiple selectors in event delegation?
I have using .on() in jQuery 1.7 and wondered whether it is possible to attach multiple selectors at a time for elements that have been injected onto a page. Previously, I was using live() - but it's ...
24
votes
7
answers
49k
views
Get Live output from Process
I've a problem in my project. I would like to launch a process, 7z.exe (console version).
I've tried three different things:
Process.StandardOutput.ReadToEnd();
OutputDataReceived & ...
23
votes
3
answers
11k
views
jquery live event for added dom elements
I want to add a class to any DOM element that is on the page now or in the future that has a specified class and meets some criteria
so for some pseudo code
$('.location').live('load',function(){
...
21
votes
2
answers
8k
views
tipsy live does not work with jQuery 1.9.0
We recently upgraded our jQuery to 1.9.0, but it broke our tipsy plugin. Its live functionality now causes an error.
$('.tooltip, abbr').tipsy({
live: true
});
TypeError: this[binder] is not a ...
19
votes
7
answers
49k
views
jQuery event bubbling
I want to understand how exactly to interpret bubbling. Does it mean going up the HTML code hierarchy or something else?
Secondly, I was going through an example and I could not understand the last ...
19
votes
5
answers
136k
views
How to remove an appended element with Jquery and why bind or live is causing elements to repeat
Now I know this basic question has been asked before, but I must be doing something wrong. I know that an appended element must bound before I can do anything to it. However, try as I might I can't ...
17
votes
3
answers
29k
views
jQuery CSS() for dynamically created elements
I'm using jQuery CSS function to style some elements
$element.css(style);
This works, but a part of the elements are created dynamically after the page load.
This should be
$element.live ('created',...
17
votes
6
answers
15k
views
How to put a eclipse web project onto a real world server?
I have never placed anything on a web server.
i have a dynamic web project built in eclipse using servlets (using tomcat 7) that connects to a mysql database that is on a computer that is on my ...
17
votes
2
answers
35k
views
RTMP stream on iOS [closed]
I have to make an iOS app which plays a live video stream from a camera. I know that the iPhone only supports Live HTTP stream, but unfortunately it comes with a delay of about 6-10 seconds, which is ...
16
votes
2
answers
36k
views
Where can I find an API for the English Premier League? [closed]
I'm trying to build a "fantasy team" site but I can't seem to find an API for the English Premier Leauge. Is there one for free or do I have to pay to get that information?
Thanks!
/Niklas
Edit
My ...
15
votes
3
answers
9k
views
Live SDK - Try to Sign In without SignInButton
Is there any way to login to Live for an App (Silverlight, WP7 can) without having to click on SignIn button.
I want to log me dynamically, for example: when you start the app, I want to log in to me....
15
votes
3
answers
9k
views
How to use Microsoft Account in an openID site?
I am planning to build a site with openID authentication , most of my target users will register in the site using Microsoft accounts (hotmail/live/windowslive).
Is there anyway to use Microsoft ...
14
votes
3
answers
20k
views
Jquery: detect if middle or right mouse button is clicked, if so, do this:
Check out my jsfiddle demo, if e.which == 1 then when you left click the h2 it will
e.which == 2 or e.which == 3 then it wont work. 2 is the middle mouse button, and 3 is the right mouse button. i ...
14
votes
7
answers
27k
views
live server vscode on another computer
I have 2 computers. when I open the project with live server on the first one it gives me this url 127.0.0.1:5500/index.html
I want to put that url on the other computer's browser but it doesn't work.
...
14
votes
3
answers
56k
views
Raspberry Pi no delay (<10ms) video stream
I'm building quadcopter based on Raspberry Pi. I want to stream video from webcam via cellular conection to my computer. I tryed ffmpeg and mjpg but it has to big delay to make it possible to control ...
13
votes
1
answer
8k
views
How to do an action when an element is added to a page using Jquery?
When I add something of the class "myClass" I want to call a function on this element.
It would be something in the lines of:
jQuery(".error_message").live("load",function(){
alert("test"+this);
})...
13
votes
3
answers
3k
views
What is the Dojo equivalent to jQuery .live()?
What is the Dojo equivalent to jQuery .live()?
http://api.jquery.com/live/
The only solution I found was to dojo.disconnect the event handlers and re-connect them once a dynamic piece of markup was ...
13
votes
6
answers
15k
views
how to trigger Live() click in jquery
I have an interesting situation. I need to trigger a live click, because simple click doesn't work.
This is what I have:
$('.text').trigger('click');
but I need something like this:
$('.text')....
12
votes
2
answers
43k
views
Adding new HighChart Series
At this code javascrip give an error
$.each(JSON, function(i, array) {
chart.series[i].name = array.teamName;
chart.series[i].setData(array.teamPower, true);
});
I ...
12
votes
4
answers
31k
views
Sqlite plugin for Eclipse: debug sqlite database on Android device live
I want to debug database on android device. My application is very heavy and I do too much insertion queries and other stuff so running on emulator is hell slow so I am debugging it on Android phone.
...
11
votes
2
answers
24k
views
jQuery: how to capture keypress key using live()
I need to capture a tab keypress event on some dynamic inputs, but the normal syntax using the keypress event doesn't seem to be catching the key code.
$('input').live('keypress', function (e) {
...
11
votes
4
answers
9k
views
HTTP Live Streaming via AWS cloudfront
Like to know if anyone been able to stream HLS video via AWS Cloudfront with Signed URL.
My experience so far is, it is not possible. AWS documentation is not clear. AWS Forum is silent.
I seem to ...
11
votes
3
answers
13k
views
jQuery: Binding and Unbinding Live Click Events
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'...
11
votes
2
answers
3k
views
How LiveReload (and other similar apps) work technically?
There are some great web-development tools out there which make life of developers easy. Apps like LiveReload and CodeKit are the great examples.
All I'm interested about them is the way they make ...
11
votes
1
answer
3k
views
Leaderboard status "Not Live"
I've developed a game for the Apple appstore. It's already reviewed and accepted by apple (pending my release)
.. but
As I try to enter the leaderboard in my game, it says "Game Center Unavailable. ...
11
votes
1
answer
4k
views
Using FFMPEG and url_fopen example
I wonder how to get a stream from a URL (with url_fopen for example) (live video or PCM stream for example) and encode it into something?
Update:
This actually was a mall formated question. It was ...
11
votes
3
answers
26k
views
Live video streaming application on Android
I am trying to build a live video streaming application that streams live video from Android.
Using the MediaRecorder class, I am able to capture the video data in the form of 3gp, with h263 codecs.
...
10
votes
3
answers
24k
views
jQuery using Sortable with dynamically added elements (live refresh)
I have a <form id="#form"> that have a <span class="con"> and inside the span i have many divs that needs to be sortable.
<form id="form">
<span class="con">
<...
10
votes
1
answer
9k
views
Optimal SNAPLEN for PCAP live capture
When using pcap_open_live to sniff from an interface, I have seen a lot of examples using various numbers as SNAPLEN value, ranging from BUFSIZ (<stdio.h>) to "magic numbers".
Wouldn't it make ...
10
votes
3
answers
20k
views
Streaming audio and video with Python
I need to make an application which streams live multimedia. At present my application is taking image frames from a webcam (using OpenCV) and sending it to the client. It is also sending audio using ...
9
votes
6
answers
70k
views
TypeError: $(...).live is not a function
I have a problem with jquery 1.9.1 . I have searched it but these are not solved my problem.
$('.sm2_expander').live('click', function() {
$(this).parent().parent().toggleClass('sm2_liOpen')....
9
votes
3
answers
24k
views
Live Wallpaper Water Ripple Effect
I'm working on a live wallpaper that incorporates some water ripple effects on touching the screen but I'm a little stuck.
Would it be better to create multiple images and loop through them to create ...
9
votes
2
answers
4k
views
sailsjs live update during serverside editing
It's annoying to have to restart the sails server when you change something, is there any way to make sailsjs do what meteor does where when you save a serverside file it automatically updates the ...
9
votes
3
answers
20k
views
Alternative to jquery live that can work
I have this simple code. http://jsfiddle.net/borth/BmEZv/
If you click on the link once, it works fine. If you click on it a second time, it doesn't work. Due to the html being loaded into html after ...