Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post

    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
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"

  • #3
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"

  • #4
    Regular Coder
    Join Date
    May 2002
    Location
    Helsinki, Finland
    Posts
    231
    Thanks
    0
    Thanked 1 Time in 1 Post

    Unhappy

    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

  • #5
    Regular Coder
    Join Date
    Nov 2002
    Location
    Carmel California
    Posts
    471
    Thanks
    0
    Thanked 1 Time in 1 Post
    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; 10-10-2003 at 09:51 AM.
    Kris Hubby
    kwhubby site

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #7
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeċ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Well, I always use javascript to avoid that.
    liorean <[lio@wg]>
    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


  •  

    Posting Permissions

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