I want to change a panel size to look like an auto collapse at a specific time::
This is my code:
<html>
<head runat="server">
<title></title>
</head>
<body onLoad = "StartClock()" onunload = "KillClock()">
<script language="JavaScript">
<!--
var ftext ;
var clockID = 0;
var g;
...
Are there any pure Javascript alternatives to Narcissus for running Javascript in a web browser? ( Narcissus is the Javascript interpreter written in Javascript itself and is made by the inventor or Javascript)
...
Why doesn't the javascript output anything? It should output some html code.
<html>
<head>
<script type="text/javascript"><!--`
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
function d64(input) {
var output = new StringMaker();
var chr1, chr2, chr3;
var enc1, enc2, enc3, enc4;
var i ...
hi friends,
How can i write an read a text file in a JavaScript?
Thanks
...
I have a contentEditable div.
Let's say the user clicks a button that inserts HTML into the editable area.
So, they click a button and the following is added to the innerHTML of the contentEditable div:
<div id="outside"><div id="inside"></div></div>
How do I automatically place the cursor (ie caret) IN the "inside" div?
Worse. How...
Hi all, is it possible using fancybox to post a var to the iframe when opens?
I currently have:
function fancyBoxLoad(element) {
var elementToEdit = $("#" + $(element).attr("class"));
var content = encodeURIComponent($(elementToEdit).outerHTML());
$.fancybox(
{ 'href': 'loadEditor.php' },
{
frame...
hello,
setTimeout("refresh()", 2*15000 );
This is a code from my javascript
here setTimeout is a built in function and refresh is a function which i have declared.
i want to pass a variable (cval1) to this refresh fuction
i have tried this
setTimeout("refresh(cval1)", 2*15000 );
bit its not working
What is the exact way to do th...
For example:
page has some paragraphs with text:
<p>some text1</p>
<p>some text2</p>
<p>some text3</p>
so the browser will render:
some text1
some text2
some text3
Now, if user places the Caret, lets say on text2 (between 't' and 'e' ,document is in designmode=on), the function should return ref to the second p object.
I think...
I have a onclick event that has a value in it that I want to post to a backend php script. Just not sure how to get it in the dialog function.
function reorder(job_index)//<--------this fella
{
$('#dialog').dialog('open');
}
$(document).ready(function(){
$(function() {
$("#dialog").dialog({
bgiframe: true,
autoOpen: false,
h...
Hi,
I my application "When a button is clicked it should create a new text field in the table". So i have done like this and its not working as well. So what could be the problem in the following snippet.
<html>
<script type="text/javascript" language="javascript">
var newtr=document.createElement("tr");
var newtd=document.crea...
var test1;
$(document).ready(function () {
test1 = $("#test1ID").jQueryPlugin();
});
var test2;
$(document).ready(function () {
test2 = $("#test2ID").jQueryPlugin();
});
...
This is done so we could just do test1.foo()... foo is a function inside the jQueryPlugin that is accessible using test1.foo() syntax;
So we have an arr...
I'm dynamically switching background images. Naturally, they need to be preloaded to display promptly. I am preloading them, am able to following in FireBug as the images load. When the background image switches, I see the images download again in FireBug.
Here's my url: http://www.morganpackard.com/siteRoot/
Strangely, if I reload th...
Hi could some one show me how to do the following:
var regep = /margin-bottom:([^;]+); margin-left:0px; margin-right:0px; margin-top:([^;]+);/;
elementCSS = elementCSS.replace( regep , "margin-bottom:\\1; margin-left:auto; margin-right:auto; margin-top:\\2;");
\1 to = ([^;]+) (margin-bottom)
and
\2 to = ([^;]+) (margin-top)
?? Cant s...
I currently am trying to echo the contents of a text file within JavaScript. Everything works but there is a problem. The text within the text contains apostrophes, which is throwing everything off. Below is a portion of the code that I am using. I am using this code for MANY text files. I have considered changing each apostrophe to...
work on asp.net 3.5 web.on basis of database value i built a treeview on .aspx page.set the ShowCheckBoxes=All.My tree contain root,Parent,Leaf.i want i javascript function which help me to set all treenode to be check when i check the tree root.When i check the parent,under of this parent all leaf will check and if i uncheck the parent ...
Hi, I have the following code but the clear timeout doesn't work and I can't understand why, does anyone have any ideas? (Using the Prototype framework)
Thanks
function foo() {
$("navigation").observe('mouseover',
function (event) {
clearTimeout(bar);
}
).observe('mouseout',
function (event) {
setTime...
Can I load something using AS3/SWF and then create a DOM element using javascript to display the loaded data, without having the browser to load the same data twice?
...
How can one run a chromium extension content_script after window.load and after all other window.load listeners have been triggered?
I'm currently hacking thru a site's javascript attempting to improve it's functionality. But I want such improvements to happen after all it's ready js is finished.
What I actually need is a way to set a ...
I want to use stringByEvaluatingJavaScriptFromString to run a javascript which references local files (in this case css files, but potentially js files too) which are on the device (in the Documents folder I guess?)...
NSString *theJS = [[NSString alloc]
initWithString:@"javascript:(function()
{the_css.rel='stylesheet';
the_css.href='...
I need html - java script / jquery charts using single file.
What do I need is as follows?
Above links are just for creating bar charts
I need to create line chart as well as pie charts & other charts.
I don't have knowledge regarding java scripts jQuery.
Inshort - I need the reports within single file.
( that is - no extra .css file ...