OK, a couple of things.  First, I've never used DHTML Suite, but this
works for me using extjs.  I think it will work for you, too.

First, try hard-coding your url:

contentUrl: 'http://localhost/myapp/vendor/view/107' //or whatever
your url is :-)

Note: if you put localhost in, you have to call the site from
localhost in your browser or you get permission denied errors on your
ajax call.  For example, my dev laptop is named tc-mark-lap.  If I put
localhost in my js code but try to call the code with
http://tc-mark-lap/myapp/vendor/view/107 in my browser, it won't work.

This will (I hope) fix your problem.  You can check firebug to see
what your ajax call returns (to make sure that your ajax is working
even if there is a problem with your js code).  In my code, I define a
javascript variable in my default layout like this:

<script>
        var host = '<?php echo $_SERVER['HTTP_HOST']; ?>';
</script>

In my javascript code, I put this for my ajax url: contentUrl:
'http://'+host+'/myapp/vendor/view/107'

I hope that helps some.

hydra12

On Jan 21, 9:38 am, ryoungsma <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to