Search results

  1. S

    How to go about creating a "command line" webpage?

    That should be .org, by the way I think I'll get to learning Ruby. I've heard of it but never really used it. Is i implementable in a local environment?
  2. S

    How to go about creating a "command line" webpage?

    I want to create a simple page consisting of essentially a text box. It would use PHP, or javascript, or another language, to compute the input and do something. For example, google apples would, well, google apples. Tweet Hello, would, tweet hello, cheezburger would open a predefined set of...
  3. S

    Using a .php file as a stylesheet

    How does JavaScript set the color without using PHP? (and without using at least 30 document.getElementbyId().style.color and document.getElementbyId().style.background-color)
  4. S

    Using a .php file as a stylesheet

    For the generating, I agree that the generated stylesheet should not be generated every time, and for the custom color, that may explain why the same colors keep recurring, but how else am I supposed to have a random color without doubling the size of the index page with a style tag?
  5. S

    Need help checking for path among connected dots.

    This probably doesn't belong here, but anyways. I'm making a web app based on a game thought up by John H. Conway in which, on an undirected complete graph of n-points, two players alternate to direct the connection between two vertices. The first to complete a Hamiltonian path loses. Terms...
  6. S

    How to run JS by submitting HTML form?

    Wow, thanks for the quick and complete answer! But I don't see how it would be a Hamiltonian path if there are n-1 paths for two reasons: there could be multiple paths from the same point, and the paths have to have a direction. If that's what you meant by order-two, then please clarify. The...
  7. S

    Java Programming

    Are you sure you mean Java and not JavaScript? JavaScript is much more often used in web-development because it is interpreted by a browser (and you probably want that if you are on this forum). If you are asking about Java, you probably are not aiming at web development, unless you are making...
  8. S

    How to run JS by submitting HTML form?

    So I'm trying to make an app, and I need to make dynamic changes to the page. Can this possibly be done when a user slicks submit on an HTML form? If so, how? How do you stop it from actually sending the form, how do you include the values from two dropdown lists in the function called? Second...
  9. S

    JS speed question & PHP security question

    No, they've disabled autocomplete from the webform. This is for trying to access the school from anywhere.
  10. S

    Diggclassifieds what are your thoughts on it?

    Very quick comment, it's not a major flaw or anything, but I've heard (and I agree) that white-on black is painful on the eyes, try light-grey on black (like #eee) for the columns on the sides, otherwise, looks good. --------- Edit: I guess the cramped look is what you are going for if it's...
  11. S

    Using a .php file as a stylesheet

    If you see in the example I gave, I have 20 classes for possible values of height: .h0 {height: 0px;} .h5 {height: 50px;} .h10 {height: 100px;} .h15 {height: 150px;} .h20 {height: 200px;} .h25 {height: 250px;} .h30 {height: 300px;} .h35 {height: 350px;} .h40 {height: 400px;} .h45 {height...
  12. S

    Using a .php file as a stylesheet

    Thanks. I hadn't realised the broswer actually checks the content-type regardless of the extension.
  13. S

    JS speed question & PHP security question

    I seem to have confused POST and GET. Which is safer?
  14. S

    Is there a way to upload images only from 100x100pixels?

    I'm not sure what you mean, but if you're asking how to filter images by size, just check them with the PHP getimagesize() function. http://php.net/manual/en/function.getimagesize.php
  15. S

    IM/Chat Bar

    I'm not too sure, but i seem to remember that any script which has to constantly access the server (like IM) is against the TOS. Sorry.
  16. S

    Using a .php file as a stylesheet

    I tried this with the - HTML 4.01 Strict - HTML 4.01 Transitional - HTML 4.01 Frameset - XHTML 1.0 Strict - XHTML 1.0 Transitional - XHTML 1.0 Frameset doctypes. The .php stylesheet did not work with any of them, and the .css one worked with every single one. The contents of the .php and...
  17. S

    Script needed

    If you don't want to use pre-built CMS's, you're going to have to learn how to work with databases (probably MySQL) and some very slightly advanced PHP to handle the info and generate the pages.
  18. S

    JS speed question & PHP security question

    Yes, that's what I was asking. How do you do that (I need an example of code for the "headers"), and also, what are potential security issues using POST data to generate the files?
  19. S

    JS speed question & PHP security question

    Sorry, I have no idea how to get around captcha filtering... But I just want to know, is there any way to speed it up and what are security concerns for making a PHP-generated page for all?
Top