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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Knackers

  1. Knackers

    PEAR Integrated Templates

    Thanks tgus. You don't need the $ sign because I am just grabbing the variable value from the GET associative array eg www.domain.com/index.php?page=page1 Echoing out the value of $page and indeed the {PAGE} placeholder confirms that the variables are being passed and set. The problem, it...
  2. Knackers

    PEAR Integrated Templates

    Hi - I am using PEAR IT and it all seems pretty straight forward. However, i am tryign to assign a place holder dymanically by using the <!--INCLUDE --> statement, and it doesn't seem to work for me. Basically I am grabbing a page name from $HTTP_GET_VARS[] and then trying to set it to a...
  3. Knackers

    Shot cut to the right click menu?

    Thanks guys - excellent. Shoudl really take a look around my keyboard before making silly posts....
  4. Knackers

    Shot cut to the right click menu?

    Hi, Possibly a simple question. I am trying to get away from using the mouse as much as possible (because I find that it slows me down) by using the built in shortcut keys. The one that I am yet to find a short cut for is how to invoke the 'right mouse click' menus without actually using the...
  5. Knackers

    Hi - I have written the following c

    Cheers Tiago There is no real purpose to my ImageStack class - it is mainly an exercise to demonstrate wrapper classes. SO I guess I need to make a wrapper for my Images so that they are just passed to the Stack as any other Object would be.
  6. Knackers

    Hi - I have written the following c

    Thanks for your quick reply Tiago. I have changed my push() method as you suggest, but the compiler throws this error: -------------------------------------------- C:\Ben\University\cosc1295\lab4>javac ImageStack.java ImageStack.java:15: cannot resolve symbol symbol : class Image location...
  7. Knackers

    Hi - I have written the following c

    Hi - I have written the following class which impliments a Stack: //ImageStack.java import java.io.*; import java.util.*; class ImageStack implements IsaStack { private Vector myStack; public ImageStack(){ myStack = new Vector(); } public void push(Object o){ myStack.add(o); } public...
  8. Knackers

    A custom Cipher class

    Thanks idarke - that is exactly what I have done <code> //MyCipher.java public class MyCipher{ public MyCipher(){ } public String encrypt (String msg){ String toEncrypt = msg; String encrMessage = &quot;&quot;; char[] arrayOfChars = new char[toEncrypt.length()]...
  9. Knackers

    increment of Integer (simple as hell)

    Hey Rastko, I take it that you have a specific reason for making the Integer value an Integer object and not just declaring it as a primitive, ie: int x = 0; Declaring it as a primitive makes it dead simple to incriment. Using an Integer wrapper class makes it not so straight forward. Once an...
  10. Knackers

    A custom Cipher class

    I am new to Java so bare with me! I would like to write my own trivial Cipher class so that I can encrypt message going back and forth from a client / server program that I have written. The cipher algorithm is super simple. All I want to do is encode/ decode a character on its ASCII value...
  11. Knackers

    Using Update on a text field.

    Yup.....desc for descending. My only defence is that it is 4 in the morning down under....might go to bed now I have that sorted out. Thank you!
  12. Knackers

    Using Update on a text field.

    New to PHP and MySQL.... I have a form to update data in a specific row. Data types for each of the columns are mostly VarChars but I also have a text field. When I run an update query such as: $sql = &quot;UPDATE EMPLOYMENT SET ref='$ref',date='$date',title='$title',desc='$desc' WHERE...
  13. Knackers

    Mouse events. Mouse Listners

    Thanks to both theKobler and scrat for your replies. I haven't had the chance to do any further work on this, but at least now I have something to go on! Will post again if I need further ideas.
  14. Knackers

    Mouse events. Mouse Listners

    Hi - I am a Java newbie and I need some help in getting started on a problem. I want to create a swing applet thatHas a circle that moves under mouse control. Thats is to say, that when you click on the applet, the circle will start moving toward the position that the mouse was clicked and...
  15. Knackers

    Conditional inclusion of a script depending on browser

    Thanks Jeff I din't really want to have seperate site for different browsers. The site this is for is written in PHP, so I have used some of the built in functions to handle browser checking on the server side and all is working. Thanks for your quick post though! Cheers

Part and Inventory Search

Back
Top