Html / css-VBForums
Results 1 to 6 of 6

Thread: Html / css

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2006
    Posts
    510

    Html / css

    I am having trouble with Javascript and CSS on my site www.studyx.com

    I have sublinks declared in the CSS file. The error I am getting:
    Error: $("sublinks").getElements is not a function
    Source File: http://www.studyx.com/index.php
    Line: 42
    Also, I do not know where this error came from:
    Error: uncaught exception: Error: Permission denied for <http://www.facebook.com> to get property Proxy.InstallTrigger
    I got rid of most of my errors:
    http://validator.w3.org/check?uri=ht...Inline&group=0

    CSS Code:
    css Code:
    1. /* -- SUBLINKS -- */
    2. #sublinks{
    3.     width:auto;
    4.     margin:0 auto;
    5.     background:#888888 url(img/sublink.gif);
    6.     height:30px;
    7.     font-size:11px;
    8. }   
    9.     #sublinks ul{
    10.      height:32px;
    11.      line-height:31px
    12.     }
    13.     #sublinks ul li{
    14.         display:inline;
    15.     }
    16.     #sublinks ul li a,
    17.     #sublinks ul li a:visited {
    18.         padding:0 20px;
    19.         display:block;
    20.         text-decoration:none;
    21.         float:left;
    22.         color:#FFFFFF;
    23.     }
    24.     #sublinks ul li a:hover{
    25.         text-decoration:underline;
    26.     }   
    27. .style1 {color: #000000}

    Mootools http://mootools.net/download/version/1.1.2 Uncompressed with docs
    Last edited by rex64; Jan 10th, 2012 at 01:15 PM.
    I use VB .NET 2010.

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,501

    Re: Html / css

    CSS is irrelevant to your problem. Your error's telling you that getElements() isn't working - that it's not even a function. Since the function is part of the MooTools library, this sort of error should only occur if something's wrong with your implementation of the library.

    You need to correct the validation problems with your <link> tags, namely that they need to be in the <head>, and they need to be closed:
    Code:
    <link href="styleStudyX.css" rel="stylesheet" type="text/css"/>
    An unclosed <link> in front of your MooTools <script> could be interfering here. If that's not it, post again.

    As for the Facebook error, I'm not seeing it on your page.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2006
    Posts
    510

    Re: Html / css

    I removed the line above mooTools. The line of code appears to be in the moo:
    javascript Code:
    1. getElements: function(selector, nocash){
    2.         var items = [];
    3.         selector = selector.trim().split(' ');
    4.         for (var i = 0, j = selector.length; i < j; i++){
    5.             var sel = selector[i];
    6.             var param = sel.match($$.shared.regexp);
    7.             if (!param) break;
    8.             param[1] = param[1] || '*';
    9.             var temp = $$.shared[$$.shared.method].getParam(items, this, param, i);
    10.             if (!temp) break;
    11.             items = temp;
    12.         }
    13.         return $$.shared[$$.shared.method].getItems(items, this, nocash);
    14.     },

    I added a slightly newer version of MooTools but I still get the same error.

    Mootools http://mootools.net/download/version/1.1.2 Uncompressed with docs
    I use VB .NET 2010.

  4. #4
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,501

    Re: Html / css

    You've got another <link> element that's still problematic.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2006
    Posts
    510

    Re: Html / css

    In my error console I am still getting this error:
    Error: uncaught exception: Error: Permission denied for <http://www.facebook.com> to get property Proxy.InstallTrigger
    Last edited by rex64; Jan 10th, 2012 at 04:58 PM.
    I use VB .NET 2010.

  6. #6
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,501

    Re: Html / css

    Hard for me to help with that one when I'm not seeing it, but the majority of search results on the subject appear to blame Firebug - are you using Firebug?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.