Hello,
I'm using ExtJS to make a form that generates a report from the data in the database in CSV format. After the user chooses a simple range of dates to extract the data and submits, running the following code :
var frm = document.createElement('form');
frm.id = 'frmDummy';
frm.name = id;
document.body.appendChild(frm);
Ext.Mess...
We have multiple pages on a website which require many of the same Javascript and CSS files.
How do we avoid those files being downloaded again if it has already been downloaded by the user browsing some other page?
...
I basically have several divs each with ids "id_1", "id_2" "id_3" etc. The divs are all initially empty.
I want on page load to populate all the divs with certain html content. But the part that has been troubling me is that I also need to extract the unique id portion for use within the html:
<div id="id_3">
<div id="inner_3></...
I have WHMCS installed, and am editing the templates (Smarty). I cannot get the sIFR js to work. I have read all the relevant questions here, and I've read the tutorials on sIFR v. 2 and v.3. Right now I'm on hte latest nightly build with sIFR so that I can use the font. I did however, generate the font online stead of using a flash ...
I think the title says it all.
I'm trying to use this code to countdown from 10 seconds, then show a link.
x116=30;
FUNCTION countdown()
{
IF ((0 <= 100) || (0 > 0))
{
x116--;
IF(x116 == 0)
{
document.getElementById("dl").innerHTML = '<a href="download.php">Download</a>';
}
IF(x116 > 0)
{
document.getElementById("dl").innerHTML = 'Pl...
I'm working in Javascript on a Maps API project for work. I'm having trouble with the callback function which I pass to GetLocations in which it has to call another chunk of code (all the callback does is store the lat and lng into an object). But after the function does its work, the next function doesn't get called.
How does this call...
Im looking at a javascript file trying to figure out a timer issue, but im lost as to what exactly is happening here. Could someone break down this code into bite sizes and explain what is going on?
Timer=0;
function countdown(auctionid) {
var auctions;
var divs;
Timer=Timer+1;
if((Timer%10=="0")||(Timer=="1")) {
...
Hi
I have a FORM that I want to use an IMG, instead of an input button, to submit the form.
The code:
<form>
<input class="form_grey" value="Enter in City or Zipcode" type="text" id="city-field" name="city" onfocus="this.value='';" />
<a href="javascript:document.form.submit()"><img src="/images/btn.png" /></a>
</form>
When I ...
Hi All,
We are trying to develop a timeout feature in application where we want alert user saying that the application log out will happen in x time will display the count down timer. Once the timeout we will be force fully logging out the user. For displaying the log out information we thought of displaying a pop-up with relevant messa...
I have n number of textboxes on a form. After the user enters a value in a textbox, I need to check that it's not a duplicate of any of the other textboxes. For example:
Textbox[0] : 1
Textbox[1] : 2
Textbox[2] : 3
Textbox[4] : 1
It should alert saying that '1' has been entered twice.
I tried the following:
function findDuplicates ...
I have several block a elements that I want to be side-by-side to create a menu. The width of each is set to auto to accommodate the text inside. Each a element is displayed as a table cell and can work with either absolute or relative positioning.
Thanks for any help.
Mike
...
I have a function
function toggleSelectCancels(e) {
var checkBox = e.target;
var cancelThis = checkBox.checked;
var tableRow = checkBox.parentNode.parentNode;
}
how can I get a jQuery object that contains tableRow
Normally I would go $("#" + tableRow.id), the problem here is the id for tableRow is something like...
Hi everyone,
I have 3 variables and I was wondering how to join their values and add them to a hidden field,
document.getElementById('my-item-name').value = meat.join("\t");
it works for 1 but when I add the other variable it doesn't work.
document.getElementById('my-item-name').value = meat.join("\t").veg.join("\t").sause.join...
I've looked this up and the outlook seems bleak. I'm not interested in using a table. I have 6 or so 'a element' inline-blocks that make up a menu. It's slick, except all the 'a elements' are set to width: auto; to accommodate their text. Without an explicit width, I'm not able to center align them. I have a container div and a child div...
Hi,
I have the following running in the jquery ready function
$('[id$=txtCustomer]:visible').livequery(
function() { alert('Hello') },
function() { alert('World') }
);
I get an alert for the first time saying 'Hello' but the functions are not called onwards when i toggle this visibility of the textbox.
Please help...
Hi
I have 3 arrays meat,veg and sauce,
I was wondering how to add their values to a new array called food.
thanks for any help
...
This question is based on this thread in Meta.
I would like to have an offline access to SO's editor and to its preview such that I can type fast.
Editor
I found the following HTML of the question box.
<div class="resizable-textarea" id="wmd-container">
<div id="wmd-button-bar"><ul id="wmd-button-row"><li class="wmd-button" i...
The Script# product looks promising though I'd have to admit I've struggled to the the Hello World application working successfully. There have been no new releases over the last year, perhaps the releases have gone inhouse now as it's claimed it's been used for the implmentation of the new MS Office Cloud applications. Has anyone used t...
I know that when linking to libraries such as jQuery that are hosted on Google Code it's better to link to the hosted one (Google's).
But when there are other libraries and frameworks hosted on sites such as GitHub (like this jQuery LightBox, do you think its best to link to the library directly from GitHub, or should I download it and ...
I'm trying to make a function that holds state but is called with foo().
Is it possible?
...