Perry, Matthew (Fire Marshal's Office) wrote:
Hello all,
I am having difficulties working with a JavaScript menu that should load on
each page of my intranet site.
[snip]
hint - you're already on the wrong list. Read on.
Here is a brief background of the problem:
[snip]
4) I am using a
Gamze Baaran
Maybe you forgot a ?:
Alert(?php echo $message ; ?); or
^^^
Ignatius
_
- Original Message -
From: Gamze Baaran [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 08, 2004 2:49 PM
Subject: [PHP-DB] javascript question
Hi everyone;
First of all
alert('?=$message?');
// case sensitive
- Original Message -
From: Gamze Baaran [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 08, 2004 4:09 PM
Subject: [PHP-DB] javascript question
When I use this it isn't work an there is error but can't see it with
internet explorer.
Hi Mignon,
This should work, never closing the window without submitting
(foolproof). Just add some error checking, and you'll be sweet as a
nut! All I did was add the echo statement underneath the data insert.
Adam
?
include ('dbconn.php');
if(isset($submit))
{
$query = INSERT INTO
Thanks again for the advice. This approach wont work in this case
because I'm launching the window from an app, then I need to close to
return to the app. If I submit back to my app, it brings a new app into
the addl window.
And no, you're definetly not stupid !
Thanks for the help.
Mignon
This works!
Thanks Adam
On Tue, 2003-01-14 at 03:11, Adam Royle wrote:
Hi Mignon,
This should work, never closing the window without submitting
(foolproof). Just add some error checking, and you'll be sweet as a
nut! All I did was add the echo statement underneath the data insert.
Hello List,
Has anyone had any problems using the onClick=window.close();
function within a input type = submit ?
I'm trying
input type=submit name=submit value=submit
onClick=window.close();
But evidently it's reading the close before the submit because the value
of my form var is not being
The window.close(); function is not returning control to the form after
closing the window. You must tell it to do so. Use:
onClick=return window.close();
This will return the window.close() value to the submit button so that
it can do its thing after the window has been closed.
Use the same
Unfortunately I havnt gotten it to work yet. Am I missing something ?
PS the query works without the closewindow()
?
include ('dbconn.php');
if(isset($submit))
{
$query = INSERT INTO `comments` ( `track_id`, `cat_comments` ) VALUES
( '0', '$comm' );;
mysql_query
Nevermind Micah,
Thanks for your input, I just did 2 buttons for the user - one to submit
and one to close the window.
Thanks for your help
Mignon
On Mon, 2003-01-13 at 15:24, Mignon Hunter wrote:
Unfortunately I havnt gotten it to work yet. Am I missing something ?
PS the query works
Wait, I'm stupid. You're closing the window upon submission of the form,
so that will close the session, so the php at the beginning will never
process after form submission. Make the form submit to another page that
won't be closed.
-Micah
On Mon, 2003-01-13 at 13:24, Mignon Hunter wrote:
Hi,
In your javascript try
field1=Number(thisform.field1.value) etc...
Cheers
Simon
-Original Message-
From: Shahmat Dahlan [mailto:[EMAIL PROTECTED]]
Sent: 11 October 2002 11:35
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Javascript
My question might have anything to do with PHP but I
I have met this problem before.
The only solution I have found is to assign 0 values to the INPUT tags:
input type=text name=field1 addChange=add(); value=0
HTH
Ignatius
- Original Message -
From: Shahmat Dahlan [EMAIL PROTECTED]
To: [EMAIL
- Original Message -
From: Simon Taylor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 11, 2002 4:03 PM
Subject: RE: [PHP-DB] Javascript
The reason for this is these fields are regarded as text and unless you
specify number(variable) it may treat it as text.. When
Field1='0
I am not a JavaScript expert, but I had a similar problem. I THINK that
you need to reference your frames like this:
window.parent.frames.rightFrame.document.open();
Give it a try, hope that helps...
Josh
hi all,
i know this is not exactly the place to ask this, but i don't know
where
Subject: Re: [PHP-DB] javascript problem
I am not a JavaScript expert, but I had a similar problem. I THINK that
you need to reference your frames like this:
window.parent.frames.rightFrame.document.open();
Give it a try, hope that helps...
Josh
hi all,
i know this is not exactly
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
Click a href=\#\
onClick=\MM_openBrWindow(file.php?myvar=set,mywin,'status=1,toolbar=0'this to
open new window/a
Good luck.
Russ
On Wed, 26 Sep 2001 05:41:05 -0700 its me [EMAIL PROTECTED]
That's a one off though
It has NOTHING to do with databases!!!
Russ
On Wed, 26 Sep 2001 05:41:05 -0700 its me [EMAIL PROTECTED] wrote:
hi there.does anyone know how to pass a variable value to the new window i
opened with open()
of javascript?
Well,
No and Yes.
If the form is posted, whichever page that it was posted too will have
$HTTP_POST_VARS["text1"]
set to whatever was in the textbox. $text1 may also be a global variable,
depending on your php.ini settings for register_globals and also
variable_order.
It took me a while to feel
Assume in HTML file is:
FORM name="myform" method="post" action="http://my_site.com/do_form.php3"
INPUT type="text" name="text1"
/FORM
Then, in do_form.php3:
?php
the_value = $text1;
?
$text1 refers to the name of the field in the HTML form. This convention
applies to all fields in the
21 matches
Mail list logo