CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Two window URL variables

Print topic Send  topic

Author Message
ckroon

Posts: 869
Posted: 12/17/2008, 10:56 AM

Ok.. weird one.
I have a client who has a dual monitor setup.
He wants to be able to manipulate related data on these two screens.

I can bring up a new window with a Javascript On Click Event... but how do I pass the URL's over to that named window?


_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
melvyn


Posts: 333
Posted: 12/17/2008, 11:17 AM

First workaround: Using a link.
Build a normal link. Set the paramaters as normal variables and (in the advanced tab) set the target frame as _blank.

That should open the link in a new window.

Second workaround: Using a custom javascript.
Create a label with the parameter you want. Place it anywhere. Test it as label (be sure it's calling the value you need). Check your label's name, by default it will be label1, label2, ... let's say you rename it as "MyLabel".
Switch to view html and you'll notice something like {MyLabel} within braces. Now, we'll move that from that place to where we need it
  
<div id="my-div" onclick="openMyWindow({MyLabel});">  
   show some data here  
</div>  

That will call the javascript function openMyWindow() passing the value you asigned.

if MyLabel is 37, it will receive openMyWindow(37)

Javascript code:
  
function openMyWindow(value){  
   window.open("mysecondmonitor.php?parameter="+value);  
}  


_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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