i call on a PHP script that generates graph images for me, however, it takes a few seconds. Is there a way to detect when it has finished loading, on the user side, and only swap it with the old image when the php script has finished and the image is ready?
here is the Javascript function i use to call the PHP script:
EDIT (CODE UPDATE...
Ok, so what I am trying to achieve is, when the user clicks on add, it will create a new instance of highway along with mallName and frequency, each of which will have a unique id, eg: highway1, mall1, freq1 : highway2, mall2, freq2
etc etc.
But thus far, when I click add, it adds the items, but when I click use the second drop down li...
I am using Google Chrome Frame to make a page render in IE as if it would in Chrome.
The page opens another page via window.open() that page has nothing set for GCF but since it is opened from a page that is, it automatically is too.
I have this on the page so it automatically closes once the user submits the form it contains:
<script...
Hello I am using indexOf method to search if a string is present inside another string. But I want to get all the locations of where string is? Is there any method to get all the locations where the string exists?
<html>
<head>
<script type="text/javascript">
function clik()
{
var x='hit';
//document.getElementById('hideme').value ='';
...
Hello everyone,
I am looking for a good iCalendar RFC 5545 processing library (open source / GPL compatible) that has been implemented in javascript. My current interest is a js library that fully implements the RRULE so that we can use our calendar web app offline with HTML5 compatible browsers.
We have our UI so just a usable library...
I have created a Dojo Grid that returns results from a .Net WS based on search criteria from the browser. The grid works fine the first it is populated, but if I make another search attempt. It throws the following error
Tried to register widget with id==grid but that id is already registered
I understand what the error means, it means...
extjs 3.x ,
var box = new Ext.Textfield { .../* somr thing /...... };
var form = new Ext.formpanel{
..../ settings here for form */
items:[ box ]
}
actually this works fine but problem is i want to create multiple instances of it "box".so that when i create multiple forms box i do not sacrifice the settings box , also i donot want t...
HTML: saucydares.freehostia.com/saucy.php I should just add that while there are no images, the site contains adult themes so isn't work safe.
PHP:
<?php
mysql_connect("mysql4.freehostia.com", sebsal2_db, "");
function him()
{
$HIMquery = "SELECT dares FROM sebsal2_db.him UNION SELECT dares FROM sebsal2_db.other O...
I'm having trouble getting this to work...it just replaces the entire page with the result
var str="textiwanttoreplace";
var el = document.getElementById('welcome');
el.innerHTML = str;
var date = new Date();
var hours = date.getHours();
if (hours >= 8 && hours < 13) {
el.innerHTML = str.replace("textiwanttoreplace", "It's 8 and 1...
I have a form with a dynamically-generated group of fields - backend is php/mySQL, and the form is created by reading in data from a table and creating a group of fields for each record. The form has a bit of javascript onSubmit that confirms whether the user really wants to save their changes, but I'm having trouble reverting to the ori...
Hi,
I have the following problem:
I try to animate text so that it shows up letter by letter. This works for me like this:
var a = 0, speed = 85, text = [], story = "bla bla... text";
function tickertext(){
obj = document.getElementById("textbox");
text[a] = document.createTextNode(story.charAt(a));
obj.appendChild(text[a]);
a++;
a !=...
So here is the deal, I have a form that appears in a table. Each row has a certain amount of information, one of the form elements in a "select" dropdown box. This "select" contains various categories as optgroups and the information under those categories are the options. This is quickly becoming unmanageable as the list gets longer ...
I have page A that issues an ajax call and brings in snipped B. This snippet is being added into the DOM and all the scripts in that snipper are eval-ed. In that snippet, I have 2 script tags as such:
<script type="text/javascript">
function doOptions(){
alert('doOptions');
}
</script>
<script type="text/javascript">
X = {
...
Hello all,
I download a form generated by phoform.org. In the page, it includes view.js as follows:
What is the usage of this javascript? Can I remove it without problems?
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c-...
Well,
I need to replace a word, in a div contentEdible property on, by the same word but formatted...
Like this:
<div> My balls are big </div>
To this (replace the word: balls):
<div> My <font style="color:blue;">balls</font> are big </div>
In a contentEditable this happens dinamically, while the user type the text the replacements hap...
Hi,
got this function to validate two fields from a changing password form and it's doesn't seem to work at IE8. FF, Opera, Safari and Chrome work.
function chk_form_pw()
{
if(document.getElementById('new_passwd').value == '')
{
alert("<?php _e('Please enter New Password') ?>");
document.getElementById('new_passwd').focus();
re...
I am building a site that has an image map menu with a popup box that is supposed to pop at the mouse when the mouse is hovering over a particular area. It works great in firefox and IE but when I load the page in chrome the boxes appear as if the page were not scrolled. it works fine if the page is scrolled all the way to the top, but...
Possible Duplicate:
Compare 2 dates with JavaScript
Hi,
I'm working on form validation for my application and i want to know where i would be to start looking at to find date comparison eg a start date and an end date. The dates inputted in to my application are in the form: DD/MM/YYYY.
Thanks in Advance,
Dean
...
// test.js //
var testObj = {};
testObj.init = function(){
console.log('google');
}
var onload = testObj.init;
/// what does it mean, does it mean it gets executed when script loaded or what, I just can't understand it as it is not looging into console anything under Google Chrome plugin...
...
What I want
I want to upload a file without without reloading the page, also I want to add the source link for the image to the textarea.
So when I push the upload_photo, the image uploads and a link is added to the textarea.
I want pure HTML, Javascript|AJAX and PHP.
What I have
<form action"index.php" method="post" enctype="mu...