23489 Posts in 18996 Topics by 2878 members
|Go to End|
31 October 2011 at 3:35am
I am trying find a possibility to display rounded corners for IE8 and found this plugin:
I used a simple test to check wether the plugin works anyway. Using a simple *.html it works.
But unfortunatly it won't work in SilverStripe. In the templates/Page.ss I added 2 lines after $MetaTags:
To make sure the div exist when I use the corner() function I added some more lines:
The Banner-div is defined in /templates/Layout/Home.ss I try to move the div to Page.ss but it won't work either. Firebug shows this error:
$("#Banner").corner is not a function
31 October 2011 at 2:16pm
3 November 2011 at 10:43am
First of all thanks for the answer. Unfortunatly it won't work. I have got NoScript Add-On for Firefox installed. The Add-On only recognize 3 Sites:
2 belongs to facebook and 1 to my domain. Even after removing the Facebook Timeline it won't work. Does anyone manage it ? If yes, at least I know it is possible within SilverStripe.
6 November 2011 at 9:17am
1. Use scope to ensure that $ means what you want. This is a pretty common way of wrapping jquery scripts. You pass the jQuery object into your self executing function as follows.
2. Explicitly use jQuery object rather than $ shortcut. e.g.
6 November 2011 at 10:22am
I am pretty sure the path is correct. I try to give a wrong path on porpuse. In that case Firebug tells me:
"NetworkError: 404 Not Found - http://www.mysite.de/mysite/jdavascript/jquery.corner.js"
I tried what you tell me as well.
The 2nd one won't work. It tells me the same as before.
The 1st one seems to work. At least Firebug isn't telling me anything. But after I have a look in IE8 through a VM nothing happends.
To make sure the function is called I add a alert to the function, which works fine.
Have you tried the plugin ?
|Go to Top|