0

I am using jquery round corner plugin in lifray theme in order to add round corner functionality in all kind of browsers, including IE6 to IE8. i have included the jquery round corner plugin in portla_normal.vm like this :-

<head>
    <title>$the_title - $company_name</title>

    <script type="text/javascript" src="/html/js/jquery/jquery.js"></script>                    
    <script type="text/javascript" src="$javascript_folder/jquery_roundcorner.js"></script>
    <script type="text/javascript" src="$javascript_folder/jquery.corner.js"></script>

        $theme.include($top_head_include)

 </head>

This is my jquery_roundcorner.js file, when i see on console of the browser getting the error in this file like below.

$(document).ready(function()    {
    $('#navigation li').corner("round 6px");
    $('#navigation a').corner("round 6px");
});

I am geting following error on browser console:

Uncaught TypeError: Object #<Object> has no method 'corner'.

Can any one help me how to resolve this?


Is it a good practice to use an "id" attribute in Neo4J?

In my system I have a relational DB table with "id" columns, and I am representing some of that same data in Neo4J.

My first approach is to make an "id" attribute in Neo which correlates to the id column.

Is there any reason that this isn't a good practice? Does it conflict technically or conceptually with the node IDs that Neo generates?

4

2 回答 2

1
<head>
   <title>$the_title - $company_name</title>
   <script type="text/javascript" src="/html/js/jquery/jquery.js"></script>
   <script type="text/javascript" src="$javascript_folder/jquery.corner.js"></script>             
   <script type="text/javascript" src="$javascript_folder/jquery_roundcorner.js"></script>
   $theme.include($top_head_include)
</head>

改变加载javascript的顺序!

您必须确保首先加载 jquery 插件!

于 2014-01-21T06:06:23.123 回答
0

在我的 jquery_roundcorner.js 中,我用以下代码替换了上面的代码。实际上在velocity文件中也使用了$,可能会有冲突。所以最后我尝试了这个,它现在可以工作了。

var jq=$.noConflict();
jq(document).ready(function(){
    alert('hello alert1 ');
    jq('#navigation li').corner("round 6px");
    jq('#navigation a').corner("round 6px");
    alert('hello alert3 ');
});
于 2014-01-21T09:47:27.280 回答