Jump to content

metadata

Members
  • Posts

    21
  • Joined

  • Last visited

Posts posted by metadata

  1. OK, so how do output back to that command line? For instance this block of code will output to an html doc, and then to the browser, for a user to see....

    var prompt = "Hello, this is x calling.";			  //output prompt function S_Hello(prompt){  return prompt;											  } document.write(S_Hello);

    However, I need code to output right to that command line/shell for the user to see the output and then enter in more further on in the program.

  2. Are you using Node.js? if you're trying to do this from a browser that's not going to happen.
    No it's not being done through the browser, it's more of a test application than a functional one. From the command line in Windows I'm using the cscript //nologo file.js command to run the application. I'm going to output the interactions within the file.js to a xml doc as a log eventually.
  3. Hello, I am working on a project in which I need to out put text to the command line, as well as prompt for input from the command line. The application is to use JS and I'm looking for some reference materials on pulling this off. Any info is appreciated. Thanks!

  4. I have another question. I opened the file.asp with notepad and put the following code inside from an exaple on the site:

    <!DOCTYPE html><html><body><%response.write("Hello World!")%></body></html>

    The page that comes up in my browser displays the following: <% response.write("Hello World!") %> What does this mean? It should only display Hello World! if working properly. Thanks

  5. I am new to asp and am wondering what extension you are supposed to use for an asp file. In some of the examples on the site it showed ".asp" as the extension for these files. An example below:

    <form method="get" action="simpleform.asp">First Name: <input type="text" name="fname" /><br />Last Name: <input type="text" name="lname" /><br /><br /><input type="submit" value="Submit" /></form>

    Now, is this what the filename's extension should actually be or should it be .html? I named my file with a .asp extension but I am unable to open it in notepad for editing so I'm thinking it should be .html. Thanks! :Unsure:

  6. It sounds like you should just put all of your Javascript code into an external Javascript file and then include that in your script tag rather than writing the code in the script tag.
    Yes that is what I want to do, I will look into finding the info on this.
  7. I have a question about #includes in javascript. I currently have an html file with a header section that has my functions. Is there a way I can put all these functions in a separate html file and then include that file? I would like to reduce the clutter in the current file and move all my functions off to a different one, increasing modularity. I found things in the asp section on this but not JS. Thanks!

  8. No that's just how to use links, which I understand. I'm trying to write a function in JavaScript where when a user clicks on a button it automatically sends them to another page (such as an order form page). I'm trying to figure out where I can find the documentation on writing the code inside the JS function to have to browser open up the new page. Below is a brief example of what I'm trying to do in the code:

    <!DOCTYPE html> <html><head> <script type="text/javascript">function orderPage(){ }</script> </head><body> <button type="button" onclick="orderPage()">Order Now</button> </body> </html>

  9. I am trying to figure out the best way to display a button on a page that will open a new page on clicking. I have a function set up using JS that once the button is clicked will call the function and then I can enter the code there to do the redirection. I just need to find some documentation on writing this code. Is it also possible to make the button itself a link so that by clicking on the button you would effectively be clicking on a link as well? (I've already done redirection this way) Thanks xD

  10. I'm trying to align an image in my HTML document to the center of the page. In looking through the references on the W3 page I see that the align attribute is deprecated. There's a note that the CSS float property can be used (I am using an external style sheet) but it looks like it would only set things to the right or left, but not the center. Can someone point me in the direction of where I can look to solve this? Thanks :good:

×
×
  • Create New...