I am working on a web visualization project and would like to use the JavaScript InfoVis Toolkit to create interactive graphs quickly in webpages. However, I have no idea how to start using it or even where to look for clues. The google group seems like it is mostly high level stuff, but I applied for membership and am waiting on a respo...
I am getting a javascript error on a page with this code.The error is "parentNode is null or not and object"
The error is in this line: theParent.parentNode.removeChild(theParent);
Is there some other code I can use to replace this or jquery that
will work instead?
var path = location.pathname;
if( path == "/SearchResults.asp"
||...
Hi everyone!
I am working on a project which is basically a Java application with an embedded IE browser (using JDIC 0.9.5) to display custom HTML files (stored locally that I created). I have a test HTML file with a JavaScript function that checks a simple form with checkboxes and alerts the user with a dialog stating which checkboxes ...
Using JavaScript, I would like to create a collapsed range from a pixel position, in order to insert new nodes in the flow of the document, after the range identified by this position.
This can be done with the TextRange object in Internet Exporer (moveToPoint(x, y) method).
How can I do this in FireFox & Webkit?
I can get the contain...
Hi all,
I have to set the attributes 'width' and 'height' for a canvas element, depending on the available screen resolution. Setting them statically from html works (ex. <canvas id="canv" width="1600" ... ). From Javascript I can't do it. I've googled and searched in SO but I didn't find anything that works. I am using JQuery and I've t...
hi my dear friends :
i do not know what is going on my firefox!
my aspx and javascript codes are like this :
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<script type="text/javascript">
function a() {
alert('a');
//alert(event.which);
//alert(ev...
This website that I use has a WYSIWYG that ONLY works in IE. And I refuse to use IE or to tell my non-tech team to use IE.
I was wondering if there is a user script or browser plugin that would enable anyone to inject a WYSIWYG such as CKeditor.com onto any site textarea?
Edit: I would also be willing to work on it myself if anyone wan...
Ive been struggling with this all day, been close a couple times but nothing seems to work exactly.
I have a text input <input type="text" name="USA_sub" id="USA_sub" /> and after that an input <input type="text" name="FirstName" id="FirstName" /> I need to make sure (create a validation rule) that states "#FirstName" 's value must be ...
I am trying to give a button an onclick event when a certain thing on a page changes. I have tried to do it many different ways and none have worked. What am I doing wrong?
Below are what I have tried.
document.getElementById(subDiv).onclick = function() { alert('Error. There is an error on the the page. Please correct that then submit...
I'm having issues with the Facebook like button on my pages. On some pages (not all), I get a red 'Error' notice next to the like button. When clicking error it says that the "Page at __ cannot be reached".
The URL Linter shows everything as fine with my pages.
Anything else I should check?
Using Javascript + XFBML, no iframes.
...
If I were to create a site where users could put arbitrary html into their 'profile' or something similar, how might I prevent JavaScript embedded in that html from running?
Could I put an infinite loop for(;;); somewhere? If so, where would I put it?
What other security concerns are associated with this approach?
...
Hey again everyone. Yet again i am having some problems with trying to get the match correct on this Excel Spreadsheet to JavaScript conversion.
Here is the excel formula:
=IF(IF($B$7=TRUE,$B$28/$B$10,$B$28/$B$5)>1,1,IF($B$7=TRUE,$B$28/$B$10,$B$28/$B$5))
WHERE
B7 = TRUE
B28 = 76800
B10 = 892015
B5 = 999500
And this is my Jav...
On a page that I visit, it has a slow-loading external script that occasionally takes so long that the page is basically unusable. Disabling this script entirely removes some functionality, but it's better than nothing.
Is there a way I could use greasemonkey to cancel the script? I know I could use NoScript, but I wanted to give it a...
Hi,
I have a script that changes a div's positioning property from static to fixed when the scroll bar reaches it. (example - you'll see the floating video in the right column).
If you look at the example, when you scroll down the - the video div ("#membership") scrolls down the page with the rest of the content.
Here's the script tha...
Hi,
I have the following HTML
<input type="hidden" name="conf1" value="7th IEEE/IFIP International Conference on Embedded and Ubiquitous Computing (EUC-09)">
<input type="hidden" name="conf2" value="IEEE International Symposium on Parallel and Distributed Processsing with Applications">
<input type="hidden" name="conf3" value=...
How do I do a .match on a string that has parentheses in the string?
String1.match("How do I match this (MATCH ME)");
None of the answers are getting me what I want. I'm probably just doing it wrong. I tried to make my question basic and I think doing that asked my question wrong. This is the statement I am tring to fix:
$('[id$=txtE...
I'm doing a lending rates page. I have a url which, upon entering in a browser, returns a number.
I need to be able to do (in human terms) this:
var x=http://www.wherever.com/assest?cmsid=P-2870159
in the html:
<td>Our rate today is:<var x></td>
So in javascript, I'm just blanking on how I get the value returned from the url to b...
So I have copied the code from the following example on the Apple Developer site.
http://developer.apple.com/safari/library/documentation/Tools/Conceptual/SafariExtensionGuide/MessagesandProxies/MessagesandProxies.html#//apple_ref/doc/uid/TP40009977-CH14-SW1
When I run the extension, it runs normally except the injected script is run 3...
Currently I use the JavaScript code to send XML data in GWT. Is there an easier way to send them?
sendRequest.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
// RegisterBuiltin.register(ResteasyProviderFactory.getInstance());
// ItemExtension client = ProxyFactory.crea...
Hi,
I'm working on a Google Chrome extension. In the popup I have the following code:
var bookmarks = [];
function appendBMTnode(node){
bookmarks.push([node[0].title, node[0].id]);
}
function addchildren(results){
for(x = 0; x < results.length; x++){
bookmarks.push([results[x].title, results[x].id]);
chrome.book...