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 SkipVought 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: *

  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
  16. Knackers

    Conditional inclusion of a script depending on browser

    I have a JavaScript menu that is appearing differently in Explorer and Netscape (the obsolute positioning is different). To solve this, I figured I would just have a Microsoft and Netscape version of the script, and have some kind of conditional inclusion...Does anyone know how? if Explorer{...
  17. Knackers

    REGEX - what the....?

    Hi, I am writing a script that simulates a web server. It accepts a request header and makes the appropriate response etc. I want to impliment Basic Authentication, using dynamic variables from a .htaccess file (AuthType,AuthName). Problem is that the .htaccess file that I am working from is...
  18. Knackers

    Looping through an input file

    Why is it that as soon as you post something, you manage to work it out anyway? I just declared a boolan eof = false, then just used a 'while' loop, testing to see if readLine = Null to break out of the loop. Cheers
  19. Knackers

    Looping through an input file

    Hi Guys, I am trying to process the data in a text file. Problem is that the data is in a strange format. The data is a bunch of attributes about Dogs - but instead of having the data for each dog in the file on a single line (which would just allow you to use the StringTokeniser to break it...
  20. Knackers

    Hi - I am a genuine newbie to Java

    [bigsmile] You guys rock. David - cheers, I have been working with the API and slowly coming to terms with it. Shahid, excellent post and this is definitely a valid way of solving it. I was hoping to get away with just creating a single method to get input. After a little more thinking about...

Part and Inventory Search

Back
Top