I am trying to develop a paint brush application thru processingjs.
This API has function loadPixels() that will load the RGB values in to the array.
Now i want to store the array in the server db.
The problem is the size of the array, when i convert to a string the size is 5 MB.
Is the best solution is to do compression at javascript ...
I am using an in house custom library to replicate jsonp calls. Before you guys ask me to use JQuery or other libraries, let me tell I cannot use it due to some constraints.
Below is the code used to make the request:
BurrpJsonAjaxRequest.prototype.send = function() {
this.script = document.createElement("script");
this.script....
What are some free (and not free) browser profiling tools?
I know of a few:
firebug profile / net panel
YSlow
google's version of yslow (forget the name)
dynaTrace Ajax (free)
Am i missing anything?
Thanks
...
I know There are other similar links here on stackoverflow, But my question is different, so please don't treat this as duplicate.
My page has no external resources and everything is being served from the same server using https, Firefox and chrome is not complaining it and only IE6 and IE7 are complaining. I used HTTPAnalyzer and Fiddl...
What?
I would like to be able to do a post request (does not have to be form data) to a new window without using the target attribute (XHTML validation).
Why?
I have a webapp (using jQuery) where the user selects a number of entries to print. Each entry id should be sent to a processing page that will display a printable version of the ...
I've got a click tracking AJAX function (calls a WebMethod on an .aspx page), and I need to call it when the user clicks through to a link.
Unfortunately, I'm using window.location = "newUrl" to change the page, which seems to make the AJAX call fail. Is there a way around this?
I do not need to get any information back from the AJAX c...
What does the following javascript do?
var groups = countrylist.split(',');
for( var i = -1, group; group = groupsCounty[++i]; ){
...
}
...
Hi,
I'm trying to set the webkitTransform style attribute, but it's not setting for some reason. But there are other attributes that are successfully being set to the div.
This doesn't work:
var cell = document.createElement("div");
var canvas = document.createElement("img");
cell.className = "baz";
cell.appendChild(canvas);
cell.st...
How do I toggle the visiblity of a
<script>
tag in the markup? Have the following javascript code in my master page:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.j...
Can someone help with a clear description on the cost of event listeners? My empirical evidence is in small docs vs large docs & event delegation improvements... but I was hoping for the concrete explanation of the process- and what about it is costly.
I assume the issue is just the sheer amount of functions attached to object propertie...
Hi,
I have a div that appears when you mouseover a certain image:
$('#link-test-img').mouseenter(function() {
$('#popup-test').css('display','block');
});
$('#link-test-img').mouseleave(function() {
$('#popup-test').css('display','none');
});
Surely mouseleave is only called to make the div not visible whe...
How would I get an xml document from a particular url in javascript then look up a particular sub node and get the value?
...
So I have working code that animates a BG image via a plugin. This is a general solution though where each element in the class has the same BG image; I'm using a sprite with a unique image for each column of my navigation bar. THe code is thusly:
$('#nav a')
.mouseover(function(){
$(this).stop().animate(
{backgroundPosition...
Hey All
We have a client requirement that has stumped me, embarrassingly enough.
The client has a set of links that need to open in a popup window - if you click on any of the links, it should reuse the same popup window. Easy enough, I thought, so I threw something like this together:
<html>
<head>
<title>Test</title>
<meta ...
I would like to use feature detection to tell whether the user's version of Firefox supports the CSS style value -moz-linear-gradient. (This was added in Gecko 1.9.2. Version 3.6 of Firefox uses this.)
I can't use document.body.style.mozLinearGradient (or something similar) because -moz-linear-gradient is not a style property but a styl...
I have a Flash movie embeded with swfobject in a html container.
Through ExternalInterface I have registered a javascript function to fire callback to my flash app.
ExternalInterface.addCallback("notifyClose", notifyOnClose );
The javascript function is added as an event listerner to fire onbeforeunload.
<script language="JavaScript"...
I have a BG image animation that relies on the hover callback to revert to it's original state. If I move the mouse quickly over the links, the hovered state sticks. My guess is that I'm moving the mouse off before the first animation completes, so the callback doesn't register.
Is there a more bulletproof way to write this function?
$...
I have a function called save(), this function gathers up all the inputs on the page, and performs an AJAX call to the server to save the state of the user's work.
save() is currently called when a user clicks the save button, or performs some other action which requires us to have the most current state on the server (generate a docume...
I've got a Facebook iFrame application happily up and running, but I'm realizing that I don't have a way to handle the scroll position of the parent frame because of cross-domain issues. If a user clicks too far down on the page, I can't pop them back up to the top.
Has anyone had an luck with either any of the Facebook JS libraries or...
I have mobile web app and want to use the JQuery Slider control.
http://docs.jquery.com/UI/Slider
However, to do so, it requires the entire JQuery core (29kb compressed & gzipped).
Is it possible to just use Sizzle (4kb) + the JQuery Slider (4kb) control to have a working slider without the need for JQuery core (29kb)?
(I'm trying to...