Hi everyone, I know this is off topic, but I was hoping someone could explain this to
me. It may be something with php, not sure though.
I have this exact code on a regular html file and it works fine, copy paste to php
file, and it doesn't work.
script language=JavaScript
--- Jake McHenry [EMAIL PROTECTED] wrote:
input type=text name=10_Accounting_Unit size=1 maxlength=1
value={$_SESSION['10_Accounting_Unit']}
onKeyUp=movefocus(10_Accounting_Unit,11_Accounting_Unit,1);
This looks like you're trying to go in and out of PHP mode without using
?...?, ?php...?,
06, 2003 12:16 PM
Subject: Re: [PHP] OT-Javascript Question
--- Jake McHenry [EMAIL PROTECTED] wrote:
input type=text name=10_Accounting_Unit size=1 maxlength=1
value={$_SESSION['10_Accounting_Unit']}
onKeyUp=movefocus(10_Accounting_Unit,11_Accounting_Unit,1);
This looks like you're
Will I have to change my entire page format? As I said, right now it's all
being echo'd
Jake
- Original Message -
From: Chris Shiflett [EMAIL PROTECTED]
To: Jake McHenry [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 12:16 PM
Subject: Re: [PHP] OT-Javascript
]
To: Jake McHenry [EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 3:30 PM
Subject: Re: [PHP] OT-Javascript Question
You're fine to echo the whole thing, but remember that php happens
before the page is ever created (server side as opposed to client side)
whereas javascript happens after
Jake McHenry wrote:
I got everything working now. For some reason when I put it inside php, it
wouldn't work with my variables with the numbers in front
(1_Accounting_Unit) so I renamed all of them with the number at the end and
they work fine.
Jake
The reason is here, notice the second paragraph:
Sorry for the off topic post, but this is by far the most experienced list I've found.
I've got a php page that show all the .gif and .jpeg files in an directory via a form
based drop down menu.
On the same page, I've also got a link that opens a new window, and allows the user to
upload an
?php
echo body onunload=\opener.window.location='$PHP_SELF';\\n\n;
?
Something similar will work fine.
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
Kelly Meeks [EMAIL PROTECTED] 07/29/02 04:00PM
Sorry for the off topic
Yes, this is way OT
you can refer back to the original window with
opener
(or it may me window.opener)
I used it once to change the location of the parent window with something
like:
SCRIPT language=JavaScript
!--
function blah(url,close)
{
opener.location = url;
window.close();
on 30/07/02 6:11 AM, Martin Clifford ([EMAIL PROTECTED]) wrote:
?php
echo body onunload=\opener.window.location='$PHP_SELF';\\n\n;
?
Something similar will work fine.
Wouldn't the $PHP_SELF be that of the popped-up window, not of the opener?
Justin French
--
PHP General Mailing
10 matches
Mail list logo