I have a recursive function in my JavaScript file. It looks something like this:
function process(node){
if(someCondition)
return someValue;
a = process(node.children);
b = doSomething(a);
return b;
}
The problem is that I want to display the state of the system to the HTML output on each step of this recursion...
My first start into JavaScript.
I can make mouseover events trigger changes when I use it with images, but not with a div only containing text. What am I doing wrong ? Code follows.
<html>
<head>
<script language="javascript" type="text/javascript">
function addHeading(node, text) {
var newNode=document.creat...
I'm encouraged to use a Linux box at work, so I'm using Eclipse for my coding. The default black on white theme is horrible, in my opinion. Is there any way I can get Twilight-style syntax coloring (for Javascript) in Eclipse?
...
Hi folks,
on this website the textual time is dynamically updated .. i'm guessing using javascript.
this is the html code, using Firebug to inspect the page ...
<strong class="big" id="ct">Friday, 3 September 2010 at 8:17:21 AM</strong>
with that time value incremementing each second.
I'm guessing some javascript updates the 'ct' e...
Hi I'm looking for an API that retrieve page title in Javascript, for an address given.
Thanks
...
hi
I need a scroll bar with animated text with in the scroll bar column. I will explain this
I have created a custom scroll bar. We can scroll the bar and view the content. My problem is that I need to move the content from bottom to the top with in that scroll bar content section. Like marquee. So I have implemented the marquee and pl...
How can i get this code to execute even when the focused on the iframe?
<Script>
function check(){ alert("test"); }
</script>
<body onkeydown="check()";>
Onkeydown event only works when focus is not on iframe...<br>
<iframe src="about:blank" frameborder=1;> </iframe>
...
Hi,
I am trying to launch a python script with the NativeProcess API from Javascript.
On the Adobe AIR API Reference for HTML Developers I found a good example for that task, but it does not work. I looked up tons of other examples but still can not find the answer.
Here is the example code for the html file:
<html>
<head>
<title...
I have a web page with 2 listboxes (HTML select control).
The first listbox is multi-select and contains a huge number of elements.
When I select one or more elements in the first listbox the content of the second listbox has to change based on the selected values. These values have to be taken form the database. Because the selection h...
We have an internal website for document management. When you choose to open a document, it run the following script to open the file:
<a href="javascript:opendokument('P:\\01\\2-010-01.doc')">012-010-01</a>
<SCRIPT language=javascript>
function opendokument(dokument){
var objAppl;
try{
objAppl = GetObject("","Word.Applicatio...
So I see a lot of people recommend the hidden-iFrame hack that is jQuery history plugin but all I really need is the other half of this technique:
function whenItemIsClicked()
{
window.location.hash = this.id;
//some other stuff, like Ajax
}
//and then, if page is reloaded...
$(document).ready(function(){
var loc = ...
Hi there. I am trying to use a keyhandler function to change the focus to different list items. So, when the user hits the page down key, for example, I want to focus on the list item below the one that currently has focus. Similarly for page up. Roughly, I have the following setup:
<html>
<head><title>blah</title></head>
<body>
<ul...
Hello friends. I have a question about javascript. In my project, there are embedded and non-embedded javascript codes. And i did localization of the embedded codes like below and it works.
CN.DEFAULT_CONFIG = {
strings : {
year: '<%=GetGlobalResourceObject("Resource", "YEAR") %>'
...
..
.
But, this method does not work f...
Hi,
I get a date from a datetime picker with this:
var endDate = new Date();
endDate = $("input[id$='DateTimeControl2Date']").val()
Then I find another date and try to check how many days there are between these two dates but I get the error "Object doesn't support this property or method". What am I doing wrong?
$('.StatusDateTable...
Hi guys,
I have custom grid made of HTML tables. User can enter values into each cell, then automatically move to the next cell below when they press the DOWN key or ENTER KEY, much like in a spreadsheet.
My problem is, when user types quickly and pressed the DOWN key before he releases another key on keyboard, the last input characte...
Hello, I'm making a mailing list script that takes advantage of ajax (async=false) to send emails in chunks.
Basically the cycle is this:
var i = 0;
for(i;i<num_rows;i=i+mxt){
if($("#panic").val()=='1'){
break;
}
perc = (i*100)/num_rows;
startThread(i,perc);
}
Tha panic value is set by a button, the problem is...
I am using HTML 5 FileReader to read more that one file asynchronously.
I would like to keep track of loading of individual files as more that one files can be added at once.
Now i created div with background 0% for each image, but i am not clear about how to pass this division's id or reference in the onprogress event so that i can t...
i have buttons on a page and when the user clicks onto that button, the color of the page changes. basically i`m creating a theme changer. my code is this :
function Red()
{
var Redbtn = document.getElementById("btnRed");
Redbtn.bgColor = "#F00";
}
function Blue()
{
}
Theme changer
ihave done upto the red bu...
Hi,
My problem is simple, the solution though doesn't seem particularly obvious.
I have a Flash site. Currently the Flash object takes up the whole browser and is set to width/height = 100%. This is fine until someone shrinks their browser.
Is there a way to set something like this this.
height = (browser_height < y) ? y : 100%;
widt...
I use this inside a function,
document.getElementById("DeleteConfirmationdiv").style.display = 'block';
now I want to launch this DeleteConfirmationdiv using the jQuery Facebox plugin. Is it possible?
Thus far I've been using facebox like this,
$(document).ready(function($) {
$.facebox.settings.opacity = 0.2;
$('a[rel*=faceb...