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 6 of 6
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I determine my ServerPort value??

    Hi all!!

    .....long time, no visit!!

    First of all-----to the Moderators of this site:

    I have been using the "Search" feature for, like, 2 1/2 hours, to find the answer to my question-----but, to no avail-----so I apologize if it is here, somewhere, and I just wasn't using the right terminology, when searching. Secondly, I don't know that I'm posting this in the right place------my question has several "elements"-------so, wasn't sure where to put it------again, if I goofed I apologize------and, will find this, wherever you need to move it to!!!

    Thanks!!

    Now......

    Members/Visitors------here is my question:

    I have developed------well, it's not quite finished yet-----a game that I would like my sister and me to be able to play, over the Internet.......

    it's written in JavaScript......

    I would be using my home computer as the server (PWS).......

    I got the idea that I needed an applet(?), possibly, to use:

    <param name=ServerPort value=>

    If I don't need to use an applet, what do I use (what's the coding/language/whatever); where do I insert it------and, how do I determine my server port #??? I've seen where people have said they tried this port------and that port......

    I even saw where somebody posted a code that performs a loop, and gives you all the values......

    didn't work for me------I know I'm not doing it right, though.....

    Also......

    I'm trying to password protect the page------having an opening page where one would type-in (submit) a username and password------have already coded it correctly-------it works and everything-------the only problem, is that it doesn't check t'see verify the password------it takes you directly to the game, even if you leave the fields blank!!! I know this is a big damn "Duh"------but I haven't been able to figure-out how to get it to "verify"!!!

    (The reason why I want it protected, is so that our game/the URL can't be found in a search engine.......

    it is my understanding that this can occur------even if the

    <!DOCTYPE HTML PUBLIC...... " ">

    is NOT used!!!

    Anyway------sorry this is so long------any help you can provide, is greatly appreciated!!!

    THANKYOU, in advance!!

    TheTree

  • #2
    Regular Coder
    Join Date
    Apr 2003
    Location
    Atlanta, GA
    Posts
    487
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Don't bother w/ JS

    Use a robots.txt file to keep it from being indexed whatsoever. If the robot can't read your site, the robot can't index your site.

  • #3
    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
    hey there Tree. it's usually a lot easier to help, if we can see the code. usually, i'd ask you to post the code here, but sounds like there might be a lot of it, so can you link us the pages this is all on?

    unless you mean to set it up so that you and your sister will be playing on two different computers, i don't think you'll need to set up a server. if that is what you want, then i'm pretty sure that you don't need a java applet at all, but my knowledge revolves more aound javascript, and not so much around anything to do with servers.
    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.

  • #4
    New Coder
    Join Date
    Oct 2002
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Y'all!!

    .....sorry it took me so long t'get back here-----I sure do appreciate your responses!!

    Choopernickel: I went to that URL------looks like that'll do the trick-----THANKS!!!

    joh6nn: HI----long time, no "see"!!!

    Yeah, the coding is real long-----but I shortened it, and put it here:

    http://www.angelfire.com/cantina/4fu...ent/CARDS.html

    Yeah, my sister and I will be playin' over the Internet, from two different states-----in "real time"-----using my home computer, as the server!! I figured-out I don't need a Port #-----just the URL!!

    What I'm trying t'do, is make the game so that I/we can:

    DEAL (Shuffles Cards)
    PLACE CHIP (person places a chip on a card at the top [white area], that matches card in hand)
    Place COPY of card, where chip was placed, into "Discard Pile"
    HOLD CARDS (click in box, to hold 6 cards)
    DRAW (gives you ONE new card)
    EVALUATE BOARD (person who has most chips, wins)
    END GAME

    I only put one row of cards in the white area------takes too long to load, with more than that.....

    I think it will only work------well, NOTHIN' works, right now------in Internet Explorer......

    I'm "brand spankin' new" t'this JavaScript------and, what I've done here------besides, make a mess!!!!
    ......is, "spliced-up" several different games!!!

    I've got a book that gives a LITTLE help, for JavaScript------plus, all the on-line tutorials, I've done------but......

    WOW!!!

    ANY help you could give me, in tryin' t'figure-out where I've gone wrong, would be GREATLY appreciated!!

    THANKS, ahead of time!!!

    The Tree

  • #5
    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
    Tree, i hate to tell you like this, but i think this may be a project you want to put on hold for a while, until you've done some reading on both javascript, and servers. see, the only way you'll be able to interact with your sister, is by reading & writing on the server. but, while javascript has a VERY limited file reading capability ( and one which wouldn't help you here anyway ) and no file writing capabilities. which means that you'd have to use some server side language, like perl or php, for at least part of this. i have no experience with any serverside languages, or with setting up a server. other people here in the forums do have that experience, but nonetheless, i suggest reading your javascript book all the way through, first, and reading up on servers, and server side languages.
    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.

  • #6
    New Coder
    Join Date
    Oct 2002
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, so much, for your input, joh6nn!!

    This has been just an aside------I figured it would take awhile------and, ALOT OF STUDYING------so that's cool!!! I've only been studying and playin' around with it, for, like, three weeks------so I'll keep pluggin', along!!!

    Again, THANKS------you're the best!!!

    BTW------I noticed you've become a moderator, since I was here, last-------KUDOS!!!

    Take real good care,

    TheTree


  •  

    Posting Permissions

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