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

  1. CoffeeQuick

    Hide mysql password and username in php script

    Thanks for your response sleipnir214, I will put the credentials in a separate file as you suggest, and have a look at using Zend Encoder etc..
  2. CoffeeQuick

    Hide mysql password and username in php script

    I am new to PHP and mySql. I have writen a script (using the db.php PEAR extension) to access a database, but the username and password to connect to the database are imbedded in the script for anyone to find. Does anyone know how to securely hide this information. I have tried searching via...
  3. CoffeeQuick

    passing form field names

    Also i think you will need to change the following line of code from if(total != 0 && document.frmName.nameOfField.checked) { to if(total != 0 && document.forms[frmName].elements[nameOfField].checked) { Although I havn't checked this out for this situation.
  4. CoffeeQuick

    passing form field names

    Hi, If the name of the formfield is set in the HTML then you can retrieve it as below var nameOfField = formfield.name; or if you are looking to assign the name via javascript then use the following formfield.name = "some name"; Hope this helps John
  5. CoffeeQuick

    Find button

    Hi PH, Thanks for your reply. I changed to rs.box to rs.bof (this was a typo on my part), and added the [] around Picture Code, and all works fine now. The script was copied from Microsofts help files, which you would think would have it correct (with the [] around the field name), but then...
  6. CoffeeQuick

    Find button

    Hi, I am very new to using Access, i am trying to create my first database using it. The database is ok, but i am having problems creating a "find button" for the data access page. It should search the first field which is a numerical code. I have looked at the help files and found vbscript...
  7. CoffeeQuick

    Checking age problem with date format

    Hi, I have been asked to produce an on-line application form, which requires a date of birth to be entered and then checked. But I hit a problem with the date format, as the site is for the uk, the date format is dd/mm/yyyy, but the system date is represented in javascript in the usa format...
  8. CoffeeQuick

    Validate Phone Number

    Hi, I came across this script the other day for validating phone/fax numbers, it's about the best one i've seen, although it had a few bugs in it, which i've ironed out (exp originally came up with a syntax error, it had () where the shouldn't have been, and didn't like properly formated...
  9. CoffeeQuick

    Style not changing when changed via Javasript

    Doh!!, I was obviously thinking to hard to end up with that onLoad. Thanks again 'empios'. John (Diokles).
  10. CoffeeQuick

    Style not changing when changed via Javasript

    Thank you 'empios' for your answer, that works fine, i've added onload=toggle() to the body tag so that the links are hidden to start with. I take it then that any property set in an external CSS can not be changed by javascript. Bit of a pain, but suppose i can work round it. Thanks again.
  11. CoffeeQuick

    Style not changing when changed via Javasript

    Here is my Javascript code function toggle() { division = document.getElementById("links"); state = division.style.display; if (state == "none") { division.style.display = ""; } else { division.style.display = "none"; } } This works with in-line styles, but as soon as...
  12. CoffeeQuick

    Style not changing when changed via Javasript

    Hi, I am trying to change the display property of div via Javascript (to show and hide links). This works fine when i use inline styles, but if i use a separate style sheet it does not work, can any one help? Sample code In-line: <div id="links" style="display:none"> ......... css: #links...
  13. CoffeeQuick

    Hide div. works in IE and Opera but not Firefox ?

    Thanks for the help everyone especially theboyhope, Changed the code to pass the layer id as a string, and added the document.getElementById(Tablayer) within the hideLayer() function, and it now works in all 3 browsers. Thanks again John [atom]
  14. CoffeeQuick

    Hide div. works in IE and Opera but not Firefox ?

    The function is called using the following <a href="javascript:hideLayer(map1, -499);" class="small">&lt;&lt;Hide Map 1 / </a> The value of dis is the width of the map as negative number to move it off the side of the page. The value of Tablayer is the ID of the div eg. "map1" The initial...
  15. CoffeeQuick

    Hide div. works in IE and Opera but not Firefox ?

    I have a web page that has 3 maps each in a separate div hidden off the side of the page. When you click a button the chosen map then scrolls into view. This part of the code works fine in IE, Opera and Firefox, but when it comes to hide the maps again, the script to hide doesn't work in...
  16. CoffeeQuick

    using vars to address form elements

    Can you post the code for the form?
  17. CoffeeQuick

    using vars to address form elements

    Change the line call="document.fexp.a"+val; //val = 1 to call=document.getElementById("fexp.a"+val); //val = 1 Hope this helps. John
  18. CoffeeQuick

    Jump Menu Not Working in Mozilla

    Thanks "theboyhope" the jump menu works great in both IE and Mozilla now. You would think Dreamweaver would use that script line rather than one that seems to only work in IE!!. I know have a new problem, my script to resize the iframe for each months data which works in IE, doesn't work in...
  19. CoffeeQuick

    Jump Menu Not Working in Mozilla

    I have a diary of events page on a site I maintain, where you select a month to view from a drop down jump menu, which then loads the required month into an iframe. This all works fine in IE, but not in Mozilla, you select the month, and nothing happens. I have run the debugger in Mozilla and...
  20. CoffeeQuick

    Dynamic placement in an onResize event

    You can use the onResize event to re-centre your page, by adding it into the opening body tag for the page, and set it to call a function that re-centres the page. eg. <body onResize="centrePage()"> This I think is easier than setting a timer to check. According to a book I have...

Part and Inventory Search

Back
Top