Ask a Question related to PHP Development, Design and Development.
-
Jswalter #1
javascript open window and a PHP script...
I have a link on a page...
<a href="./admin/?listType=event_list&action=item_add" target=_blank>
Add or Update Your Event
</a>
This open the PHP file just fine and passes the vars fine.
But I need a new window to open via JavaScript. Why? Because I have a
"RETURN" link on the opening page that closes the child page, and if this
new window is not opened via JavaScript I get the "Close Window OK?" dialog.
The only way to not get that annoying dialog is to have that child window
opened via JavaScript.
So I did this...
<a
href="javascript:window.open('./admin/?listType=event_list&action=item_add',
'', '');">
Add or Update Your Event
</a>
A child window opens, I get 1 error dialog and a Download dialog, and then
the page opens fine.
error:
IE cannot download calendar.php from window.open('...
IE was not able to open this Internet site. The requested site is
either
unavailable or cannot be found. Please try again.
I hit OK and both the error dialog and the download page goes away.
But the desired page is displayed in the child window!
And the "RETURN" link closes the window without complaint!
So, I've solved one issue to raise another.
Anyone have any idea on this?
Thanks
Walter
Jswalter Guest
-
open browser window javascript problem on dreamweaver2004 mx
hi folks, i've linked a thumbnail to open a new browser window to show a larger image of the thumbnail. i've taken all the display options off... -
Open Window with Javascript from WebUserControl and return values
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on... -
Flash Page goes blank with Javascript:window.open() to HTML pages
Hello, I just finished a site for my hobby/business of making blues guitar slides. Everything works great except that some browsers seem blank out... -
External Event + JavaScript/VBScript (open.window)
Hi My Lingo script triggers with external event a VB / & Javascript in the Browser. In IE6 I can only open an URL within the same BrowserWindow... -
how to close a javascript window when asp script end
i open the file download.asp from another main.asp page using window.open what the problem is when i clikc on the hyperlink it prompts me the ie... -
Marek Kilimajer #2
Re: [PHP] javascript open window and a PHP script...
You should use:
<a href="./admin/?listType=event_list&action=item_add" target="_blank"
onclick="window.open(this.href,'', ''); return false;">Add or Update
Your Event</a>
Propably won't fix your problem but this will help javascript disabled
browsers.
jsWalter wrote:> I have a link on a page...
>
> <a href="./admin/?listType=event_list&action=item_add" target=_blank>
> Add or Update Your Event
> </a>
>
> This open the PHP file just fine and passes the vars fine.
>
> But I need a new window to open via JavaScript. Why? Because I have a
> "RETURN" link on the opening page that closes the child page, and if this
> new window is not opened via JavaScript I get the "Close Window OK?" dialog.
>
> The only way to not get that annoying dialog is to have that child window
> opened via JavaScript.
>
> So I did this...
>
> <a
> href="javascript:window.open('./admin/?listType=event_list&action=item_add',
> '', '');">
> Add or Update Your Event
> </a>
>
> A child window opens, I get 1 error dialog and a Download dialog, and then
> the page opens fine.
>
> error:
> IE cannot download calendar.php from window.open('...
> IE was not able to open this Internet site. The requested site is
> either
> unavailable or cannot be found. Please try again.
>
> I hit OK and both the error dialog and the download page goes away.
>
> But the desired page is displayed in the child window!
>
> And the "RETURN" link closes the window without complaint!
>
> So, I've solved one issue to raise another.
>
> Anyone have any idea on this?
>
> Thanks
>
> Walter
>Marek Kilimajer Guest
-
Jswalter #3
Re: [PHP] javascript open window and a PHP script...
That's it!
It works like a charm!
Thank you very, very much!
Walter
Jswalter Guest



Reply With Quote

