Here is the js code to generate the window <script type="text/javascript"> function createNewWindow() { var newWindowModel = new DHTMLSuite.windowModel( {windowsTheme:false,id:'newWindow', title:'New dynamically created window', xPos:200,yPos:200,minWidth:400,minHeight:600 } ); newWindowModel.addTab({ id:'myTab',htmlElementId:'myTab',tabTitle:'tab1', contentUrl:'vendor\view\107' } );\\this is the URL to load var newWindowWidget = new DHTMLSuite.windowWidget(newWindowModel); newWindowWidget.init(); } </script> <a href="#" onclick="createNewWindow();return false">Create window</A>
On Jan 21, 9:51 am, hydra12 <[EMAIL PROTECTED]> wrote: > Can you show the relevant js code? Specifically, how are you > inputting the url? > > On Jan 21, 7:29 am, ryoungsma <[EMAIL PROTECTED]> wrote: > > > I am looking at using the DHTML Suite (dhtmlgoodies.com) with my > > application. I am using their Window Widget to retrieve some > > information via AJAX. The issue is that it uses the URL as a > > parameter when when you create the window from Javascript. Cake > > always seems to return a message that it is looking for a different > > controller. > > > For example, the URL entered into the parm field is '\vendors\view > > \105' > > > Here is what Cake is reporting for an error. > > <?php > > class VendorsController extends AppController { > > > var $name = 'Vendors'; > > > function viewG() { > > > } > > > } > > > ?> > > > Any thoughts? Have I provided enough information? Thank you! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---