We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33992 ☆ A M B ☆
    • 455 Posts
    Hi,
    I know that there are many ways to create pages but i want to know,
    What is different from ways?

    • Sometimes it is possible to do something by a Snippet and do same by JavaScript.
    • Sometimes it is possible to do something by JavaScript and do same by HTML.
    • Sometimes it is possible to do something by HTML and do same by CSS.
    • and etc
    Which way is better for processing, loading time, validation, for many browsers & systems and etc [generally]?

    Regards
    AHHP
      God loves me. 【ツ】


      MODX.ir (Persian Support)

      Boplo.ir/modx/ (Persian)
      • 6726
      • 7,075 Posts
      None is better in itself !
      It all depends on what you want to do and what the context is.

      Want a tip : always choose the path of least resistance, e.g the simplest solution (often the most elegant one) !

      That would generally mean :

      • use html over js if possible, and if you use js, never loose sight of accessibility (make sure it degrades well for those who have js disabled or unavailable).
      • most of the time, use css over inline styles (html) for styling, keep content and presentation separate. But as I said, if you have just one element to style, then don’t create a class for it and bloat your css.
      • if php is not heavier than js, maybe choose php, since you don’t depend on browser settings
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 33992 ☆ A M B ☆
        • 455 Posts
        Thanks,
        The Best reply! wink
          God loves me. 【ツ】


          MODX.ir (Persian Support)

          Boplo.ir/modx/ (Persian)
          • 1379
          • 22 Posts
          Quote from: davidm at May 10, 2007, 02:46 AM

          None is better in itself !
          It all depends on what you want to do and what the context is.

          Want a tip : always choose the path of least resistance, e.g the simplest solution (often the most elegant one) !

          That would generally mean :

          • use html over js if possible, and if you use js, never loose sight of accessibility (make sure it degrades well for those who have js disabled or unavailable).
          • most of the time, use css over inline styles (html) for styling, keep content and presentation separate. But as I said, if you have just one element to style, then don’t create a class for it and bloat your css.
          • if php is not heavier than js, maybe choose php, since you don’t depend on browser settings



          yes man what you said is justified.
          useing html css is nice.
          php is also good.
          js is very vernuable.
          so try avoiding it
            Regards
            Amitav Roy
            Web Designer
            Website: http://www.pixelgroups.com
            Portal: http://www.creativeporta.com