Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Strange NOF11 problem, .getting .html files duplicated as .js files

  1. #1
    Shannell
    Guest

    Default Strange NOF11 problem, .getting .html files duplicated as .js files

    Ive been updating a couple of sites lately and have been getting a
    strange problem. Every html page I upload gets a duplicate file uploaded
    with a .js extension. Ive pasted the content from one of these files.
    This can actually break a website as index.php gets a index.js and the
    visitors browser will try and open the .js file as .php seems to be a
    lower priority than index.js for some reason.

    I think the only javascript Ive got going on is google analytics, thats
    what I understand a .js file to be.
    What on earth can be going on here?


    // Begin Actions
    function F_doLoaded() {
    document.main = new F_cMain();
    document.objectModel = new Object();
    F_OM('Layout','LayoutLYR', 'doc', '', new Array());
    F_OM('' , 'LYR', 'img', 'Layout',null,'',0);

    F_pageLoaded('Layout');
    }

    $(document).ready( function() {
    F_onLoaded();
    });
    // End Actions



  2. #2
    Twayne
    Guest

    Default Re: Strange NOF11 problem, .getting .html files duplicated as .js files

    In news:id1fm4$rl$1@DailyPlanet.news.netobjects.com,
    Shannell <ss@chargin.org> typed:
    > Ive been updating a couple of sites lately and have been
    > getting a strange problem. Every html page I upload gets a
    > duplicate file uploaded with a .js extension. Ive pasted
    > the content from one of these files. This can actually
    > break a website as index.php gets a index.js and the
    > visitors browser will try and open the .js file as .php
    > seems to be a lower priority than index.js for some reason.
    > I think the only javascript Ive got going on is google
    > analytics, thats what I understand a .js file to be.
    > What on earth can be going on here?
    >
    >
    > // Begin Actions
    > function F_doLoaded() {
    > document.main = new F_cMain();
    > document.objectModel = new Object();
    > F_OM('Layout','LayoutLYR', 'doc', '', new Array());
    > F_OM('' , 'LYR', 'img', 'Layout',null,'',0);
    >
    > F_pageLoaded('Layout');
    > }
    >
    > $(document).ready( function() {
    > F_onLoaded();
    > });
    > // End Actions


    No idea, but I don't think it's analytics causing it. It's easy enough to
    tell; turn analytics off and see what happens. Are you not using js for the
    menu items, etc.? Got a website URL?

    HTH,

    Twayne`



  3. #3
    Shannell
    Guest

    Default Re: Strange NOF11 problem, .getting .html files duplicated as .jsfiles

    Hi, yes I guess I would be using js for the menus, forgot about that.
    Basically it seems any site i edit gets this problem.
    One is foxrealestate.com.au
    I found a setting in the appliaction options referring to js, well "java
    runtime enviroment" (actually I think thats different to javascript is
    it??) it says
    use version bundled with Netobjects
    or
    Use external JRE (1.6)
    Mine is set to the bundled option.


    On 30-Nov-10 10:53 AM, Twayne wrote:
    > In news:id1fm4$rl$1@DailyPlanet.news.netobjects.com,
    > Shannell<ss@chargin.org> typed:
    >> Ive been updating a couple of sites lately and have been
    >> getting a strange problem. Every html page I upload gets a
    >> duplicate file uploaded with a .js extension. Ive pasted
    >> the content from one of these files. This can actually
    >> break a website as index.php gets a index.js and the
    >> visitors browser will try and open the .js file as .php
    >> seems to be a lower priority than index.js for some reason.
    >> I think the only javascript Ive got going on is google
    >> analytics, thats what I understand a .js file to be.
    >> What on earth can be going on here?
    >>
    >>
    >> // Begin Actions
    >> function F_doLoaded() {
    >> document.main = new F_cMain();
    >> document.objectModel = new Object();
    >> F_OM('Layout','LayoutLYR', 'doc', '', new Array());
    >> F_OM('' , 'LYR', 'img', 'Layout',null,'',0);
    >>
    >> F_pageLoaded('Layout');
    >> }
    >>
    >> $(document).ready( function() {
    >> F_onLoaded();
    >> });
    >> // End Actions

    >
    > No idea, but I don't think it's analytics causing it. It's easy enough to
    > tell; turn analytics off and see what happens. Are you not using js for the
    > menu items, etc.? Got a website URL?
    >
    > HTH,
    >
    > Twayne`
    >
    >



  4. #4
    Senior Member
    Join Date
    Apr 2010
    Posts
    352

    Default

    The .js files are absolutely for Google Analytics. NetObjects generates them for any external links you have on each of your NetObjects page so it can track them.

    .js files should never be a priority over .php .htm or .html files for your visitors when opening links or pages (unless you put a link directly to index.js)

    If it is, speak to your web host or check your computer as it is not normal behaviour of any browser to open index.js as a priority over index.php / index.htm or index.html.

  5. #5
    Shannell
    Guest

    Default Re: Strange NOF11 problem, .getting .html files duplicated as .jsfiles

    Well I did fix that by adding a .htaccess file with
    DirectoryIndex index.php

    But I dont want all these .js files uploaded, Im not sure what to do
    next..??
    What does this code refer to? Seems the same code every time.

    // Begin Actions
    function F_doLoaded() {
    document.main = new F_cMain();
    document.objectModel = new Object();
    F_OM('Layout','LayoutLYR', 'doc', '', new Array());
    F_OM('' , 'LYR', 'img', 'Layout',null,'',0);

    F_pageLoaded('Layout');
    }

    $(document).ready( function() {
    F_onLoaded();
    });
    // End Actions






    On 30-Nov-10 11:17 AM, Technology Ideas wrote:
    > The .js files are absolutely for Google Analytics. NetObjects generates
    > them for any external links you have on each of your NetObjects page so
    > it can track them.
    >
    > js files should never be a priority over .php .htm or .html files for
    > your visitors when opening links or pages (unless you put a link
    > directly to index.js)
    >
    > If it is, speak to your web host or check your computer as it is not
    > normal behaviour of -any- browser to open index.js as a priority over
    > index.php / index.htm or index.html.
    >
    >
    >
    > Regards,
    > Andrew Baker | http://www.technologyideas.com.au
    > Australia



  6. #6
    Senior Member
    Join Date
    Apr 2010
    Posts
    352

    Default

    Not sure why you are worrying about them at all, they are for Google Analytics to do it's job, but if you must remove them:

    If you don't want Google Analytics, switch it off in NetObjects fully by going into TOOLS>OPTIONS>CURRENT SITE then click SITE TRAFFIC tab and untick "Enable Google Analytics"

    If you do want tracking but for whatever reason don't want to track everything that goes on within your website pages, you will still need to switch Google Analytics off in NetObjects (see above) and simply add the code manually to your Master HTML. Right click in your MasterBorder, choose MasterBorder HTML and then click the BodyEnd icon at the top and paste the Google Analytics code in manually. Replace UA-xxxxxx-x below with your specific UA code.


    <script type="text/javascript">

    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>

    <script type="text/javascript">
    try{
    var pageTracker = _gat._getTracker("UA-xxxxxx-x");
    pageTracker._trackPageview();
    } catch(err) {}
    </script>

  7. #7
    Shannell
    Guest

    Default Re: Strange NOF11 problem, .getting .html files duplicated as .jsfiles

    Ok so its normal behavior then?
    Its just that I havent changed anything and this started happening.
    Ive never had a bunch of .js files in my directories before. Does anyone
    esle have these same files in any of their current nof11 websites?


    On 30-Nov-10 11:49 AM, Technology Ideas wrote:
    > Not sure why you are worrying about them at all, they are for Google
    > Analytics to do it's job, but if you must remove them:
    >
    > If you don't want Google Analytics, switch it off in NetObjects fully
    > by going into TOOLS>OPTIONS>CURRENT SITE then click SITE TRAFFIC tab and
    > untick "Enable Google Analytics"
    >
    > If you do want tracking but for whatever reason don't want to track
    > everything that goes on within your website pages, you will still need
    > to switch Google Analytics off in NetObjects (see above) and simply add
    > the code manually to your MasterBorder HTML. Right click in your
    > MasterBorder, choose MasterBorder HTML and then click the BodyEnd icon
    > at the top and paste the Google Analytics code in manually. Replace
    > UA-xxxxxx-x below with your specific UA code.
    >
    >
    > <script type="text/javascript">
    >
    > var gaJsHost = (("https:" == document.location.protocol) ?
    > "https://ssl." : "http://www.");
    > document.write(unescape("%3Cscript src='" + gaJsHost +
    > "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    > </script>
    >
    > <script type="text/javascript">
    > try{
    > var pageTracker = _gat._getTracker("UA-xxxxxx-x");
    > pageTracker._trackPageview();
    > } catch(err) {}
    > </script>
    >
    >
    >
    > Regards,
    > Andrew Baker | http://www.technologyideas.com.au
    > Australia



  8. #8
    Senior Member
    Join Date
    Apr 2010
    Posts
    352

    Default

    Yes. It's normal. Read through my post where I've explained that. Our website has them both in the root directory and in the /html directory.

    To clarify though, if you haven't switched on Google Analytics in NetObjects ever and all of a sudden a bunch of .js files have appeared by themselves then that is not normal.

    Did you check whether Google Analytics is switched on using my instructions?

    You can test this by switching it off and seeing if the .js files disappear, but this may be affected by how you upload your finished files. If you use NetObjects publishing, it should remove them automatically.

    I am replying via the NetObjects forums http://forums.netobjects.com and I see you are using a Newsgroup so you might not be seeing what's here.

  9. #9
    Shannell
    Guest

    Default Re: Strange NOF11 problem, .getting .html files duplicated as .jsfiles

    Thanks for the help Andrew.
    yes I check the tickbox and its definately turned off, but Im still
    getting js files uploaded. Ive done several checks and it occurs every time.
    These are all sites that were exported as templates from Nof10. Ive been
    using them without this issue until today.


    On 30-Nov-10 12:46 PM, Technology Ideas wrote:
    > Yes. It's normal. Read through my post where I've explained that. Our
    > website has them both in the root directory and in the /html directory.
    >
    > To clarify though, if you haven't switched on Google Analytics in
    > NetObjects ever and all of a sudden a bunch of .js files have appeared
    > by themselves then that is not normal.
    >
    > Did you check whether Google Analytics is switched on using my
    > instructions?
    >
    > You can test this by switching it off and seeing if the .js files
    > disappear, but this may be affected by how you upload your finished
    > files. If you use NetObjects publishing, it should remove them
    > automatically.
    >
    > I am replying via the NetObjects forums http://forums.netobjects.com
    > and I see you are using a Newsgroup so you might not be seeing what's
    > here.
    >
    >
    >
    > Regards,
    > Andrew Baker | http://www.technologyideas.com.au
    > Australia



  10. #10
    Senior Member
    Join Date
    Apr 2010
    Posts
    352

    Default

    I am starting to guess as it's nearly impossible for me to help you from here.

    I can categorically tell you that if you switch on Google Analytics in NetObjects it creates a .js file for each of the pages you have and jquery as well. It might be because you had Google Analytics switched on previously in that file.

    If you did, try to delete all those .js files using FileZilla, any external FTP program or cPanel etc. and then republish your entire site with Publish Changed Assets Only unticked?

Posting Permissions

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