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: chrismassey
  • Content: Threads
  • Order by date
  1. chrismassey

    HTTP request not working properly

    Hey, I am using a javascript/AJAX HTTP Request to automatically refresh a perl script which simply generates a random number. The plan is to reload the perl script every 5 seconds therefore displaying a new random number each time. However, a javascript error is produced, although the perl...
  2. chrismassey

    IE6 + below background image problem

    Hello, I have been hunting for a solution to my problem, although this seems to be a well known issue, I am unable to find a solution that works. I am using a background image for a logo in the top left hand corner of a website, however it is not been displayed in IE6 and below. The website...
  3. chrismassey

    Printing XML data on a new line

    Hello, I have a Perl script which divides a large XML files into smaller files. It works great, except if I view the XML file in notepad I can see that the initial tags haven't been placed on a new line. It should look like this: <?xml version="1.0" encoding="ISO-8859-1"?> <OUTER_TAG> <FORM>...
  4. chrismassey

    Disabling textbox if particular menu option is selected

    Hello, I need to disable a textbox if a particular menu option has been selected. Basically, I have a form where the user has 2 choices... 1) Type the information into the textbox, OR, 2) Select the information from the drop down menu. If they have selected an option from the drop down menu...
  5. chrismassey

    Select and deselect all checkboxes

    I have javascript which I have incorporated into a PHP script which allows me to select all the checkboxes within a group by checking the 'check all' checkbox. The script is as follows... Javascript: <!-- function check_all(field, value) { for (var...
  6. chrismassey

    preg_replace to replace 1st occurence of a string within a string

    Hello, I am using a script to display the entire contents of a folder. At one stage in my code, I must replace the first occurence of a string within another string. For example: $string = '/dir1/dir2/dir3/dir4/dir5'; $replace = '/dir1/dir2'; $replace_with = ''; I would assume that if I did...
  7. chrismassey

    Count the number of files that are recursively searched for.

    Hello, I have a function which I use for displaying the entire contents of a directory (a recursive process). It works great, but the only problem is I also use it for a search process (to search for a particular file) and at the end of the search I want to display how many directories were...
  8. chrismassey

    Neatening HTML source produced by a PHP script

    Hello, On a new website of mine I have a HTML page which requires/includes 2 PHP scripts, 1 which opens a txt file which lists all the Category links, and another which opens a txt file and lists all the sponsors links. However, when I view the source code of my website, it isn't as neat...
  9. chrismassey

    Dynamically display a new file input if one has been filled

    Hello, I have created a system to upload files onto my server. Currently I have 5 file inputs. However, sometimes this is either too many or most importantly too little. Often there could be limitless number of files to upload, therefore being able to upload only 5 files at a time is...
  10. chrismassey

    Submitting varying form data with one link

    I am currently improving on a Webspace Explorer system written in PHP which inevitably incorporates HTML/CSS and javascript. My main issue at the moment is that I need to be able to see which files have been selected to perform an action on them. This would be simple if I were to use a normal...
  11. chrismassey

    Submit checkbox data using a link

    I am currently improving on a Webspace Explorer system written in PHP which inevitably incorporates HTML/CSS and javascript. My main issue at the moment is that I need to be able to see which files have been selected to perform an action on them. This would be simple if I were to use a normal...
  12. chrismassey

    New to arrays

    Hello, I have only just started writing PHP today, but am familiar with other programming languages such as perl. I am trying to build a simple webspace explorer system. Simply it reads a directory and displays the contents, if file then once clicked it opens file in new window, and if...
  13. chrismassey

    Search and replace string (smiley generation)

    Hello, I am trying to search for a particular string and replace it with an image. Basically if a user types in a smiley e.g. :) , its replaced with the gif image of the smiley. On test, nothing at all is printed from the text file storing the message data, not even non smiley strings. Below is...
  14. chrismassey

    Sendmail etc

    Hey, long time no post I've been busy with university studies recently and put my perl scripting aside. Today I have been testing out several methods of sending email. 1. Mail::Mailer 2. Mail::Send 3. Mime::Lite 4. Standard sendmail The only one of the 4 I don't have an issue with is...
  15. chrismassey

    Getting to position no 1

    Hello, Over the last year a (new) website of mine has gradually become more popular, particuarly because of its Google rankings and more keywords being recognized. I am now satisfied that I am in the top 10 for every combination of keyword(s) that are suitable to search. I have firstly noticed...
  16. chrismassey

    Comparing multiple conditions

    Hi, I have 3 Perl conditions: if (($n_carry_pu eq "") || ($n_carry_pu eq $fslash)) { $top_level = "x"; } if (substr($new_path_we, -1) eq ".") { $top_level = "x"; } I want to make the above code simpler by combining all 3 conditions. I tried: if (($n_carry_pu eq (("") || ($fslash))) ||...
  17. chrismassey

    Print page button

    Hello, I have a section of javascript here: <A HREF="javascript:contentframe.print()">Print Page</A> Now this simply opens up the print dialog box, and will print the contents of the I-Frame "contentframe". I am now no longer using frames across my website and instead using perl and php to...
  18. chrismassey

    Spreadsheet::ParseExcel

    Hello, I am trying to use an Excel Spreadsheet containing data to be analysed and printed. However, it cannot connect to the module Spreadsheet::ParseExcel correctly. Here is a list of the Spreadsheet modules I have available: Spreadsheet::ParseExcel::Dump Spreadsheet::ParseExcel::FmtDefault...
  19. chrismassey

    Tie::File alternative

    I was wondering if there is an alternative module to Tie::File I want to access a particular line in a file, and re-write it. Thanks, Chris
  20. chrismassey

    Registration Form Issue

    Hello, I have almost finished a user registration form. Currently I have not completed the validation (regex) of form fields, though it is pretty much ready. Whilst testing I suddenly came across an Error 500, and I have no idea why. It was working before so I can only assume i've made a...

Part and Inventory Search

Back
Top