javascript client side file generation
I want to implement dynamic, client side file generation in javascript. Is it possible? For example, a user pushes a button and the script suggests to download the generated file. ...
I want to implement dynamic, client side file generation in javascript. Is it possible? For example, a user pushes a button and the script suggests to download the generated file. ...
Hi, at the moment I'm trying to implement a method in which the server creates an XmlDocument object and sends it to the client (using AJAX) which then stores the object as a var. I wished to send that variable from the client back to the server but when the server receives it, it's no longer recognised as an XmlDocument object, instead...
I have cookies for the domain .forum.mywebsite.com and for .mywebsite.com. Is it possible to read the cookie for the .mywebsite.com domain with javascript from the forum.mywebsite.com location? ...
I have asp.net TextBox with ontextchanged event this is search text box in my application. I have search code in this event. how can I fire this event with the help of j query onkeyup. If i enter text in text box it will fire ontextchanged without press enter or mouse. This is an example of event what i need. But i dont know how to fi...
I'm writing myself a little game in JavaScript, using jQuery. The game has a board, with cells in it, much like Minesweeper: the user clicks a cell, and its data needs to be changed in some way. Each cell is presented by a simple image, but has some more data associated with it. What I mostly need is, when the user clicks a cell, I have...
I have the following textbox server control in my web page: <asp:TextBox ID="txtZip" runat="server" onchange="ZipCode_OnChange(this, <%= txtZip.ClientId %>, txtCity, txtState);/"> When the page renders, it is built including the following: <input name="txtZip" type="text" id="txtZip" onchange="ZipCode_OnChange(this, <%= txtZip.Cli...
I use php to display a table of data drawn from my mysql database. I have a while loop that loops through each row and spits out the user data. I want to have a more details button that when pressed will drop down a div box displaying "more details" about the user. The problem I've run into is when I create the div to hold the more det...
According to SitePoint (and my own experiments), the IE implementation of "setAttribute()" is buggy and unreliable. Also according to SitePoint, the name attribute is read-only. Is there another way I can set the name attributes on elements? I need this for use with radio buttons. If possible, I'd like a solution without jQuery, as I...
How do I parse URL parameters in JavaScript? (These are the parameters I would ordinarily call GET parameters or CGI parameters, but in this case the page is basically submitting to itself, not a server, so there is no GET request and definitely no CGI program.) I've seen a number of routines on the net that I can copy, but I have no i...
Hey, I'm developing under AIR using HTML + JavaScript. What I want to do is redirect the page ( something like window.location) using JS, to a local file (ex: login.html ). I've tried window.location but it gives me the following error: TypeError: Value app:/MYSCRIPT.html does not allow function calls. I've also tried something using...
Hello guys... I have a Masterpage like that : ... <head id="Head1" runat="server"> <asp:ContentPlaceHolder ID="HeadContent" runat="server" /> </head> ... And in my Aspx page : ... <asp:Content ID="HeadContentFromPage" ContentPlaceHolderID="HeadContent" runat="server"> <link rel="Stylesheet" type="text/css" href="uploadify.cs...
It's my understanding that all three of these lines below should return an ARRAY with 2 results in it. Yet RegExp will only return 1 result no matter how many times the regex repeats in the string. Can some one explain why? And perhaps suggest how I can get RegExp to give me global results? //INTPUT: console.log(new RegExp("New Yo...
I simply try to assign a background color to each div. it looks simple but it doesn't work. var divElements = $("div"); var colorArray =["444", "344", "345", "472", "837", "043", "345", "472", "837", "043"]; for (var i=0; i< divElements.length; i++){ divElements[i].css("background","#"+colorArray[i]) } I also tried to use jQuery's ea...
There are some JS functions that are IE specific. I am working on an application which has cross browser compatibility as a mandatory requirement. Before I use a JS function, I would like to know which browsers support it. Is there an online resource that can help me with this? ...
This is related to question "http://stackoverflow.com/questions/1360618/bookmarklet-behind-elements". I want to either self close the iframe after form submission or if not possible, add a close button with the iframe to close it. my bookmarklet at the moment is javascript:(function(){var iFrame=document.createElement('IFRAME');iFram...
I have a div that I want to apply a bounce effect to. It's class gives it some left padding to center it on the page. After examining what happens during the effect with Firebug, it seems that it adds an effect wrapper class and removes my original class. This causes the div to move from the center of the screen, to the left of the scre...
I have an AJAX-based website using JavaScript on the client. Certain operations on the site cache large result sets from service calls in the browser (i.e. hundreds of megabytes). These are throw-away results. They will be viewed for a short time and then need to be cleared from memory. I've written a small test site that loads a b...
Hi, I have a nested table arrangement for displaying data. I want the nested table to be in a TD that spans all the parent table columns. So I have colspan set. However I also want the user to be able to click on the parent to hide/unhide the child data. This works fine in IE8, but in FireFox and Chrome the nested table is ignoring the ...
Let's say I have three <div> elements on a page. How can I swap positions of the first and third <div>? jQuery is fine. ...
I am working on a site that has some jquery based animation, and I was wondering if there is any way to detect if the site is running in browser that is being run in a terminal services (remote desktop) session so I can disable the animation? I run through remote desktop quite often from remote locations and animations always annoy me, ...