Announcement

Collapse
No announcement yet.

Object not recognised

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Object not recognised

    I have a script working fine outside Actinic but once inside Actinic it complains about Object not recognised.

    It is coming from using:

    <script type="text/javascript">
    window.addEvent('domready', function(){
    var myMenu = new ImageMenu($$('#imageMenu a'),{openWidth:310, border:2});
    });

    </script>

    in the <head> of the page. This is from Mootools library. It fails in both IE and FF when previewing. Any pointers greatly welcomed.

    v9.0.2


    Bikster
    SellerDeck Designs and Responsive Themes

    #2
    its a security issue, and possibly a path issue.

    can you put the entire source in the pastebin?

    http://actinic.pastebin.com/

    Comment


      #3
      on a side note, dont you just LOVE the moo?

      I cant get enough of its compactness and its robustness.

      Comment


        #4
        I am noo to the moo but can see lots of potential

        I will paste the code when back to that machine this evening.


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #5
          Gabe - the plain HTML version is at link removed


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment


            #6
            its the same concept used in my (embarrasingly unfinished) site:

            http://www.gabrielcrowe.co.uk/

            How are you referencing the mooscript in your template? is it just uploaded to the root and referenced?

            if you upload the file, then reference the js files full url in actinic, the security model blocks it, somtimes.

            Comment


              #7
              also: yum yum yum.

              Comment


                #8
                I added the links to 2 .js files along with the into the <head>

                HTML Code:
                <script type="text/javascript">
                window.addEvent('domready', function(){
                var myMenu = new ImageMenu($$('#imageMenu a'),{openWidth:310, border:2, onOpen:function(e,i){alert(e);}});
                });
                </script>
                Actinic complains about the above script ..... deleting out removes the error but obviously the slidey bit does not slide.

                It is not working offline ... copies of the .js in PreviewHTML, Design, Site subfolders etc. Everything is in the site1 root.


                Bikster
                SellerDeck Designs and Responsive Themes

                Comment


                  #9
                  try using the full url to both scripts online in the template, to reference the script, to test.

                  Comment


                    #10
                    Good thinking - will implement and update with the result.


                    Bikster
                    SellerDeck Designs and Responsive Themes

                    Comment


                      #11
                      Just trialled with the test version in a clean site on this machine and it appears to have resolved - hopefully it will port straight over onto the live site on the other PC.

                      Cheers Gabe


                      Bikster
                      SellerDeck Designs and Responsive Themes

                      Comment


                        #12
                        The absolute URL was not the saviour - there was a conflict with another .js script causing the issue on the live site. Now resolved.


                        Bikster
                        SellerDeck Designs and Responsive Themes

                        Comment

                        Working...
                        X