Jump to content

Elnof

Members
  • Content Count

    39
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Elnof

  • Rank
    Newbie
  • Birthday 02/13/1990

Previous Fields

  • Languages
    Javascript, (X)HTML, XML, XSL, DHTML, HTML DOM, CSS

Contact Methods

  • Website URL
    http://elnof-inc.webs.com
  • ICQ
    0

Profile Information

  • Location
    La La Land
  1. I've tried both of those, and I got the same result. I'll try again tomorrow, but I don't think that it will help.
  2. My Javascript code is unable to access any of my java code. Where's my problem?java script: function getFile(pURL) { var text; document.getElementById('mainText').innerHTML = "<p>Loading Text...</p>"; text = document.textReadApp.javascriptCommandReadFile(pURL); if(text != "-1") { repairText(text); } else { document.applets("textReadApp").innerHTML = "<p>Error in load</p>"; }}function repairText(string) { var text; var text2; var homeLink = "<a onClick=\"getFile('addon/text/home.ntk')\" class=\"homeLink\">Home</a>"; text
  3. Ok, I've got my ajax, is there anyway to do it using local drives? This is going to be stored on my computer, and I'm getting a javascript error telling me that my script doesn't have permission to acess the file I want to read. Here's my scipt function getFile(pURL) { pFunc = 'repairText'; document.getElementById('mainText').innerHTML = "<p>Loading Text...</p>"; if (window.XMLHttpRequest) { // code for Mozilla, Safari, etc xmlhttp=new XMLHttpRequest(); eval('xmlhttp.onreadystatechange='+pFunc+';'); xmlhttp.open("GET", pURL, true); // leave true for
  4. I've been doing javascript for a while, but I've never had to do this before. So, here's my question: Is it possible to get the text from a file and put it on the web page using javascript?Thanks in advance!
  5. Elnof

    Help

    Well, I've got it working now!PS: is their a way to make my own properties? So I could do something like: cheese.startCutting(1.00); Or something?
  6. Elnof

    Unknown error

    I tried, it didn't work...
  7. Elnof

    Unknown error

    My server doesn't show the code, it acts like its a blank HTML document (it is set up for PHP). It runs a simple "hello world" program, but not this. Is there any typo's? <?php function displayPage($String) { return str_replace("_", " ", $String); } if (isset(oops)) { $comeFrom = true; $page = displayPage($_GET["oops"]); $message = "Sorry, you can not view the " . $page . " page if you are not logged in!"; } else { $message = null; } if (isset(loggedIn)) $rowSpan = 2; else $rowSpan = 1;?><html> <head> <title><?php if (comeFrom == true) echo "You're not logged
  8. Elnof

    PHP events

    Ok, I'll do that.
  9. Elnof

    PHP events

    Is there such a thing as events in PHP? I want to use the FILTER_VALIDATE_EMAIL when the user clicks 'submit', but the only way I can think to do that is: ...<input type="submit" onClick="<?PHP if (!filter_input(INPUT_GET, "email", FILTER_VALIDATE_EMAIL)) { echo "Enter a valid E-mail"; } else { echo "Thank You!"; } }?>" />... Would that work?
  10. Elnof

    Help

    No, cleaning the project didn't do anything that I noticed.
  11. Elnof

    Help

    Good point, now the ImageIcon that I was using is gone too.
  12. Elnof

    Help

    Ok, thanks, I think I figured it out, but now I have another problem: java.lang.NoClassDefFoundError: NXT2 Exception in thread "main" I resently changed the project name from NXT2 to Nxt_Command_Center_1_0_0. PS: The book was for the leJOS NXJ api. Not all of java. [left][left]package nxt_command_center; import java.awt.event.*; import java.awt.*; import javax.swing.BorderFactory; import javax.swing.ButtonGroup; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing
  13. Elnof

    Help

    The book explains how to use the leJOS API, not how to write in Java. I'm having trouble figuring out how to add a menu to a regulare Java frame. I know how to add one to a Jframe, but not to a regulare frame.
  14. Elnof

    Help

    Yea, I've bought the book about it. But that's not my problem, I'm having trouble with the making of the actual program. I understand the leJOS stuff.PS: Wrong link, thats for the stuff from 2002
×
×
  • Create New...