Search results

  1. I

    ASP.net SQL update problem (VB)

    Hey guys, I'm trying to update my database with values in text fields on my .aspx page. I'm used to java so I'm struggling to figure out whats wrong with this. Inherits System.Web.UI.Page Dim conn As SqlConnection Dim cmd As SqlCommand Dim dst As DataSet Dim dad As...
  2. I

    Which processor would you recommend?

    Hey, I'm torn between a few laptops...both not very high spec, but all identical in price - I'm just wondering which would be a better performer, processor wise. 1) ------------------------------------ Processor Intel Pentium Dual Core Processor Bus 533 MHz Processor Cache 1MB...
  3. I

    Which processor performs better?

    Okay so I'm upgrading my pc and I'm not 100% on how the architecture works in quad core processors compared to dual cores. Is it a simple case of a quad core literally multiplying the processing speed by 4 compared to 2? Basically I have these two processors and I'd like to know which...
  4. I

    How to pull XML into Flash

    Okay, so I have a basic flash file with a button, when you hover over it, an object with dynamic text appears... Now I want text from an XML file to be pulled from it into my dynamic text box... this is what my code in my actionScript looks like so far... function DisplayInfo() {...
  5. I

    Div layouts not working...ideas?

    I am trying to display a .gif image ontop of a flash object in a web page using div's... I place the swf object in a div using the z-index at 0 Then the .gif ontop in another div with it at z-index 1... I can get a flash object ontop of a flash object but not an image file... heres the...
  6. I

    What is going on here?!

    Okay, the most annoying thing has happened, I took out my external HDD from my laptop and put it back in like ive done a million times before but this time it changed the drive letter on re-entry from I:/ to J:/ which has fooked up my itunes library of over 40, 000 songs. So i thought, fine...
  7. I

    How to set up a web subscription service?

    Hi, I'm just trying to find out how this more than likely simple form works in HTML, I want the user to input their email and have it sent to me somehow i guess, probably to an email address of my choosing, say 'subscriptions@mail.com' but how does this work then, what would i have to...
  8. I

    Anyone know alot about JSP's and Tomcat?

    Im having trouble getting my jsp's to work in Tomcat, i have two javabeans that im trying to get data from using my jsp's, ive compiled my beans and theres no spelling mistakes in the links, but its coming up with this error: org.apache.jasper.JasperException: /viewTable.jsp(3,0) The value...
  9. I

    Validating a textfield to accept letters, dashes and spaces only

    I can do it for letters only, need it to be able to allow '-' (dashes) and spaces too function checkname() {var theirname = document.form1.dname.value; var numchars = theirname.length; for (i = 0; i< numchars; i++) { if (theirname.charAt(i) < 'a'|| theirname.charAt(i)...
  10. I

    Validating a textfield to accept only numeric data...

    Ive got a text field 'num1' that i want to validate so that it pops up a message when theres no numbers in it using Javascript... all the tutorials on the web are far too complex and i was wondering if someone could help me understand what i need to put in my html document. Thanks
  11. I

    Formating a float in Java, help please!

    Im trying to format a float in a JTable thats been taken from an SQL database, heres what ive got: { float price = results.getFloat(5); row = new Vector(); row.addElement(new String(results.getString(1))); row.addElement(results.getString(2))...
  12. I

    Why wont my vector work?

    I try to pass some SQL data to my vector, then display it, but it says the data cannot be retrieved even though when i delete the vector elementadd parts, it works fine... jdbcConnect(); ResultSet results = null; Vector stocklist = new Vector(); try { statement =...
  13. I

    why cant my variables be seen?

    Hi, trying to figure out why my JTextField 'scInput' cannot be seen in another class? I define it in class 'gui' as private JTextField scInput; within the public class public class Gui extends JFrame implements ActionListener But when trying to call it in another class, its...
  14. I

    How to fix a GUI size in Java

    Just wondering how i can stop a user resizing the window using java, i declare the frame size, but dont know how to set it to fixed... setTitle("Stock Control System"); setSize(560,640); setVisible(true); setDefaultCloseOperation(EXIT_ON_CLOSE); cheers
  15. I

    float in a vector to 2 decimal places?

    Hi, im grabbing data from my SQL table, putting it into a vector, but ive completely forgotten how to display it to 2 decimal places? heres whats going on: row.addElement(new Float(results.getFloat(5))); So i want it to something like 0.00 cheers
  16. I

    Java JOptionPane Help!

    I'm trying to display a set of SQL query results from one class to my GUI in a pop up windows, im trying to use JOptionPane, is there a better way of doing it? heres what im going on so far that i want to display: statement = link.createStatement(); results = statement.executeQuery(...
  17. I

    Import a java file into another

    How do you import a .java files modules, variables etc so that its recognised in another, ive done it before but forgotten, just a short statement at the top, e.g. import.myJavaFile.java; or something similar?
  18. I

    Java SQL Inserts with variables problem

    Ive given my Strings, ints and floats variables, and tried to insert the variables into a table in access using SQL, But it gives some errors, firstly: public static void addItem(String value1, String value2, int value3, int value4, float value5) { System.out.println("Enter value1: ")...
  19. I

    Block Limewire

    Hey, im trying to block limewire on my home network to save on some bandwidth... Ive blocked ports 6346:6347 on tcp/udp but no luck there, still downloading like crazy. Any ideas?
  20. I

    Flash problems in IE7

    On making a site with some flash, the buttons to external links dont seem to work - e.g. if i link to yahoo.com or whatever, but they do when linking to another scene. This seems to only be in IE7, but also, some people say it does work in IE7. But it works all the time in Mozilla. Is there...
  21. I

    Rollover images

    Anyone know how to make a rollover image using slices without exporting it as a .gif image and as a jpeg? or to make the .gif quality good so it doesnt look all pixelated? Also is there a slice feature in dreamweaver where i can do it there? Trying to swap images but it just swaps the...
  22. I

    CSS HELP!

    Myspace css problem I?m trying to make an object central on a webpage on Myspace, but there are a few problems: If I don?t use the absolute position feature, then the image is pushed about 600 pixels down due to existing information in the way, but it is central to the page. So I...