So I have a tree of items created using XUL. When I select item from this tree and click a View button I want to display information about the selected item. I do it as below but the button does not work at all.
Assign an id for the tree:
<tree id="assetList" flex="1" multiple="false">
Then I attach a function to the button:
<button...
When I extends this button in my XBL:
<binding id="myFancyButton" extends="chrome://global/content/bindings/button.xml#button">
how do I make it a focusable button?
...
Group,
I have a quick question?
-Is there a way to trigger this onclick event when the last keypress is up.
for example: verify that newPwd==reTypePwd on the last keyup in reTypePwd text box. If my password is foo I would like for the event to trigger on "o" and not "f".
function allClear() {
var newPasswd = document.getElementById('...
I have a script that appends some rows to a table. One of the rows has a delete link, and for that I am using a ActionLink, however the id of the element is received via js, and this is nor working:
$("#Table").last().append('<tr><td><a href=\"<%:Html.ActionLink("Delete", "DeleteElementFromSet", new {id=%>Id<%})%>">Delete</a></td><td>'...
How can we get number of textboxes in a form using javascript?
Thanks in advance.
...
I'm working with 2 dates that are posted back to me in a textbox as strings in this format 03/02/2010. One is the current completion date and the second is the final completion date. I need to compare these 2 dates to check if the final completion date ends up being ahead, behind or the same as the current completion date.
Is there a wa...
I am trying use JS to playback some sounds. What i want to do is have piece of music playing but after a certain time replace it with another audio file. I thought the most effective way would be to reuse the same audio object, but it seems to not kill the original sound so all gets messy. What is the best way to do this?
My code is bel...
how to access a parent window from child window after a child popup is opened?
Thanks in advance
...
Hi All,
Without uploading a xls file I want to read the data from xls file using POI API.For that I need the full file path with file name.IE gives the full file path where as Mozzila does not.Is there any alternate way to get the full file path. Please suggest....
...
Hi,
Actually I am just a starter of XML.
In one of my task, I am doing the following:
var req = new XMLHttpRequest();
req.open('GET', 'http://www.mohin.com/test.xml', false);
req.send();
var xmlObj = req.responseXML;
Now, I am getting the XML as:
<?xml version="1.0" encoding="utf-8"?>
<Items status="as">
<Song title="Helios (...
Hi all...
*EDITED THIS QUESTION FOR CLARITY*
I have a Django template with a flash object in it. The template itself inherits from the main template and is in a block called info. Everything works ok with that!
When the flash object is clicked it calls a JavaScript callback function, with a parameter, in a separate js file. Within thi...
At the top of my script I have created a variable out of todays date:
<?php $today = date('dmy'); ?>
I then have a table and each table row has a class either of "nodate" or of a six digit number, this number represents a date. eg 230910 (yesterday).
I am trying to write some jquery that hides the table row if the class (six digits) ...
Hi,
I want to create a website which loads a image via XMLHttpRequest(). (XMLHttpRequest because I want to represent the user a % progressbar)
My Code:
var req = new XMLHttpRequest();
req.addEventListener("progress", onUpdateProgress, false);
req.addEventListener("load", onTransferComplete, false);
req.addEventListener("error"...
I'm using Colorbox to show the html content of hidden divs on my page. I can get this to work perfectly with the following:
$("a.colorbox").colorbox({width:"600px", inline:true, href:"#344"});
This will show the div with the ID of 344.
However, because I'm trying to build a scalable and dynamic page with WordPress, I want to be able...
I'm having a hard time understanding what is going on here. I am trying to code up some onClick javascript for a button on a Force.com list view for a custom object.
Here's the JS.
{!REQUIRESCRIPT("/soap/ajax/15.0/apex.js")}
{!REQUIRESCRIPT("/soap/ajax/15.0/connection.js")}
var myURL = sforce.apex.execute("MyWebServices", "myUrl", {})...
I've started playing with Dojo a bit and I'm curious about variable scope issue that I've experienced.
I have the following code:
<div dojoType="dijit.form.Button">
<script type="dojo/method" event="onClick" args="evt">
console.dir(lastSelectedItem);
</script>
Rename
</div>
<div dojoType="dojo.data.ItemFileReadStor...
I have a programmatically generated dijit.form.Select. Unlike most other widgets, the Selects do not offer a resize method like
dijit.resize({w: width, h: height});
I have not found a standardized way of setting the width of a select. This is quite bad because the autosizing makes Dialogs "explode" on long select values.
Is there a s...
I realize this isn't terrific from a security perspective but humor me.
Is there a way to create a bookmarklet that submits a form, such as a login form. For example, this works, but only if there is a page loaded in the current browser window:
javascript:(function(){document.body.innerHTML += '<form id=f action=https://www.mysite.com/...
Is there anyway I can pass a javascript variable to a Modal?
...
I need an event trigger for a radio button for when it is unchecked because another button is checked.
The code below should demonstrate my dilemma.
If you will notice, there is an onchange event trigger atttached to each radio button and checkbox in the html code. In theory a change in state from checked to unchecked should fire the o...