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
|