PHP neither supports nor fails to support JS.
PHP just spits out something for the browser.
Use View Source in the browser and see what you've done.
Fix the PHP until you get what you want in the View Source to make
the JS work.
On Sat, February 3, 2007 2:44 pm, Chris Carter wrote:
I am
I am trying to open a Java script pop up widow from within the php code. Not
able to get it done, the error I think is in the use of '' .. I mean
double and/or single quote. Do not know how to place those. Please advice.
The code is below:
echo
tr
td$shopname /td
td$category /td
td$subcategory
At 2/3/2007 12:44 PM, Chris Carter wrote:
I am trying to open a Java script pop up widow from within the php code. Not
able to get it done, the error I think is in the use of '' .. I mean
double and/or single quote. Do not know how to place those. Please advice.
The code is below:
echo
tr
Try this:
script
function poptastic(url)
{
newwindow=window.open(url,'name','height=490,width=900,left=150,top=175');
if (window.focus) {newwindow.focus()}
}
/script
?
$URL=index.php;
print a href=\javascript:poptastic('.$URL.')\click here/a;
?
Ed
I am trying to open a Java
Sorry, if already posted, just did not get any confirmation, wanted to
make sure the e-mail has been sent.
Try this:
script
function poptastic(url)
{
newwindow=window.open(url,'name','height=490,width=900,left=150,top=175');
if (window.focus) {newwindow.focus()}
}
/script
?
Chris Carter wrote:
I am trying to open a Java script pop up widow from within the php code. Not
able to get it done, the error I think is in the use of '' .. I mean
double and/or single quote. Do not know how to place those. Please advice.
The code is below:
echo
tr
td$shopname /td
PROTECTED]
Sent: Monday, May 29, 2006 12:59 PM
To: [EMAIL PROTECTED]
Cc: [php] PHP General List
Subject: Re: [PHP] pop-up window in php???
[EMAIL PROTECTED] wrote:
ok, maybe I didn't make my question too clear. I was mostly wondering
if there
is a way to do it in PHP rather than Javascript. I would
[snip]
Toolbars? No, I'm not that clever. I was only referring to
disabling links and form fields within the HTML page itself. The
best I could do using this technique wouldn't exactly mimic a modal
dialog, just approximate one.
[/snip]
Incredibly enough I just found this particular way of
Hi all,
Is there anyway to have a pop-up window to ask are you sure? yes / no in php?
I know you can do it in Javascript, but I'm not sure what's the best way to
implement it in php. I want the page to do nothing if no is pressed.
any help would be appreciated.
thanks,
Siavash
--
PHP General
Not related to PHP, but u hava javascript confirm function or prompt
(if you need input also).
Andy
[EMAIL PROTECTED] wrote:
Hi all,
Is there anyway to have a pop-up window to ask are you sure? yes / no in php?
I know you can do it in Javascript, but I'm not sure what's the best
ok, maybe I didn't make my question too clear. I was mostly wondering if there
is a way to do it in PHP rather than Javascript. I would prefer only using php.
and from the answers I got, I take it that there is no way of doing it in PHP.
thanks,
Siavash
Quoting Andrei [EMAIL PROTECTED]:
[EMAIL PROTECTED] wrote:
ok, maybe I didn't make my question too clear. I was mostly wondering if there
is a way to do it in PHP rather than Javascript. I would prefer only using php.
and from the answers I got, I take it that there is no way of doing it in PHP.
thanks,
Siavash
Quoting
[EMAIL PROTECTED] wrote:
ok, maybe I didn't make my question too clear. I was mostly wondering if there
is a way to do it in PHP rather than Javascript. I would prefer only using php.
and from the answers I got, I take it that there is no way of doing it in PHP.
All that PHP can do is
Quoting Lester Caine [EMAIL PROTECTED]:
[EMAIL PROTECTED] wrote:
ok, maybe I didn't make my question too clear. I was mostly wondering if
there
is a way to do it in PHP rather than Javascript. I would prefer only using
php.
and from the answers I got, I take it that there is no way
At 11:03 AM 5/29/2006, [EMAIL PROTECTED] wrote:
Is there anyway to have a pop-up window to ask are you sure? yes /
no in php?
I know you can do it in Javascript, but I'm not sure what's the best way to
implement it in php. I want the page to do nothing if no is pressed.
With all due respect
[snip]
However, PHP can download a page with input fields disabled that
includes a div styled to look like a dialog box with a couple of
submit buttons labeled YES NO. Submitting YES will request the
same page from PHP but without the dialog div and with user interface
fields enabled; NO
At 6:38 PM -0500 5/29/06, Jay Blanchard wrote:
[snip]
However, PHP can download a page with input fields disabled that
includes a div styled to look like a dialog box with a couple of
submit buttons labeled YES NO. Submitting YES will request the
same page from PHP but without the dialog div
At 04:38 PM 5/29/2006, Jay Blanchard wrote:
[snip]
However, PHP can download a page with input fields disabled that
includes a div styled to look like a dialog box with a couple of
submit buttons labeled YES NO. Submitting YES will request the
same page from PHP but without the dialog div and
At 05:04 PM 5/29/2006, tedd wrote:
This really isn't any different than a page calling itself, or
another page, where the result looks like a pop-up dialog box.
That's right. Add the dialog form to the markup and position it
absolutely to appear centered a bit down from the top of the
[snip]
I'm not aware that PHP can ask a browser to open a second window
without using JavaScript.
What I'm suggesting would LOOK like a second window appearing on top
of the primary window, then going away, when it would actually be a
single page cleverly styled.
[/snip]
PHP could not open a
On Mon, May 29, 2006 1:03 pm, [EMAIL PROTECTED] wrote:
Is there anyway to have a pop-up window to ask are you sure? yes /
no in php?
I know you can do it in Javascript, but I'm not sure what's the best
way to
implement it in php. I want the page to do nothing if no is pressed.
The only way
At 06:25 PM 5/29/2006, Jay Blanchard wrote:
[snip]
I'm not aware that PHP can ask a browser to open a second window
without using JavaScript.
What I'm suggesting would LOOK like a second window appearing on top
of the primary window, then going away, when it would actually be a
single page
Is there a way to initiate a pop up window containing a form using PHP code?
I am trying to use Javascript to popup a window which contains a form.
The form is processed via a PHP script. (miniquote.scp.php3)
The popup window displays OK. The form processes OK in IE 5.0 however using
NS 4.7 I
Weird.
My netscape 4.7x does not do this under the same circumstances.
(tried 4.7 4.75, 4.76, 4.77)
On 4/8/01 1:33 PM, "Claudia" [EMAIL PROTECTED] wrote:
Is there a way to initiate a pop up window containing a form using PHP code?
I am trying to use Javascript to popup a window which
24 matches
Mail list logo