• GoDaddy Community
  • Websites + Marketing | Website Builders
  • Websites + Marketing | Website Builders

    cancel
    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 
    Go to solution

    700,000 characters exceeds HTML limit

    Hi,

     

    I've created a HTML calculator tool that includes a hardcoded Javascript array with 42,000 data cells, and am trying to implement it on a GoDaddy website.  The calculator does work just fine in a browser, but the program requires a total of 700,000 characters in order to hardcode the data, and this far exceeds the HTML character limit.  Unfortunately I have no choice in hardcoding the data due to the Same Origin Policy (normally I would use a CSV file).  Could be worse though.....it was originally 1.4 million characters before I optimised the code to the best of my abilities.

     

    Surely there's a way around this, but I've run out of options.

     

    Thanks

    4 REPLIES 4
    Helper V
    Helper V

    Re: 700,000 characters exceeds HTML limit

    @mechengineer15,

     

    What HTML limit are you referring to?...

    Are you working on a Website Builder?, and inserting code in a custom HTML section...

    Maybe the custom HTML section has a limit...

    Why don't you go for Linux or Windows hosting...

    Hope a GoDaddy moderator looks into this...

     

    Regards,

     

    Praveen Thomas

    GoDaddy 24/7 Support www.x.co/247support
    ----->NEXIA

    Re: 700,000 characters exceeds HTML limit

    That's correct, it's the Website Builder section that allows adding HTML custom code to a web page.

    Unfortunately I'm stuck with the Website Builder, because that's all I have at my disposal.  Unless there's an easier way to create a calculator with a large integrated data array, such as using an external link to redirect the user to a standalone HTML page (as a workaround for the character limit)?  Not sure.

     

    EDIT:  Maybe using iFrame linked to an external HTML page would work?

    Helper V
    Helper V
    Solution

    Re: 700,000 characters exceeds HTML limit

    @mechengineer15,

     

    How about using Google Sites or free hosting for the calculator page...

    ----->https://www.x10hosting.com

    ----->https://www.50webs.com

     

    Free hosting is great, but there are pros and cons to it...

     

    Maybe you can use it to start with...

     

    Regards,

     

    Praveen Thomas

    GoDaddy 24/7 Support www.x.co/247support
    ----->NEXIA

    Re: 700,000 characters exceeds HTML limit

    Thanks! I'm going to highlight your post as the solution, because hosting the page with x10hosting and linking to an iFrame is exactly what I've been looking for.

    For some reason the iFrame doesn't work in the Website Builder at the moment (something about "host has closed the connection"?), but using a direct link to the external page is pretty good for now.