Web Analytics Made Easy -
StatCounter JavaScript begginer... help - CodingForum


No announcement yet.

JavaScript begginer... help

  • Filter
  • Time
  • Show
Clear All
new posts

  • JavaScript begginer... help

    I want to know if is posible to read a configuration file to create a menu for a page (as if changing the file, changes the menu without having to change the script I created), in Java Script. As u can see it´s the first time I´m working in javascript.

    I need to know what other options there are...

    Do i´ve to make a servlet to do that??

    Please help, i´ve a deathline next week...



  • #2
    Post your code - we'll be able to see what you're trying to do, and where you're going wrong...

    Help us help you



    • #3
      But, to answer your question, YES, it is possible...

      I can't remember the code off of the top of my head but it's pretty easy... and I have an example somewhere...



      • #4

        Actualy Quack that´s the problem.

        It´s the first time i work with javascript, so i don´t know where to start, I´m using the JavaScript Bible as a reference book, but it has no clues regarding how to do that.

        My goal is to make a script that i can use for all my pages, the menu options keep changing, so with a generic script an a config file I think it shouls work....

        I´ll apreciate any help u can give me...



        • #5
          Ok, I understand a little better now

          I'd suggest starting out by learning some basic tutorials for javascript (do a search on the net for them - try www.webmonkey.com)

          Then, once you get your feet wet and know the basic sytaxes and such, post a thread into the "Post/ Request a script" forum.

          You've got your work cut out for you though.. how much Javascript do you know?

          What you want to do is not beginners stuff...

          Do you have any programming background that may help you out (Such as Java, C++, etc..)

          I'll be glad to help as much as I can



          • #6
            Thanks Quack

            Quack, i know is not a begginers stuff... But i think, i can handle it, i´m a computer science student, 4 year, but until now I wasn´t asked to do anything in JavaScript at work, yesterday morning I was "giffted" with the JavaScript Bible and told to make a working Intranet site for mi division for next week...

            So if u can give me any help, I think I can handle pretty much everything, but begginers manuals aren´t a way to start with this kind of time, if u know what I mean...

            So, Don´t u have the code u told me about at hand ???...

            I´m trying to learn by example... I don´t think is so hard, I know C++, and a little Java, but the object descriptions and the capabilities of the language are a blury area to me... (not so much help from the JS bible... it´s a begginers guide after all)

            Thanks Osvaldo...


            • #7
              I'll have to get back to you, I don't have my example of that at work - it's at home - it's been a long time since I used that.



              • #8

                I've tried using

                I got my "feet wet" there but they don't seem to have much up to date information for adjusting your javascript to work in the newer browsers.

                see the attached truck.txt

                it works in NS4.x but not in NS6 or IE5
                Attached Files
                A+,Network+, MCP W2K
                Sites I have worked on