I'm trying to stringify a multi-array variable into a JSON string in Javascript. The
//i'm using functions from http://www.json.org/json2.js
var info = new Array(max);
for (var i=0; i<max; i++) {
var coordinate = [25 , 32];
info[i] = coordinate;
}
var result = JSON.stringify(info);
But result doesn't look like a JSON string at a...
Hi,
i have following problem. I have a parent site withs forms. And i have links which open a popup via open.window.
I want to reload the parent site with opener.location.reload(); in the Jquery .unload event. This works fine till the user submits the form on the parent site and then closes the popup. I get the usual "This page cannot...
hi.
I've seen on StackOverflow and googling around that the most used way to get the selected text from a <SELECT> element with jquery is like this
$("#cboId :selected").text()
what I have is not the id, but an object. I have an object, say
var myCombo= $("#cboId");
coming from an earlier piece of code.
I've done like this to get ...
I have an application that opens a new window on clicking a button.
There are many buttons to open multiple windows if the windows don't already exist.
All the buttons and url are dynamic, therefore, I use a function to open window with the following codes:
function openwin(url, winname)
{
var winRef = window[winname];
if(...
I've spent the last four hours trying to figure out why my jQuery events are firing multiple times for something that can only happen once. Basically, I have an ad banner that will be rotating images with jQuery. I'm waiting until the page loads to load all the images except for the one that is shown by default:
$("#mainadslot").prepend...
I'm faced with a problem with a small web application I'm developping: My HTML-source will be integrated into the HTML source on another site. I'm using a Google Map in my code, so I have to pass a API-Key for loading the Google Maps-script on the current domain.
The problem: My code will be integrated on two different domains, requirin...
I am trying to currently embed a media player into certain web content and seem to be having strange problems in IE (all versions tested so far 6->8).
Here is a page with the player embedded in it. You can view it in FF or a webkit browser and it should work fine. In IE the flash part of it fails to load without error. (It errors when y...
Hi,
I have an iframe in my HTML, and I want to be notified when it's fully loaded. I have this testcase:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test</title>
<script language="javascript" type...
Hi,
I have an HTML page which has a flash chart(FusionCharts) and HTML table. I need to convert this whole thing into Excel. HTML table should be displayed in cells of excel sheet. Flash chart can be displayed as an image.
Is there any open source API that we could use for achieving this. Could you let me know what are the possible opt...
Hi,
In GMail, the mails are listed. When we we have lots of mails (ex:50), we can select and go to next page, select some more mail, and come back to page 1. But whatever mails the user checked will still be checked.
I just want to implement the same operation. How would I do that?
Thanks,
Krish
Note: I don't want to use AJAX. I'...
HI ,
<script language="javascript" type="text/javascript">
var scrt_var = 10;
</script>
< html >
this is a <a href ="2.html & Key= scrt_var">Link </a>
</htm>
I just want to sent the javascript variable to link ( url parameter )
NO AJAXs
Thanks ,
Chellappa
...
I am using
var txtname=document.getElementById('<%=txtname.ClientID%>').value;
if (txtName == "") ....
but in FF this is not working. This condition never become true. Even if it has no value.
In IE and Chrome its working fine.
Can anyone let me know how to solve this.....
...
Hi,
I am going to start a new application which mainly consist NavigationPane, Grid, Toolbar. Layout should look like this demo page http://www.gwt-ext.com/demo/
I am quite confused which one to use in terms of writing less code, more performant, etc..
Could someone tell the pros and cons of all these technologies.
All the while I cod...
jQuery plugins are great, except this is about a billion or so of them1, and most of them however will fade into the background noise of the rest. What are those plugins that are so useful that they should be incorporated into jQuery or jQueryUI (if it's a UI/effect type) or included in a jQuery bundle?
1- billion is just a rough estima...
I was wondering if anyone had put together something or had seen something equivalent to the JavaScript parseInt for C#.
Specifically, i'm looking to take a string like:
123abc4567890
and return only the first valid integer
123
I have a static method I've used that will return only the numbers:
public static int ParseInteger( obj...
Hi folks,
I have a web page with embedded PDF on it. My code looks like this:
<embed
type="application/pdf"
src="path_to_pdf_document.pdf"
id="pdfDocument"
width="100%"
height="100%">
</embed>
I have this javascript code for print my PDF:
function printDocument(documentId) {
//Wait until PDF is ready to prin...
First off, this isn't exactly the ideal way of setting up a page, however there's a need to distribute a script as 1 file.
I have a php script at the top of an otherwise xhtml document with javascript, and under certain conditions use XHR to send a query string to the page itself. The php at the top then activates, and stores the passe...
My task is to take screenshots of a set of webpages for legal purposes. I'm currently accomplishing this by using Webshot and running through its batch operation using a list of URLs I compiled myself. I also have to take screenshots of a rotating Flash banner which is done by using IECapt and its delay function.
Each page has a series ...
Hi,
How to access Javascript Gobal Variable into CGI Program
Thanks ,
Chells
...
I am using GWT, which includes a Java-to-JavaScript compiler. Before this project, targeting the JavaScript runtime from a different language hadn't occurred to me, and I'm enjoying the GWT experience.
A quick search revealed Java2Script as another Java-to-JavaScript solution. Are there any other mature compilers that target the JavaS...