CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Redirect to new page in a new tab.(Method Changed)

Print topic Send  topic

Author Message
saseow

Posts: 744
Posted: 01/24/2013, 12:56 PM

Is there any way to call or create a javascript link containing '_blank' from PHP?
View profile  Send private message
DataDoIT
Posted: 01/24/2013, 3:21 PM

In some scenarios, you can:

echo "<script>window.open('http://www.codechargesupport.com',
'_blank');</script>; exit;

but describe in more detail what you're trying to accomplish. The above
will likely get blocked by browser popup blockers.
saseow

Posts: 744
Posted: 01/24/2013, 7:32 PM

Hi DataDoIT,

Thanks for the reply. I wanted to be able to have a list of pages in an editable grid with a check box next to each. The user would check the pages he wanted to see and after submitting the grid I wanted each of the pages to open in a new Tab.
The problem was that firstly, the pages were blocked with the popup blocker as you described in your solution and secondly, if you enable the popups using Chrome, the pages were opened in a new window, not tab.
I have decided that this is just not reliable so have resorted to a grid with links. The client can simply right_click the link and open in a new tab or hold down the Ctrl key and click all the links he wants to open in new tabs. I just don't think that it is reliable enough to do it the way the client wants it done.

Thanks again for your input!
View profile  Send private message
DataDoIT
Posted: 01/24/2013, 7:58 PM

You could get real slick and instead of opening new tabs or windows,
open a custom built AJAX modal window with the appropriate tabs - even
using the CCS tabs feature in the AJAX modal. Populate the contents of
the modal using cURL. It'll be not unlike a modal picture viewer.

A good deal of work involved there, but doable.
saseow

Posts: 744
Posted: 01/24/2013, 9:50 PM

Hell, that sounds wonderful! If I could, I would.
Just too much hassle for the amount of money.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.