I'm implementing a message application using CouchDB. I want to apply timestamps to each message. I found some references indicating that I should use document update handlers for this. In place updates seem like the right thing. But where would I get a timestamp from? Is it in the req object somewhere?
{
updates: {
"in-place...
There's one thing I want to do with javascript, but don't know how. In a perfect world it would look like this:
<p>My very cool page!</p>
<script type="text/javascript">
document.write('<div>some content</div>');
</script>
And this script would insert <div>some content</div> right before (or after, or instead of) script tag. But i...
Hey,
I'm developing an blog using ASP.NET, and I want that the user can be able to add comments.
So I want to implement the idea of facebook on adding comments.
The comment will be stored in the database, so I will be able to load it with the page if the user goes to another web page.
You have any idea how can I do this thing ( Ajax...
So I'm trying to create a C# WCF REST service that is called by jQuery. I've discovered that jQuery requires that AJAX calls are made under the same origin policy. I have a few questions for how I might proceed.
I am already aware of;
1. The hacky solution of JSONP with a server callback
2. The way too much server overhead of having a ...
I am building a site which currently uses javascript from several sources:
Group 1: Google Maps API v3 (hosted by Google)
Group 2: jQuery & swfobject (hosted on Google CDN)
Group 3: Several jQuery plugins and non-jquery javascript files (hosted on my server)
I am using Justin Etheredge's tool SquishIt to combine and minify all the java...
I have been using a tidy little routine that I found here to calculate the difference in days between two dates in AS3. I am getting some strange results and I am wondering if any of you inter-codal-mega-lords can shed some light?
Why is Q1 of 2010 coming up one day short, when in all other cases the routine is performing fine?
Many th...
[Update]: Forgot to include ComponentArt...
Hi,
An interaction designer employed by the client I am currently working for produced some mock-ups, and now it is my job to determine the best way of implementing the charts included therein.
After looking at the options I am aware of and was able to find doing some simple Google searches,...
Chrome (or any other webkit browser) throws a ton of these "Unsafe JavaScript attempt to access frame with URL..." when working with the Facebook API for example.
It doesn't interfere with actual operation, but it does make the javascript console basically unusable.
I'd like to know if there is a way to suppress these errors specifical...
I am trying to loop a video and i am having some issues with this in flash. You can view the video here: http://www.healthcarepros.net/travel.html
Here the specific code for the flash video:
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent...
Hi,
Is there any flash or jQuery headlines slider with images similar to the one used in Gamespot ?
Thanks
...
I developed a C# web application that calls a web-service which returns a base64 encoded array (PDF file). I then convert that array into a UCOMIStream object (I know it is obsolete, but the DLL that I am using requires it as a parameter). I use the following code to do the conversion which works perfectly. I can pass this object to t...
At the JSON site it says
JSON does not support cyclic data
structures, so be careful to not give
cyclical structures to the JSON
stringifier.
What does it mean by this? Can someone give me an example of such a data structure in Javascript?
...
Hello everyone.
I'll cut right to the chase. Right now I am developing a web based application. It has a PHP REST based architecture that serves up XML documents. On many of these documents attributes are hex encoded picture strings.
On the client side jQuery AJAX fetches an XML document with a picture in it. I need to display said pic...
I have never worked on classic ASP and unfortunately i am supposed to modify an old classisc ASP web site.
ASP.Net ViewState does take care of maintaining control's sate automatically. How do i do it in classic ASP ?
I have two radio buttons and a text box placed on my ASP page, when user types in something in the text box based on ra...
How do I check if the user accepted a file download in JavaScript. Example: If the site pops up a download link, and the web browser asks the user to download the file, how do I determine on that page if the user accepted the download or not?
...
Hi there,
I have two items that I am floating right in my XHTML page. Unfortunately, when I try to get the offset of the right most item... it comes back as the position the element would be in if it were not floated.
<div id="Left style="float:right"></div>
<div id="right" style="float:right"></div>
Using Jquery
<sc...
I'm using graphviz to generate a client side imagemap, which generates both the image file and a text file containing the map HTML code. Is there anyway I can dynamically read this file and write this map information onto the HTML page when it loads?
...
Hello,
I am trying to grab a value from a url:
http://localhost:8080/bin/task_status?id=2&cmd=percent_done
I am unsure how to actually do this within a javascript (ajax) command that once the page has been loaded will be called every .5 seconds. It is using the AJAX built in progress bar to display.
...
I'm using localstorage to do gmail-style autosave on a webpage.
So I basically save every 30 seconds to local, OK.
The problem is recovery. I can't detect whether or not a user has crashed or incorrectly exited.
So let's say the user crashed and loads up the form again, I can't just continue saving and overwriting the previous autosa...
Hello,
Is it possible to get a youtube video to autoplay on Safari and/or UIWebView? I've seen this done in an iPhone app, the tableview displays cells that do not have Youtube preview icon (pretty sure it's a UIWebView Though), when you tap the cell it directly goes to video.
Could this be done by faking a tap on the youtube video? If...