javascript works only if written in one line Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
5 posters

    javascript works only if written in one line

    poesia-verses
    poesia-verses
    Forumember


    Male Posts : 569
    Reputation : 22
    Language : and small english

    In progress javascript works only if written in one line

    Post by poesia-verses 26/9/2020, 01:51


    javascript works only if written in one line. but if you copy the normal code somewhere, it doesn't work

    used to work on everyone. and then as a result of the updates it became like this

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51517
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: javascript works only if written in one line

    Post by SLGray 26/9/2020, 02:13

    Are you should you are copying and pasting correctly?  If you are doing it from here, make sure that nothing extra has been added.



    javascript works only if written in one line Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15350
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    In progress Re: javascript works only if written in one line

    Post by skouliki 26/9/2020, 02:24

    can you post a screenshot please
    do you get any message ?
    is this for all codes or just one?
    are the java enabled?

    poesia-verses
    poesia-verses
    Forumember


    Male Posts : 569
    Reputation : 22
    Language : and small english

    In progress Re: javascript works only if written in one line

    Post by poesia-verses 26/9/2020, 02:38

    correctly

    correctly
    I can't imagine a screenshot because I have already made all the codes in one line

    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15350
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    In progress Re: javascript works only if written in one line

    Post by skouliki 26/9/2020, 04:22

    poesia-verses wrote:correctly

    correctly
    I can't imagine a screenshot because I have already made all the codes in one line

    sorry i can not fully understand you 

    you have all your codes combined in one code ?

    poesia-verses
    poesia-verses
    Forumember


    Male Posts : 569
    Reputation : 22
    Language : and small english

    In progress Re: javascript works only if written in one line

    Post by poesia-verses 26/9/2020, 06:02

    have all your codes combined in one code ?
    no, of course
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15350
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    In progress Re: javascript works only if written in one line

    Post by skouliki 26/9/2020, 06:04

    do you get any message?
    is this for all codes or just one?
    are the java enabled?
    is this problem on mobile or desktop version?

    ok please answer to each question separately


    Last edited by skouliki on 27/9/2020, 00:52; edited 1 time in total

    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19358
    Reputation : 2006
    Language : fluent in dork / mumbojumbo & English haha

    In progress Re: javascript works only if written in one line

    Post by Ape 26/9/2020, 11:39

    It sounds like things could be missing in the code you are using.

    Can you tell us where you got the code from.
    "IE" where the post / topic / Thread is giving us a URL Address so we can test this our self.

    Regards,

    Ape



    javascript works only if written in one line Left1212javascript works only if written in one line Center11javascript works only if written in one line Right112
    javascript works only if written in one line Ape_b110
    javascript works only if written in one line Ape1010
    levy
    levy
    Hyperactive


    Male Posts : 2631
    Reputation : 350
    Language : English, Romanian
    Location : Romania

    In progress Re: javascript works only if written in one line

    Post by levy 26/9/2020, 18:44

    Hello @poesia-verses

    Try cleaning up the cache, history and anything like this. All of your members have problems like this? Maybe the cache to them, for visiting the website over too long of period of time got damaged but I'm not sure about that either.
    I'd still recommend to clean the cache and if you'd like to do the work, try making a simple jQuery, I'll leave one below for you to make a square. Don't forget please, to clear the cache, then add the code to the javascripts

    Code:
    $(function(){$(function(){
      $('body').append('<div class="square" style="position:absolute;width:150px;height:150px;left:0;top:0;z-index:9999;"></div>');
        })
      });
     

    Another fix might be just to add the codes to your overall_header template as
    Code:
    <script></script>

    poesia-verses likes this post

    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15350
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    In progress Re: javascript works only if written in one line

    Post by skouliki 3/10/2020, 04:27

    if your request is complete, please mark it as Solved