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 Mike Lewis 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
  • Order by date
  1. chrismassey

    HTTP request not working properly

    Thanks for responding, I recieve the same problem. I ran my script through a javascript syntax checker and I recieved a number of errors Error: Implied global: ActiveXObject 12, XMLHttpRequest 7, alert 21, document 37, setTimeout 32, window 1 6 Problem at line 4 character 18: 'fInitial'...
  2. 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...
  3. chrismassey

    IE6 + below background image problem

    Thanks for your reply. Can you explain why you need a height and a width, surely the top, right, bottom, left will automatically generate its height and width. This would also help the logo somewhat be liquid as if I changed the width of the entire outer div (wrapper) then #outer_top_left would...
  4. 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...
  5. chrismassey

    Printing XML data on a new line

    Kevin, Thank you once again, I added \r and it worked! Thank you very much rharsh and travs for your help and suggestions, you are very useful and its much appreciated... Thanks, Chris
  6. chrismassey

    Printing XML data on a new line

    Ok i've just tried that and I get the ame result. I should mention that if I remove all \n characters the first part of a new XML file looks like this instead (only outer_tag resides on first line): <?xml version="1.0" encoding="ISO-8859-1"?><OUTER_TAG> <FORM> <SECTION>...
  7. chrismassey

    Printing XML data on a new line

    Thats right i'm not using FTP. I'm using 1and1's Webspace Explorer System, and I click the XML file in there and click download. Should I try downloading the file using FTP? Chris
  8. chrismassey

    Printing XML data on a new line

    Hey, thanks travs... I tried that and I recieve the same result is the result of one of the XML files (note that [] represents the newline character that is displayed in the text file: <?xml version="1.0" encoding="ISO-8859-1"?>[]<OUTER_TAG><FORM> <SECTION> <SECTIONTITLE>Person...
  9. chrismassey

    Printing XML data on a new line

    Hey, thanks for the response... As you can maybe see from my script (HTML tags in print statements) I am testing the script on a Web Server. Once I have ran the script I am downloading the XML files it creates to my Windows Desktop and opening them in notepad. I am using the same computer for...
  10. 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>...
  11. chrismassey

    Disabling textbox if particular menu option is selected

    Thank you very much ONCE AGAIN BabyJeffy, It did exactly what I wanted! I also improved my script so that it does the following: 1) Disable the textbox if a menu option other than the 1st option is selected. 2) Disable the menu if the textbox contains any text. Now there is no way information...
  12. 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...
  13. 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...
  14. chrismassey

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

    Did the job perfectly. Thanks again Chris
  15. chrismassey

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

    Thank you very much, ill give it a try. I'm surprised PHP doesn't have an in-built function to do this already. Chris
  16. 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...
  17. chrismassey

    Count the number of files that are recursively searched for.

    Nice one, thanks alot, It worked perfectly and I could shorten parts of my code because of using references too. Thanks again, Chris
  18. 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...
  19. chrismassey

    Neatening HTML source produced by a PHP script

    My mistake, I had accidently deleted a character from the initital path string. It has worked perfectly. The only thing I had to add was { } around the 2nd variable for each line. Thank you very much.
  20. chrismassey

    Neatening HTML source produced by a PHP script

    Hey, Thank you very much for your response. I tried your code above and it doesn't seem to work. Nothing is printed at all. However you have solved another issue I have wanted to know for a while hehe, which is use of echo <<<HTML/HTML; which I use in Perl scripts and couldn't find a similar...

Part and Inventory Search

Back
Top