php-windows Digest 25 Apr 2007 02:08:47 -0000 Issue 3206
Topics (messages 27736 through 27745):
Re: $date1 larger then current date?
27736 by: Jarrett Meyer
Thanx!
27737 by: Gustav Wiberg
Javascript partially not working
27738 by: Alf Stockton
27739 by: Mikael Grön
27740 by: Gustav Wiberg
27741 by: Alf Stockton
27742 by: chandar
27743 by: Bill Bolte
27744 by: Mikael Grön
27745 by: bedul
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
if (mktime(0,0,0,substr($date1,5,2),substr($date1,8,2),substr($date1,0,4)) >
time() ) // if $date1 > server time
{
//do stuff
}
I have a few conversions that I use. Our server stores all dates in YYYYMMDD
(as int) format, so I've got a few handy functions (OsDateToTimestamp(OsDate)
and TimestampToOsDate(Timestamp)) that seem to get called a LOT.
Thank you,
Jarrett Meyer
http://jarrettmeyer.blogspot.com
No trees were harmed during this transmission; however, several electrons were
terribly inconvenienced.
----- Original Message ----
From: Gustav Wiberg <[EMAIL PROTECTED]>
To: "'php windows' ([EMAIL PROTECTED])" <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2007 5:38:00 AM
Subject: [PHP-WIN] $date1 larger then current date?
Hi guys!
I'm searching for what I thought would be an easy issue comparing dates. I just
want to know if a date in variable
$date1 is larger then current date.
I use the format YYYY-MM-DD in $date1
and I know how to retrieve the current date and set it in $dat2
But how do I know if $date1> $date2 ?
I have looked around, but I havent found any easy solution. It seems to be a
big deal? Is that the case?
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
For your input about larger-date comparision. I have solved it - I only used
mktime and compared the two $date- variables
Best regards
/Gustav Wiberg
--- End Message ---
--- Begin Message ---
I include the attached Javascript file when building my intranet web
page using PHP and it partially works.
When called the function Done() works fine and the function ClearForm()
works up to the line that reads
document.getElementById("MemberName").innerHTML = "";
Below that nothing works.
I have altered the abovementioned line to
document.getElementById("MemberName").value = ""; and it still works but
again nothing below that line works.
I feel that there must be something wrong with the line that reads
document.getElementById("Amount").value = ""; but I'm blessed if I can
see it.
The relative HTML line reads
<div style="position:relative;"><input type=text name="Amount"
id="Amount" onBlur="CheckAmount()"></div>
Please make suggestions.
--
Regards,
Alf Stockton www.stockton.co.za
Stay away from hurricanes for a while.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
AdjustmentFunctions.js
Description: application/javascript
--- End Message ---
--- Begin Message ---
Alf, it has already been pointed out that this list is for PHP. That the
JavaScripts are supposed to run on a page generated from PHP isn't
enough to make it PHP related.
Please register to a JavaScript list and ask your question about
JavaScript there.
Mike
Alf Stockton skrev:
I include the attached Javascript file when building my intranet web
page using PHP and it partially works.
When called the function Done() works fine and the function
ClearForm() works up to the line that reads
document.getElementById("MemberName").innerHTML = "";
Below that nothing works.
I have altered the abovementioned line to
document.getElementById("MemberName").value = ""; and it still works
but again nothing below that line works.
I feel that there must be something wrong with the line that reads
document.getElementById("Amount").value = ""; but I'm blessed if I can
see it.
The relative HTML line reads
<div style="position:relative;"><input type=text name="Amount"
id="Amount" onBlur="CheckAmount()"></div>
Please make suggestions.
--- End Message ---
--- Begin Message ---
I agee to Mikaels Gröns comment about Javascript
But just for helping out a bit
If it is about Javascript and nothing below a certain line works, then it is
THAT line that is wrong...
document.getElementById("MemberName").innerHTML = "";
Best regards
/Gustav Wiberg
-----Original Message-----
From: Alf Stockton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 24, 2007 2:42 PM
To: php windows
Subject: [PHP-WIN] Javascript partially not working
I include the attached Javascript file when building my intranet web
page using PHP and it partially works.
When called the function Done() works fine and the function ClearForm()
works up to the line that reads
document.getElementById("MemberName").innerHTML = "";
Below that nothing works.
I have altered the abovementioned line to
document.getElementById("MemberName").value = ""; and it still works but
again nothing below that line works.
I feel that there must be something wrong with the line that reads
document.getElementById("Amount").value = ""; but I'm blessed if I can
see it.
The relative HTML line reads
<div style="position:relative;"><input type=text name="Amount"
id="Amount" onBlur="CheckAmount()"></div>
Please make suggestions.
--
Regards,
Alf Stockton www.stockton.co.za
Stay away from hurricanes for a while.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--- End Message ---
--- Begin Message ---
Mikael Grön wrote:
Alf, it has already been pointed out that this list is for PHP. That the
JavaScripts are supposed to run on a page generated from PHP isn't
enough to make it PHP related.
Please register to a JavaScript list and ask your question about
JavaScript there.
Any suggestions as to which Javascript list may be good?
--
Regards,
Alf Stockton www.stockton.co.za
Never reveal your best argument.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--- End Message ---
--- Begin Message ---
Devshed Forums wil be good[http://forums.devshed.com/]
thnx/Chandar
Alf Stockton wrote:
Mikael Grön wrote:
Alf, it has already been pointed out that this list is for PHP. That
the JavaScripts are supposed to run on a page generated from PHP
isn't enough to make it PHP related.
Please register to a JavaScript list and ask your question about
JavaScript there.
Any suggestions as to which Javascript list may be good?
--- End Message ---
--- Begin Message ---
http://www.sitepoint.com
Their forums are pretty good.
Bill
-----Original Message-----
From: Alf Stockton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 24, 2007 8:33 AM
To: Mikael Grön
Cc: php windows
Subject: Re: [PHP-WIN] Javascript partially not working
Mikael Grön wrote:
> Alf, it has already been pointed out that this list is for PHP. That the
> JavaScripts are supposed to run on a page generated from PHP isn't
> enough to make it PHP related.
> Please register to a JavaScript list and ask your question about
> JavaScript there.
>
Any suggestions as to which Javascript list may be good?
--
Regards,
Alf Stockton www.stockton.co.za
Never reveal your best argument.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I actually started looking for one myself, right after I mailed. Haven't
found any good ones yet. I'll let you know when I do.
Chandar and Bill: I don't like forums. I enjoy using Thunderbird too much.
Mike
Alf Stockton skrev:
Mikael Grön wrote:
Alf, it has already been pointed out that this list is for PHP. That
the JavaScripts are supposed to run on a page generated from PHP
isn't enough to make it PHP related.
Please register to a JavaScript list and ask your question about
JavaScript there.
Any suggestions as to which Javascript list may be good?
--- End Message ---
--- Begin Message ---
>>document.getElementById("Issue").disabled
i must see the html result
i believe u have error on your html not on the js
for example form
if you not declare a form name <form name=bedul><input name=issue>
u can't change issue??
can u send to us again with the htm .. and since htm kinda danger to share,
would you change the extension into txt (index.htm.txt)
----- Original Message -----
From: "Alf Stockton" <[EMAIL PROTECTED]>
To: "php windows" <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2007 7:42 PM
Subject: [PHP-WIN] Javascript partially not working
> I include the attached Javascript file when building my intranet web
> page using PHP and it partially works.
>
> When called the function Done() works fine and the function ClearForm()
> works up to the line that reads
> document.getElementById("MemberName").innerHTML = "";
>
> Below that nothing works.
>
> I have altered the abovementioned line to
> document.getElementById("MemberName").value = ""; and it still works but
> again nothing below that line works.
>
> I feel that there must be something wrong with the line that reads
> document.getElementById("Amount").value = ""; but I'm blessed if I can
> see it.
>
> The relative HTML line reads
> <div style="position:relative;"><input type=text name="Amount"
> id="Amount" onBlur="CheckAmount()"></div>
>
> Please make suggestions.
>
> --
> Regards,
> Alf Stockton www.stockton.co.za
>
> Stay away from hurricanes for a while.
> My email disclaimer is available at www.stockton.co.za/disclaimer.html
>
----------------------------------------------------------------------------
----
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---