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 SkipVought 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. Rekcor

    mktime bug?

    Thanx, the correct syntax is: echo date('d-M-Y H:i:s', mktime(0,0,0,12,25,1978)); //25-Dec-1978 00:00:00
  2. Rekcor

    mktime bug?

    The following code is causing me a headache. I want to put: "12-25-2004 0:0:0" on the screen. But the following code: echo date('d-m-Y H:m:s', mktime(0,0,0,12,25,1978)); returns: 25-Dec-1978 12:12:00 What is happening?
  3. Rekcor

    table columns 100% problem

    it does! thanx, enjoy your star!
  4. Rekcor

    table columns 100% problem

    I've got a simple problem but I can't find the solution. I hope someone can help me (I was surprised I couldnt find it in previous posts on this forum...) What I want is: a table (width 100%) with 3 columns, two with a fixed width (e.g. 50 and 40px), one with a variable width (which 'fills the...
  5. Rekcor

    Calculate timestamp from week number

    Woops! Found a small bug: summer time isnt taken up in my function! /** * PUBLIC getTimestampFromWeeknr($iYear, $iWeek) * Function to calculate the timestamp of at monday 0:00am * in given year and week according to ISO-8601 standards * * return: array with TCalenderEvent objects **/...
  6. Rekcor

    Calculate timestamp from week number

    I found out myself. For those who are interested: /** * PUBLIC getTimestampFromWeeknr($iYear, $iWeek) * Function to calculate the timestamp of at monday 0:00am * in given year and week according to ISO-8601 standards * * return: array with TCalenderEvent objects **/ function...
  7. Rekcor

    Regular expressions - search and replace question

    I think preg_replace() is fine. Here is a great reference (and website) of regular expressions: http://www.regular-expressions.info/reference.html A quick solution (dont know if it works): $pattern = "/\n{1,}|\r{1,}(\r\n){1,}/"; $replacement = "<p>"; echo preg_replace($pattern, $replacement...
  8. Rekcor

    Calculate timestamp from week number

    I want to write a function which calculates the timestamp from a week number: function timestampFromWeeknr($iWeekNr, $iYear) { //here should come magical calculation return $iTimeStamp } More accurately speaking, it should be the timestamp from the Monday of that week, at 0:00am. Has...
  9. Rekcor

    Jumping tab in form

    The zip file contains numerous files, please copy/paste relevant code in your question using the [ code ] and [ / code ] tags of this form. We'd like to help you, but we do not have the time to read a couple hundred lines of code.
  10. Rekcor

    A good DHTML editor ?

    I'd advise you to use Crimson Editor. It's great (and freeware)!
  11. Rekcor

    inter-site communication

    We would like to help you, but you didn't ask a question. Can you be more specific on the problem?
  12. Rekcor

    Print

    In IE there is this Javascript onbeforeprint function. Using Javascript you could replace all images by <span>s with the alt text inside. But I only recommend this when you are sure all your users use IE
  13. Rekcor

    IFrame Question

    my solution works in all browsers... ;) good luck
  14. Rekcor

    IFrame Question

    How can the user click the menu when the page is scrolled down? Is the menu in another page? Maybe you could use the #top in your menu. I assume there is an 'onclick' event somewhere. Just in my own words (not realy js) onclick=" iframe.src='bla'; //set the source for the iframe...
  15. Rekcor

    vertical navigation menus

    See a previous post of mine: //get current filename var fileName = document.URL.substring(document.URL.lastIndexOf('/')+1) if (fileName=="fish.htm") { togSub(document.getElementById('ML4')); } The submenu ML4 is openend when the filename is 'fish.htm' You could also pass some...
  16. Rekcor

    vertical navigation menus

    Can you elaborate on this question? On my pc the menu stays open when I click an element in the submenu... I understand, but without the use of an unique identifier it is not possible to open a particular submenu without the user clicking it.
  17. Rekcor

    vertical navigation menus

    Hi, Ive stripped your code a bit and this seems to work: <script type="text/javascript" language="javascript"> function togSub(item) { if(item.style.display == ''){ item.style.display = 'block'; }else{ item.style.display = ''; } } </script> <div ID="leftmenu">...
  18. Rekcor

    vertical navigation menus

    Ok. Maybe you could use the document.URL property when initialising the menu, something like if (document.URL=='fish.htm') { openSubmenu(1); //open fish submenu } Of course it would be better to write a generic function, which loops through an array with possible URLs and opens the correct...
  19. Rekcor

    How can I update a database from JavaScript?

    You can't update the database with Javascript only. Javascript is client-side (it runs on the computer of the user), the database is server-side (it runs on the computer of the server). To communicate with the server-side, you need server-side scripting, like PHP or .ASP. Javascript can pass...
  20. Rekcor

    add in further checkbox check in javascript

    Ok I understand. Try this: <tr> <td colspan="2"> <span class="clsMainText">Enquiry relates to: </span><b>Missed Bin</b> <input type="checkbox" name="chkmissedbin"> <b>etc etc</b> <input type="checkbox" name="chkmissedbin1"> </td> </tr> The Javascript code to check these is: [code] if...

Part and Inventory Search

Back
Top