Web Analytics Made Easy -
StatCounter space between java & script? - CodingForum

Announcement

Collapse
No announcement yet.

space between java & script?

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

  • space between java & script?

    i just noticed that the forum seems to automatically place a space between java & script, when it's written together. That's not only incorrect, it's just plain bad for the javascript forum. is there any way that can be turned off?
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #2
    Yes, we've discussed this in the conference room (Zvona brought the issue up). Here's a work around Zvona posted that you can use to overcome this until the issue is fixed: javascript.

    Produces:
    Code:
    javascript
    boxer_1
    CodingForum Moderator
    "How did a fool and his money get together in the first place?"

    Comment


    • #3
      Ah, makes things a bit simpler...nice !

      Test 1 (w/o colon, should not break)
      Code:
      javascript
      Test 2 (w/ colon and : )
      Code:
      javascript:
      boxer_1
      CodingForum Moderator
      "How did a fool and his money get together in the first place?"

      Comment


      • #4
        Originally posted by Dave Clark
        It's only a "problem" when the colon is used -- so, just code the colon in HTML escape code:

        javascript:alert('Hi');

        which will display as:

        javascript:alert('Hi');

        See? ...no space.
        Doh, I'm disappointed. You know how long it takes time to write "java" with entities?
        Zvona
        First Aid for
        Web Design

        Comment


        • #5
          this sure is an old thread... but will this issue ever be fixed??? (quote : "until the issue is fixed") its been more than a year since this has been talked about. Why was it even desighned in the forum software anyway?... was it to prevent javascript links... and any way why wasnt it coded so it would just replace javascript with entities, or something like that, adding a space just creates an anoying problem.
          Last edited by kwhubby; Oct 10, 2003, 04:51 AM.
          Kris Hubby
          kwhubby site

          Comment


          • #6
            you could use javascript to do a search and replace on submit or have a button that inputs the necessary code to output it correctly.

            scroots
            Spammers next time you spam me consider the implications:
            (1) that you will be persuaded by me(in a legitimate mannor)
            (2)It is worthless to you, when i have finished

            Comment


            • #7
              Well, I always use javascript to avoid that.
              liorean <[[email protected]]>
              Articles: RegEx evolt wsabstract , Named Arguments
              Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
              Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

              Comment

              Working...
              X