FAQ Database Discussion Community


Retrieving Microsoft Live calendar events between 2 dates

rest,calendar,microsoft,live
I'm currently working on requesting a list of events between 2 dates via Microsoft Live's REST API. I am able to pull back a list of events through the following request URL: https://apis.live.net/v5.0/me/events However, this returns a list of events that does not have any specific date frame. For example,...

Highcharts multiple charts, each with live data

javascript,jquery,highcharts,live
I have the following files: rsrp.txt, sinr.txt, rssi.txt each of them containg information like this: [1433289760000,-83.5] I want to use multiple charts on the same page. I tried to use the sample script from the Highcharts page: var chart; // global /** * Request data from the server, add it...

How to alter dynamic/live element attributes - (replaceWith()) used

jquery,dynamic,replace,live
I am having a hard time wrapping my head around how to access and alter attributes of HTML content added in place of a placeholder element using replaceWith. Here is the scenario: Here is the HTML (kept in a php file) that replaces the '#null_item' element in the subsequent HTML...

Checking for input live/with key strokes in HTML input field with jQuery

jquery,html,forms,field,live
I need to find a way to hide the span with the ID 'forgot' as soon as the field has any input. The only time the 'forgot' span should be visible is when the field is empty. <form> <input type="text" name="username" placeholder="Username or E-mail" autofocus><br> <input type="password" name="password" id='pass' placeholder="Password"><br>...

jquery on click doesnt work on ajax generated content

jquery,ajax,click,live
I'm using jQuery("#content").on('click', 'a', function() {}); to add an Amazon Affiliate tag to my content. My content is generated by an ajax call. The click is being caught by my script; but the link is not modified. jQuery(document).ready(function() { jQuery("#content").on('click', 'a', function() { addAffiliate(this); }); amazonFRTag = "tag=XXXXXXX-21"; function addAffiliate(link)...

calculate distance live and order asc|desc

sql,order,distance,live
So when i start the web app, the server gets the user geolocation and save it as variable (latitude/longitude) I've got a database with: ID, Name, Latitude, Longitude Now i want to select all entries from the database and order them by distance I know how to calculate the distance...

How do I change the icon of a button in livecode, using code and not the inspector tool?

button,live,livecode
I want to have a button change appearance when certain events occur. I thought the code would look something like this: on mouseUp set the icon of this button to the id 1044 end mouseUp The icon of the button is its normal appearance and in inspector when you put...

Attach AngularJS directives to live content from jQuery.html()

jquery,html,angularjs,angularjs-directive,live
I've run into an issue where I've much to my dismay had to use update a view via jQueries .html function, so effectively looks like $('#directory-view').html( response.html ); This adds items to a table, the markup is as follows <tr data-marked="0" id="file-49" data-id="49" data-folder="0" data-readonly="0"> <td width="30"> <span class="action file"></span>...

limiting the number of time .live() function become active in javascript

javascript,live
I have a javascript that has a live function as: $('.myid').live('click', function () { $.jGrowl("<strong style='color: yellow;'>Hello</strong><p>The message is so and so</p>", {'life': 5000}); }) now whenever I click its related link having class as "myid" a Box pops up and shows the message. Now the problem is if the...

Pouchdb - tweaking live replication

replication,live,pouchdb
Using live replication, there is a GET request every 25 secs aprox asking for changes. is there a way to set this interval to a larger interval? This could be useful considering some hosting services charge per transaction and they consider options as heavy (cloudant). ...

I want my JavaScript on my php/html website to update live and instantaneously

javascript,php,html,live,instant
This might sound a bit dumb, but how did they get the slider : http://demosthenes.info/blog/757/Playing-With-The-HTML5-range-Slider-Input#volume That number (%) updates instantaneously to the movement of your mouse when you slide the dot. I was wondering for my own 'learning purposes' how that is possible since with the same code that they...