Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 17 of 17

Thread: HELP About Javascript, creating program zodiacsign (horoscope)

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    14
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default HELP About Javascript, creating program zodiacsign (horoscope)

    Im trying to make a web program in javascript, it is all about find your zodiacsign "horoscope".

    but i still don't have any idea about the calculation of the dates and where i should start writing my program.. could you please give me an idea on what i should do, from the start up to the end? im not asking for the code, i just need an idea about yours...


    I have an scratch here where you can obtain idea about what i mean and what im asking for.
    scratch:
    if the user enter or input a date (Month/Day) format in the prompt box.
    answer: your horoscope is: example aquarius - "is a blabalblapaspdoiqwe"

    about the calculation of date, i dont think if year is much very important for this web program so if possible pls write a sample code here for the calculation of months and days and i will continue what you start.. :p

    thank you.. pls i need answers asap..


  2. #2
    Member Ganeprog's Avatar
    Join Date
    Jan 2014
    Location
    Chennai,India
    Posts
    80
    My Mood
    Love
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    Hi,

    Do you have any idea to find zodiacsign based on the date apart from programming, i mean that tell me the manual calculation to find then we will work on that.

    Thanks,

  3. #3
    Junior Member
    Join Date
    Jan 2014
    Posts
    14
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    Quote Originally Posted by Ganeprog View Post
    Hi,

    Do you have any idea to find zodiacsign based on the date apart from programming, i mean that tell me the manual calculation to find then we will work on that.

    Thanks,
    yeah i have a little bit,

  4. #4
    Member Ganeprog's Avatar
    Join Date
    Jan 2014
    Location
    Chennai,India
    Posts
    80
    My Mood
    Love
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    Quote Originally Posted by jedmustdie View Post
    yeah i have a little bit,
    k good. Post your idea here what you know let i also know that. Simultaneously, I am also work on that.

    thanks

  5. #5
    Junior Member
    Join Date
    Jan 2014
    Posts
    14
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    oh wait, are you asking for the codes i made for my project or the calculation of the dates only?
    if it is about the code, i still didn't finish the calculation yet but i have the if statement that the months / dates lies to the date entered by a user, let me know if you need it.

  6. #6
    Member Ganeprog's Avatar
    Join Date
    Jan 2014
    Location
    Chennai,India
    Posts
    80
    My Mood
    Love
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    Hi,

    I am not asking codes, i need business logic to start code. Please explain the business logic.

    Thanks,

  7. #7
    Junior Member
    Join Date
    Jan 2014
    Posts
    14
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    Quote Originally Posted by Ganeprog View Post
    Hi,

    I am not asking codes, i need business logic to start code. Please explain the business logic.

    Thanks,
    ok for example..
    if the month is january and the date for january is 20 "which begins the start of horoscope aquarius" until feb 18..the answer would become Aquarius until the end of the date feb 18, and then after the said date for horoscope aquarius ends, the next will be horoscope pisces which will start from the date feb 18 until march 20, so all horoscope must have a duration of 29 count days..

    if you didn't get what i mean you may refer to this link..
    Horoscope Dates - Discover what the 12 Zodiac Signs really mean!

  8. #8
    Member Ganeprog's Avatar
    Join Date
    Jan 2014
    Location
    Chennai,India
    Posts
    80
    My Mood
    Love
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    oh kk i got it dude. i wil check and work on that If any doubt on this i wil post here. k

  9. #9
    Junior Member
    Join Date
    Jan 2014
    Posts
    14
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    Quote Originally Posted by Ganeprog View Post
    oh kk i got it dude. i wil check and work on that If any doubt on this i wil post here. k
    ok bro, thanks for helping me :p

  10. #10
    Member Ganeprog's Avatar
    Join Date
    Jan 2014
    Location
    Chennai,India
    Posts
    80
    My Mood
    Love
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Thumbs up Re: HELP About Javascript, creating program zodiacsign (horoscope)

    Hi Friend,

    I tried this.You can run this. If you give month and date in prompt dialog box you will get the Zodiac sign. The given date format is mm/dd.
    <html>
    <head>
    <script type="text/javascript">
     
    // code removed by GregBrannon
     
    </script>
    </head>
    <body>
    <form method="get">
    <h2 align="center" >To Find Zodiac Sign Click Here!!!!</h2>
    <br/>
    <div align="center">
    <input type="submit" onClick="callDate()" value="Click To Know"/>
    </div>
    </form>
     
    </body>
     
    </html>

    If anything required or any alteration post i will try to work on that. Happy To Help

    Thanks,

  11. The Following User Says Thank You to Ganeprog For This Useful Post:

    jedmustdie (February 3rd, 2014)

  12. #11
    Junior Member
    Join Date
    Jan 2014
    Posts
    14
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    thanks bro, i got it already!
    so you're using the class object name Date() to get the exact date we have for this year and to calculate it easier a..

    again thank you very much for helping me and the kind of assistance you gave from me, even i didn't ask you to give me the whole source/code for my project but you still given it to me, i don't know what is the reason or what was your reason why you did this but i'll promise that i will use this for educational purpose.

  13. #12
    Member Ganeprog's Avatar
    Join Date
    Jan 2014
    Location
    Chennai,India
    Posts
    80
    My Mood
    Love
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    k thank you dude. I also learned about the date concept in java script.

  14. #13
    Junior Member
    Join Date
    Feb 2014
    Posts
    2
    My Mood
    Fine
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    The above script is very good, but why should popup? whether it can be made form only the name and date of birth? I also wanted to try it because of limited ability but I can not afford. Can you make a form like name and date of birth primbon*com?

  15. #14
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    @Ganeprog: Please respect the Forum's policy on spoon feeding. Each post is not to be interpreted as a programming challenge for you to solve and impress others with your talents. Most imporantly, giving the answer is not helping the OP become a more competent, confident programmer, even if the OP is studying JavaScript. (And there's nothing wrong with that.)

  16. The Following User Says Thank You to GregBrannon For This Useful Post:

    sllz (February 25th, 2014)

  17. #15
    Member Ganeprog's Avatar
    Join Date
    Jan 2014
    Location
    Chennai,India
    Posts
    80
    My Mood
    Love
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    @sllz: K instead of pop-up you just create text boxes with in the form tag and get the value from the javascript function using document.getElementById("yourid") then perform your calculation. It is so simple.

    Thanks

    --- Update ---

    @GregBrannon: Sorry for the spoon feeding. hereafter i will follow.

    Thanks

  18. #16
    Junior Member
    Join Date
    Feb 2014
    Posts
    2
    My Mood
    Fine
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    @Ganeprog, plz share script demo, i very confused

  19. #17
    Junior Member
    Join Date
    Mar 2014
    Posts
    1
    My Mood
    Amazed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: HELP About Javascript, creating program zodiacsign (horoscope)

    help me pls.. i need code for horoscopre program

Similar Threads

  1. How should I start creating this program? Help
    By illegit in forum Java Theory & Questions
    Replies: 8
    Last Post: May 16th, 2013, 10:34 AM
  2. Creating a Sudoku Program Assignment
    By xion0374 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 17th, 2012, 07:48 PM
  3. Need help with creating Program
    By apescato in forum Java Theory & Questions
    Replies: 4
    Last Post: October 20th, 2011, 07:46 PM
  4. need help creating a maze program
    By helpzor in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 2nd, 2011, 03:12 PM
  5. Need help creating this program
    By ixjaybeexi in forum File I/O & Other I/O Streams
    Replies: 25
    Last Post: October 19th, 2009, 07:08 AM