s_hausen
asked on
cfwindow, cftree and cfajaximport
Hi,
I am trying to open a cfwindow and wants to use the cftree tag on it to open the new page using link and closing the cfwindow on same click. I also want to do some font size and background color on cfwindow. My page 1 code is as under for it. is there anyway to change the mouse icon to hand instead of pointer.
color and body style in cfwindow
code that creates cfwindow
when i click on image it brings the cfwindow and ask for cfajaximport which i'm already using it but error is keep popping up. On second page I want so use the link to go to particular page and close the cfwindow.
my second page code is as under:
any help, comment and feedback would be deeply appreciated.
I am trying to open a cfwindow and wants to use the cftree tag on it to open the new page using link and closing the cfwindow on same click. I also want to do some font size and background color on cfwindow. My page 1 code is as under for it. is there anyway to change the mouse icon to hand instead of pointer.
<cfwindow />
color and body style in cfwindow
bodyStyle="font-family: verdana; color: ##000000;font-size:15px;font-weight:bold;" headerStyle="font-family: verdana; background-color:##CC0033; color: white"
code that creates cfwindow
<img src="assets/images/administrator.png" width="134" height="142" alt="Administration" title="Administration" onClick="ColdFusion.Window.create('adminwindow', 'Administration','smile1.cfm',{x:100,y:100,height:300,width:400,modal:true,closable:true,draggable:true,resizable:true,center:true})"/>
when i click on image it brings the cfwindow and ask for cfajaximport which i'm already using it but error is keep popping up. On second page I want so use the link to go to particular page and close the cfwindow.
my second page code is as under:
<cfajaximport tags="cfform, cftree, cftreeitem" />
<cfform name="form">
<cftree name = "mytree" >
<cftreeitem display="Naviagtion" value="root" >
<cftreeitem value="a" parent="root" display="a" href="javascript:window.open('sp_AdministratorNewUser.cfm', '_self'); ColdFusion.Window.hide('adminwindow');">
<cftreeitem value="b" parent="root" display="b" href="javascript:window.open('sp_AdministratorNewUser.cfm', '_self'); ColdFusion.Window.hide('adminwindow');">
<cftreeitem value="c" parent="root" display="c" href="javascript:window.open('sp_AdministratorNewUser.cfm', '_self'); ColdFusion.Window.hide('adminwindow');">
</cftree>
</cfform>
any help, comment and feedback would be deeply appreciated.
ASKER
First of all, very sorry for late response. Secondly I do appreciate your help and solution but I have one little problem, I've multiple buttons and every button needs to bring the diffrent tree. I need to session or any other variable to distinguish between trees. Is there a way I can define the session in onclick attribute. or is there a way I can use two pages to accomplish this task. One to show the buttons and second to bring the tree according to the variable value..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i didn't get the exact solution what i was looking for..
Open in new window