main
side
curve
  1. Welcome to the new boards! Details here!

Using JavaScript to make the markup codes more versatile.

Discussion in 'Communications' started by Lobot_Omy, Aug 8, 2001.

Thread Status:
Not open for further replies.
  1. Obi-Zahn Kenobi

    Obi-Zahn Kenobi Jedi Grand Master star 7

    Registered:
    Aug 23, 1999
    [link=mailto:spam_meme@justice.com]E-mail me[/link]
    It works, so type in this({ is substituted for brackets):

    {link=mailto:entere-mailaddresshere@woohoo.com}Message text here{/link}

    It doesn't work on mine, because the default mail client isn't installed.
     
  2. Phantom_Catfish

    Phantom_Catfish Jedi Master star 4

    Registered:
    Sep 10, 2001
    thanks fellas, i'll try it out in a few.
     
  3. Phantom_Catfish

    Phantom_Catfish Jedi Master star 4

    Registered:
    Sep 10, 2001
    <img src="http://www.starwars.com/episode-ii/feature/20010515/img/2_bg.jpg">

    first one dont work, thanks though.

    [image=http://www.starwars.com/episode-ii/feature/20010515/img/2_bg.jpg]


    Ureka!
    Which JC member is this?
     
  4. Lobot_Omy

    Lobot_Omy Moderator Emeritus star 6 VIP - Former Mod/RSA

    Registered:
    Jul 9, 2001
    This script no longer allowed
     
  5. Lobot_Omy

    Lobot_Omy Moderator Emeritus star 6 VIP - Former Mod/RSA

    Registered:
    Jul 9, 2001
    This script no longer allowed
     
  6. Emperor_Dan

    Emperor_Dan Jedi Padawan star 4

    Registered:
    Aug 21, 1999
    Hmmm, only I got a %5 in there instead of an underscore..
     
  7. Lobot_Omy

    Lobot_Omy Moderator Emeritus star 6 VIP - Former Mod/RSA

    Registered:
    Jul 9, 2001
    Yep, because it doesn't convert it to an underscore.
     
  8. Emperor_Dan

    Emperor_Dan Jedi Padawan star 4

    Registered:
    Aug 21, 1999
    Darn! Why not?
     
  9. Lobot_Omy

    Lobot_Omy Moderator Emeritus star 6 VIP - Former Mod/RSA

    Registered:
    Jul 9, 2001
    Well,it should. Maybe I should put the username in a variable. That might do the trick.

    The same problem persists for users with the '-' character in their usernames.
     
  10. Woofer

    Woofer Jedi Padawan star 4

    Registered:
    Aug 27, 2001
    Did anyone try using unescape() to decode the strings first to get past the Netscape problem?

    Code Sample, using curly braces for sqaure brackets:
    {link=javascript:alert(unescape("This%20is%20a%20test."))}Click?{/link}

    [link=javascript:alert(unescape("This%20is%20a%20test."))]Click?[/link]

    It looks the same under IE, but need a Netscape user to confirm this.
     
  11. Lobot_Omy

    Lobot_Omy Moderator Emeritus star 6 VIP - Former Mod/RSA

    Registered:
    Jul 9, 2001
    Yeah, but it takes up tag space, plus not many people here use Netscape from my understanding.
     
  12. Night4554

    Night4554 Jedi Knight star 5

    Registered:
    Oct 9, 2000
    I just discovered for the confirm, you can't have the &replies=61 at the end

    [link=javascript:if(confirm('Are%20you%20sure?')){location='http://boards.theforce.net/message.asp?topic=3681416&replies=62'}]This Thread[/link]

    [link=javascript:if(confirm('Are%20you%20sure?')){location='http://boards.theforce.net/message.asp?topic=3681416'}]This Thread[/link]

    see?

    ¤Night
     
  13. Woofer

    Woofer Jedi Padawan star 4

    Registered:
    Aug 27, 2001
    Probably has to do with the length of the link more than anything... notice the gap in your example?

    And in regards to the unescape message above, yes I realize what you point out, but I actually had somebody complain to me about the %20s and thought how to avoid it when possible. Does it also help with the %5 problem mentioned above?
     
  14. Valiowk

    Valiowk Jedi Grand Master star 6

    Registered:
    Apr 23, 2000
    Night: You don't need to put the "replies=#" in the first place, because the only use for it is to show that a thread has a new post after you have gone to that thread before. Otherwise, it has completely no other purpose, so you can leave it out. And yes, the space is because of the length of the link, so you can just make the link shorter.
     
  15. Night4554

    Night4554 Jedi Knight star 5

    Registered:
    Oct 9, 2000
    okay

    :D

    ¤Night
     
  16. Lobot_Omy

    Lobot_Omy Moderator Emeritus star 6 VIP - Former Mod/RSA

    Registered:
    Jul 9, 2001
    I don't know if this could possibly be useful, but here it goes anyway...

    Dead links:

    Code 1: javascript:void

    Or another one which basically does the same thing.

    Code 2: javascript://

    [link=javascript:void]Example of code 1[/link]

    [link=javascript://]Example of code 1[/link]
     
  17. Attack_Of_Da_Gnomes

    Attack_Of_Da_Gnomes Jedi Master star 4

    Registered:
    Jan 2, 2002
    [link=javascript:alert[testing][/link]

    DO'H! Its invisible!?!
     
  18. Night4554

    Night4554 Jedi Knight star 5

    Registered:
    Oct 9, 2000


    okay figured that out, move along move along

    ¤Night
     
  19. KitFist0

    KitFist0 Jedi Master star 4

    Registered:
    Nov 10, 2001
    Griffz had this how do u send a message to someone when they enter your profile ?
     
  20. Dark Lady Mara

    Dark Lady Mara Manager Emeritus star 7 VIP - Former Mod/RSA

    Registered:
    Jun 19, 1999
    Look at the properties of the two images in the bio section of Lobot_Omy's profile.
     
  21. Well_Of_Souls

    Well_Of_Souls Jedi Master star 5

    Registered:
    Aug 26, 2001
  22. KitFist0

    KitFist0 Jedi Master star 4

    Registered:
    Nov 10, 2001
    thanks annoying java implimented :)
     
  23. Lobot_Omy

    Lobot_Omy Moderator Emeritus star 6 VIP - Former Mod/RSA

    Registered:
    Jul 9, 2001
    Woah! No wonder my alert message stopped working. There are no more cookies! The Cookie monster will be very angry about this.
     
  24. Night4554

    Night4554 Jedi Knight star 5

    Registered:
    Oct 9, 2000
    it worked for me ?[face_plain]

    ¤night
     
  25. Lobot_Omy

    Lobot_Omy Moderator Emeritus star 6 VIP - Former Mod/RSA

    Registered:
    Jul 9, 2001
    It stopped storing cookies for me, though. What makes me different from you or anyone else for that matter?! I just want to be treated like everyone else, with the respect I deserve. Is that so much to ask?! Prejudice! Prejudice I say! I want my cookie and I want it now! 8-}
     
Thread Status:
Not open for further replies.