i have the following relevant code in the header of my html doc:
test1.value = System.Gadget.Settings.read("Date1");
And I'm trying to display the test1 value in the body of my html doc.
It displays when i use:
<input type="text" id="test1" />
But isn't working when i use (in the body):
<script type="text/javascript">
documen...
I'm searching for php/javascript for calendar-start and date picker.
Based on these date i need to retrieve the database cash and bank amount details.
...
Consider:
var object = {
foo:{},
bar:{},
baz:{}
}
How would I ...
var first=object[0];
console.log(first);
Obviously that doesn't work because the first index is named "foo",
not 0.
console.log(object['foo']);
Works, but I don't know it's named foo. It could be named anything. I just want the first :)
Thanks!
...
I'm using a custom right click context menu for a flash app (overriding the default adobe menu). For this Uza's right click solution ( http://www.uza.lt/blog/2007/08/solved-right-click-in-as3 ) works well.
However, flash player plugin (for Firefox/Chrome etc) has a bug which breaks usage of international characters when its using WMode ...
Hello, I have the following JSON object:
new Ajax.Request(url, {
method: 'post',
contentType: "application/x-www-form-urlencoded",
parameters: {
"javax.faces.ViewState": encodedViewState,
"client-id": options._clientId,
"component-value": options._componentValue
}
});
Now, I would like to be ...
I need to background load some WAV files for an HTML page using AJAX. I use AJAX to get the details of the WAV files, then use the embed tag, and I can confirm that the files have loaded successfully because when I set autostart to true, the files play. However, I need the files to play only when the user clicks on a button (or an event ...
Hi,
This may be a very easy one, but I am having problem while using onclick="javascript:history.back(-1);" with PHP. In the first page, I get a search result and I have used a post action to get the search criteria. From this page, I can view the details of the search result. When I go back to the search result page for IE, I get no...
var subjectList;
function PageMaster()
{
this.contentDiv = document.getElementById("content");
}
/**
* Builds the main part of the web page based on the given XML document object
*
* @param {Object} xmlDoc the given XML document object
*/
PageMaster.prototype.doIt = function(xmlDoc)
{
alert("PageMaster()");
alert("Clea...
I am supposed to write a program in JavaScript to find all the anagrams within a series of words provided. e.g.: "monk, konm, nkom, bbc, cbb, dell, ledl, llde"
The output should be categorised into rows:
1. monk konm, nkom;
2. bbc cbb;
3. dell ledl, llde;
I already sorted them into alphabetical order i.e.:
"kmno kmno bbc bbc dell dell"
...
Hi all,
I need to do something like this:
<input type="button" value="click" id="mybtn"
onclick="myfunction('/myController/myAction',
'myfuncionOnOK('/myController2/myAction2',
'myParameter2');',
'myfuncionOnCancel('/myController3/myAction3',
...
Hello
I am using the portlet plugin from jQuery UI
my question is:
is it possible to save the order of the portlets in the database so when the user come back he can see his portlets sorted in the same order?How?
Thanks
...
Hi, I use this jQuery code to slide up a div over its wraper div dinamically:
jQuery.fn.masque = function(classSelector) {
$(this).hover(function(){
$(this).find(classSelector).stop().animate({height:'88px',opacity: '0.8'},400);
},function () {
$(this).find(classSelector).stop().animate({height:'0',opacity: '0'}, 300);...
Hi,
I'm developing a Firefox addon that needs to interact with an external WebService
The WebSerivce is build using ASP.NET (.asmx page)
I cannot use ajax because it's an addon and not a web site.
Does anyone knows how to do it?
...
Hi i would simply like to know what this means:
function flipString(aString) {
var last = aString.length - 1;
var result = new Array(aString.length)
for (var i = last; i >= 0; --i) {
var c = aString.charAt(i)
var r = flipTable[c]
result[last - i] = r != undefined ? r : c
}
return result.join('')
}
...
I'm confused about jQuery.
On one hand it is shipped with the Microsoft MVC library, which I respect as a well thought-out library that I enjoy using.
On the other hand, I was recently pointed in the direction of this post in comp.lang.javascript in which the author has very few kind words to say of jQuery (and, apparently several oth...
There seem to be a limitation in the maximum number of clickable options in a select element.
If there is a select element with 3200+ options. Items from 3125 to N doesn't fire change event when they are clicked. However, items can be selected with the keyboard.
Any idea if this is a bug or a feature of IE8?. There is no such problem i...
I have a problem with a javascript error: $("#slider") is undefined
How can i solve this problem?
<script type="text/javascript">
$(document).ready(function() {
$("#slider").easySlider({
controlsBefore: '<p id="controls">',
controlsAfter: '</p>',
prevId: 'prevBtn',
nextId: 'nextBtn'
});
});
</scr...
function insertChildDiv(parentId)
{
var ChildComment = new Element('div', {'class':'padding'});
ChildComment.update('testing');
$().insert(ChildComment);
}
i want the value of parentId inside the $() in the line
$().insert(ChildComment);
i already tried
$('parentId').insert(ChildComment);
but it evaluates the parentId as ...
I don't think this is particularly quirky, but in an attempt to control my JavaScript code (if it is possible to really control JavaScript ;-) ) I have been wrapping all of my client-side JavaScript in lovely objects. Or as lovely as I can make them anyway.
One of the first issues I came across was attaching events to anything from with...
Very straightforward:
Is it possible to prevent the browser from scrolling when a user pressed arrow keys?
...