When I click on your js file link , it fails to open it ?

On 9/5/06, NickCarlson <[EMAIL PROTECTED]> wrote:
>
> I'll explain a bit more:
>
> The following source code works perfectly if placed within a static
> html file on my hard drive. We'll call this file c:/test/test.html.
> Note: This file isn't running under cakephp, it's simply just an html
> file.
> ****************************
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd";>
> <html>
> <head>
> <title>Nifty Corners: Javascript and CSS rounded corners</title>
> <meta http-equiv="content-type" content="text/html;
> charset=iso-8859-1">
> <meta name="generator" content="HAPedit 3.1">
> <style type="text/css">
> body{padding: 30px 0 0;background:#FFF;
>     font: 100.01%/1.3 Verdana,Arial,sans-serif;text-align:center}
> div#box{width: 18em;padding: 20px;margin:0 auto;
>     background:#E6E6E6;color:#000}
> h1{font: lighter 200% "Trebuchet MS",Arial sans-serif;color: #208BE1}
> h1,p{margin:0;padding:10px 20px}
> </style>
> <script type="text/javascript"
> src="http://www.nicks-remote-server.com/niftycube.js";></script>
> <script type="text/javascript">
> window.onload=function(){
> Nifty("div#box","big");
> }
> </script>
> </head>
> <body>
> <div id="box">
> <h1>Nifty Corners Cube&trade;</h1>
>
> <p>One call. Two parameters. Three sizes.</p>
> </div>
> </body>
> </html>
> ***************************************
>
> This is almost exactly the same as example 1 from the niftyCube
> website. (http://www.html.it/articoli/niftycube/index.html)
>
> Now, I have a current cakephp default app up and running. I create my
> default.thtml file under /app/views/layouts/, and put the above code
> into the file. When I browse to the app directory, the html is
> rendered, however, niftyCube is not functioning (ie, the div's corners
> are not rounded).
>
> After looking at the rendered source code, I see that it is exactly the
> same code present on the local html file c:/test/test.html. Why would
> the local file work perfectly in tandom with niftyCube, while the
> cakephp default.thtml template not work with niftycube? As you can see
> above, the javascript file is on a remote server (which I control). I
> did this for test purposes.
>
> I'm really stumped here. The only thing I can think of is that the
> internals of Cake are parsing the thtml file, but not allowing the
> Javascript to work correctly.
>
> Any input would be greatly appreciated.
>
> Nick
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to