Jump to content

metadata

Members
  • Content Count

    21
  • Joined

  • Last visited

Everything 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. Is there a way to execute a js file without a browser? I'm talking straight from the Windows shell. Again this is for my use only, not to be used on a website or in conjunction with any kind of html.
  3. 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.
  4. 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!
  5. Shouldn't Windows 7 have IIS already on it which basically turns a PC into a web server of sorts?
  6. 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
  7. Yes I see now, I missed something in opening the file using notepad.
  8. 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 not
  9. Yes that is what I want to do, I will look into finding the info on this.
  10. OK, I just used asp as an example in terms of the #include functionality. Thanks for the replies
  11. 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!
  12. Yes I like that much better, gives more options in the handling of direction from the current page. Thank you that was what I was looking for.
  13. 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=
  14. 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
  15. OK, that worked perfectly. Thanks!
  16. that doesn't seem to be working, is my code correct in my CSS? img {margin:0 auto;}
  17. When use auto it stays on the left side. I've been trying different percentages and that seems to work better.
  18. 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
×
×
  • Create New...