CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Create a URL from a passed parameter in a javascript function

Print topic Send  topic

Author Message
DaveM

Posts: 11
Posted: 06/20/2007, 8:50 AM

I am trying to create a complete url within a javascript function using parameters passed to the function from an onclick event.

the onclick code looks like this

ViewHelp'{Guid2_1}';


The GUID2_1 is a section with the URL that we wish to add

The fundtion looks like the following

function ViewHelp(Guid)  {  
  
        var intWidth = 450  
        var intHeight = 265  
        var intTop = 25  
        var intLeft = 50  
  
		   
        objViewJournal = window.open('/eqmssso/TwoCareDeliveryDeployment/SectionGuide.asp?RoleID=' + document.tbl2careSupervisionReport.Role.value + '&Guidance='+(Guid),'ViewJournal','scrollbars=no,resizable=yes,toolbar=no,location=no,menubar=no,left=' + intLeft + ',top=' + intTop + ',width=' + intWidth + ',height=' + intHeight);  
        if (window.focus) {  
                objViewJournal.opener = self;  
                objViewJournal.focus();  
        }   
          
  
}

What I am trying to do is change the (Guid) part of the URL to match the onclick value I wish to pass (in this case Guid2_1). But can't work out how to pass this value through.

Any help would be much appriceated

Thanks in advance

DAve M
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.