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: atsea
  • Order by date
  1. atsea

    Storing rectangle/parameters in an Array

    ...private int startY; private int diskWidth; private int diskHeight; private int arcWidth; private int arcHeight; /** Creates a new instance of Disk */ public Disk(Graphics gfx, int x, int y, int width, int height, int arcW, int arcH) {...
  2. atsea

    Java - drawing images to a JPanel

    ...import java.awt.Rectangle; import javax.swing.JLabel; import javax.swing.JPanel; public class hanoiWin extends javax.swing.JFrame { /** Creates new form hanoiWin */ public hanoiWin() { initComponents(); } /** This method is called from within the...
  3. atsea

    Java - drawing images to a JPanel

    wangdong, Thanks for taking the time to look into my issue. You'll have to forgive me, as mentioned, I just started getting into GUI design. I will cut and paste your code into my netBeans and give it a try, but I do not think it will produce the results I am after (i.e. 1. there is no main...
  4. atsea

    Java - drawing images to a JPanel

    wangdong, Thanks for the quick reply... Actually I have been able to accomplish a few classes similar to yours that print out various shapes. The whole problem began after I used NetBeans GUI builder. Specifically, in the GUI builder, I added a JPanel and named it gameSheet. NB generated all...
  5. atsea

    Java - drawing images to a JPanel

    ...handlers to make them draggable. Any help would be greatly appreciated. Below is the basic code the NB generates when using the GUI builder. /* * hanoiWin.java * * Created on 2006/08/28, 17:14 */ package my.tower; import javax.swing.JLabel; import javax.swing.JPanel; public class...
  6. atsea

    access to files/folders only from index.html

    ...work at all. Could anyone help with the syntax (preferably .htaccess) to accomplish this. Currently my .htaccess file has: (in the php folder) #deny all access deny from all #Hide file index IndexIgnore *.php however it doesn't work unless I put it directly in the .confg file. thanks...
  7. atsea

    passing vaiables between external php files

    I have to pages: login.html and Content.html both contain multiple (external) php scripts in the header. Is it possible to pass variables between all the (necessary) .php files as they are executed. since the .php files are external and the page being accessed is a .html I don't think its...
  8. atsea

    RegExp - Removing html div tag and attributes

    *gasp* wow, thanks thenightowl. thats actually somthing I've been trying to accomplish for a while now...although I have recently been spending time fooling around with RegExp's. your function is WAY better than the one I came up with, it makes the email look a lot cleaner. I've been diving...
  9. atsea

    RegExp - Removing html div tag and attributes

    SWEET! That is exactly what I was looking for, specifically that "$1" was a great help... my understaning of the $ is that it forces a match at the end of a line. Could you explaine a little, its purpose in this syntax? s=s.replace(rx,"$1"); sorry for the extra question, but that little $1...
  10. atsea

    RegExp - Removing html div tag and attributes

    ...contents within the <div> tag. so the out put would be: SOME TEXT A working example (for more basic tags) is as follows: string = "<u>THIS IS A STRING</u>"; string = string.replace(/<[\/]{0,1}(U|u)[^><]*>/g,""); now, the value of variable string = THIS IS A STRING is that clearer? atsea
  11. atsea

    RegExp - Removing html div tag and attributes

    Hi tsuji, tried that already...it not only removes the <div> tag, but everything within them as well. any more suggestions? also, being new to regular expressions, could you please explain to me the purpose of "RegExp.$1". Thanks, atsea
  12. atsea

    RegExp - Removing html div tag and attributes

    ...data ='<div style="text-align:center;width:inherit;text-color:blue;">SOME TEXT</div>' data = data.replace(/<(div)([ ]([a-zA-Z]+)=("|')[^"\']+("|'))*[^>]+>([^<]+)(<\/div>)/ig); //this expression does not work (still), but I was able to do something similar when removing simple tags (i.e <b>)...
  13. atsea

    RegExp - Removing html div tag and attributes

    trollacious: Thanks for the suggestion, however its not a matter of getting the inner text/html, I want to remove the tags... I would like to accomplish this with a regular expression (i.e. NOT obj.parentNode.removeChild(obj)) Thanks atsea
  14. atsea

    RegExp - Removing html div tag and attributes

    ...to accomplish the following: Input: <div style="text-align:center;width:inherit;text-color:blue;">SOME TEXT</div> Desired Output: SOME TEXT currently playing around with something like this: /<(div)([ ]([a-zA-Z]+)=("|')[^"\']+("|'))*[^>]+>([^<]+)(<\/div>)/ig Any suggestions? Thanks atsea
  15. atsea

    Newbie - Where do I start??

    Not sure if this is what your looking for... Take a look at these sites: (some tutorials) http://sqlcourse.com/table.html http://www.webdevelopersnotes.com/tutorials/sql/index.php3 As well, you should find this site helpful (bookmark it) http://dev.mysql.com/doc/refman/5.0/en/index.html the...
  16. atsea

    STR_TO_DATE(str, format)

    I have a form with a bunch of date fields (among others: name, address, etc)... each date field accepts the date in the format mm/dd... All the information on the form is saved to a DB... My save (submit) feature works great except for the dates. Beacuse the format does not match the...
  17. atsea

    JS prompt pop-up

    Alright, so I have the prompt box working almost exacly the way I want. There is one more thing I would like to accomplish. Currently I have somthing like this: <script> function javascript_prompt() { //two arguments are required for "prompt" boxes var message = "Please enter...
  18. atsea

    editable div

    mwolf00, thanks for the quick response. Your code is exacltly what I needed to steer me in the right direction. (although FF didn't seem to like your code) after playing around with it I came up with this: <script> function javascript_prompt() { //two arguments are required for...
  19. atsea

    editable div

    I remember passing over a site that had a tutorial how to do this, but I didn't think much of it at the time and now I can't find it...hopefully someone here can point me in the right direction. I have created a small table using <div>'s some of these I would like to give the user the abilty to...
  20. atsea

    load (script/function) after login verification

    BRPS, Sorry, I did not answer your question correctly... (this forum doesn't allow me to edit my posts) The answer is YES, document.write is used. Currently what happens is: Object Grid is created. then the Objects for Row, Col and Cell are created. then a function generates HTML to represent...

Part and Inventory Search

Back
Top