Search:
Type: Posts; User: captainscall
Search :
Search took 0.01 seconds.
ah! of course.
So it is equivalent to
var ajaxreq = false;
var ajaxCallback;
I just came across this in a JS book.
var ajaxreq = false, ajaxCallback;
ajaxCallback is a function defined later.
But what does that mean? Defining the variable with a comma..?
ActiveX is out of date (and only worked for IE).... Use...
some_ajax_request = new XMLHttpRequest(); //Modern browsers support it.
some_ajax_request.open("GET", yourxmlfile.xml);
etc..
...
try
myobject = document.getElementById('testdiv');
if (typeof myobject != 'undefined')
{ // this means it exists and has a defined value}
else
{ // this means the type of your object was...
Fixed it. I still don't understand why the previous code didn't work though.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
I clicked the link you gave us for the image and apparently that URL doesn't go anywhere. 404 Error. Check your image name and file extension.
Agreed with above; you can't do that without internet access. You'll need an offline database of sorts
Not that I know of -- but I do know that server-side code doesn't get rendered in the browser source code...directly
like PHP, ASP and the others.
e.g.
<?php //you will never see me in...
I've got a pretty simple script here... but the border property isn't changing for my elements onFocus...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
i don't know of any, but best thing i'd say to at least make it easier is create an array with all the fonts and then run a loop to spit out the options
fontsarray = new Array('times', 'blah',...
Yeah, thanks. I learned later about this.selectedIndex
Looks like you're using object-oriented programming for the e-mail to yourself.. you could simply add some non OOP PHP to send the user an email too:
$to = $_POST['email'];
$subject = 'Thanks...
OH MY GOSH. I have spend hours on this confounding problem and found that FIREFOX is to blame.
The script runs completely fine on IE. It was because I didn't declare a DOCTYPE in firefox.
...
I took a brief look at this.
Basically you need javascript if you want the totals to calculate realtime. PHP won't do it realtime
i don't think buttons get 'set'. They're just there, see?
What you need is something like was_pressed($_POST[your_button])
So PHP doesn't really deal with that as far as I know. You can use...
I posted another thread revising this question and for some reason I can't delete it so I'm marking it resolved
Ok, i just totally simplified it. I've got it narrowed to this:
<?php
$timeout4 = '17:00';
$inorout = 'out';
$x = 4;
ok, I just tested that reality. apparently it works but my real code isn't doing what i want. Here goes:
function makeSelect($inorout, $x)
{
if ($inorout == "in")
{$output = "<select...
if I have, for example
$timein1 = 'something';
$timeout3 = 'something else';
$inorout = 'in';
$n = '1';
can I use
I found the fix. Combined it all in one function and re-defined the variables. Hope it helps somebody
// -----------------FOR TIME LOG----------------------------
// arrays needed
timeins...
I've got some javascript here to calculate running totals in hours of time logged in <select> elements.
Don't worry about figuring the code-- I know it works. My problem is that I want the totals...
Easy it was. Found the solution:
document.getElementById("myselect").options[0].value //accesses value attribute of 1st option
document.getElementById("myselect").options[0].text //accesses...
So I've got
<select id="timein1">
and <option value="00:00">00:00</option><option>...etc....</option>
</select>
How do I get the selected option's value? I am trying this:
Hello...
I'm trying to figure out how to compact this here code into a nice for loop, but it is difficult:
I'm considering something like (notice I simply want to just make a bunch of <tr>'s):...
Heh, no problem. Sometimes it helps to have an extra pair of eyes.