Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: quarryknight
  • Order by date
  1. quarryknight

    handling multiple values in result set

    You should make sure you are using MYSQL 5.0 before attempting to use the IN operator. At least, I think it's 5.0. I don't believe the earlier versions support it. Nick Ruiz http://www.DealMerchant.net Webmaster, DBA
  2. quarryknight

    String.replace() with unusual characters

    To find a list of escape sequences in Java, just do a Google search on "java escape sequences" and check out the results. This is the first URL to come up (which may help you out): http://www.michael-thomas.com/tech/java/javacert/JCP_EscapeCharacters.htm Nick Ruiz http://www.DealMerchant.net...
  3. quarryknight

    how to reference classes in jar file

    I don't think there's anything wrong with what you typed. I took the liberty of downloading the file and extracing the jar file and browsed down to the path it's looking for. The person that created the jar file must have made a mistake in entering the locations of the imported classes, since...
  4. quarryknight

    get object expected and dont know a way out of it!!!!

    May I recommend downloading Mozilla Firefox? They have a very nice JavaScript debugger. http://www.mozilla.org/products/firefox Nick Ruiz http://www.DealMerchant.net Webmaster, DBA
  5. quarryknight

    How to use Selection Sort in an Array of Strings

    The Java API documentation would help you greatly with a problem such as this. You can download the API at http://java.sun.com/j2se/1.5.0/download.jsp. But for this problem, I'll save you time. The String class has two methods that can help: compareTo() and compareToIgnoreCase(). You can use...
  6. quarryknight

    String.replace() with unusual characters

    I don't think this should be much of a problem, but what version of J2SDK do you have? As I said before, the code I posted should work. Nick Ruiz http://www.DealMerchant.net Webmaster, DBA
  7. quarryknight

    jsp:useBean question

    I'm a newb when it comes to JSP (actually, I'm currently taking a couple classes on it in college). But from what I understand, the 'id' attribute is a name that you make up that is used to identify the bean. I basically understand it to be just like any other HTML tag with an 'id' property. As...
  8. quarryknight

    extends

    Well, one way is to create an instance of the class object that uses the autoincrement that you want to use. Then you can use your new class to call that autoincrement method when you need it. That's a simple way to get around the problem. Hope that helps. Nick Ruiz http://www.DealMerchant.net...
  9. quarryknight

    [b]Inherit Question[/b]

    I'm not exactly clear on what you're trying to ask. Are you trying to say that both your subclass of JPanel and your subclass of JFrame have a setLocation method and that you are trying to transfer one to the other? From what it looks like, setLocation is an inherited method from Container...
  10. quarryknight

    String.replace() with unusual characters

    Here is my test code: public class Test { public static void main(String args[]) { String str = "Hello,\nworld!\n"; System.out.println(str); str = str.replace('\n', ' '); str = str.replace(',', '!'); System.out.println(str); System.exit(0); } } If you test my code, you see...
  11. quarryknight

    Java event listener insode a class other than the extension to japplet

    Did you figure out your problem? If not, I can try my luck. Nick Ruiz http://www.DealMerchant.net Webmaster, DBA
  12. quarryknight

    copying from vector to array

    In the toArray() method, you try to instantiate a new myOutput, when you defined it on the previous line. Instead, it should be: myOutput = myVector.toArray(myOutput); Here is a test program I wrote that works. import java.util.Vector; public class Test { public static void main(String...
  13. quarryknight

    php functions

    Placing PHP code in a function makes your code more readable, especially if you have a lot of lines of code to execute. For simple one-liners, this isn't much of an issue, unless you plan on reusing your code, like you said. Nick Ruiz http://www.DealMerchant.net Webmaster, DBA
  14. quarryknight

    Input rules on a TJext area

    Here's a couple of ideas: 1. The String class has a method called matches() which takes a RegExp value to validate its type. If you know RegExp, or look on the web for RegExps for validating numbers, you could find the expression you want and use it to validate your code. 2. The Integer class...
  15. quarryknight

    altering picture source using javascript

    One way: Window.document has a property called images[] that is an array of the images on a webpage. You would then be able to manipulate that image by finding it in the array and modifying its properties. Nick Ruiz http://www.DealMerchant.net Webmaster, DBA
  16. quarryknight

    php form question for newbie

    Could you post your code? As for the email posting, I have that working on my webpage, under "Contact" and "Tell a Friend," which I might be able to share with you. But with the adding new fields, it would help to see your code so everyone can see what they need to work with. Hope this helps...
  17. quarryknight

    Grab the URL of the address bar using PHP

    Hello, I am trying to use PHP to grab the URL of the Address Bar (in Internet Explorer and Mozilla Firefox). Basically, I want to use this functionality to trace the redirection path of a website, where using file_get_contents() will not grab the URL, since the redirection is through a scripting...
  18. quarryknight

    Use JavaScript to fetch source of a page

    Glorious, simply glorious. It parses the price very nicely. I really didn't want to have to use JavaScript, since my page runs primarily on PHP anyway. Thanks for the help. Nick Ruiz http://www.DealMerchant.net Webmaster, DBA
  19. quarryknight

    Use JavaScript to fetch source of a page

    Before you yell at me for posting with malicious intent, hear me out: I am currently working on a price comparison website for the textbooks that my college sells (since they overprice everything). My goal is to fetch the source of a page on Half.com to get the currently lowest price of a...
  20. quarryknight

    check whether atleast one item is selected from the list

    Sorry, the last paragraph should say: Then just make sure that it alerts the user if the function returns -1. Hope that helps. Nick Ruiz http://www.DealMerchant.net Webmaster, DBA

Part and Inventory Search

Back
Top