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. thewhistler1

    window.event is undefined

    Thanks
  2. thewhistler1

    window.event is undefined

    Hello all I have an issue getting this to work in firefox, it seems to work fine in other browsers but firefox gives an error window.event is undefined when I try to use this. Any ideas? <script> document.onkeydown=function(evt) { var thelink if (window.event.keyCode==37)...
  3. thewhistler1

    Javascript onkeydown event to go to next page

    THANK YOU SO MUCH Feherke. I really wish I knew how to use Javascript to the full. I picked up PHP really fast, it just makes sense to me but Javascript seems to be more difficult to learn, I just haven't been able to grasp the context very well yet. grrrr. Oh well I'll keep trying. Thanks...
  4. thewhistler1

    Javascript onkeydown event to go to next page

    EXCELLENT, that worked great. Another question though, how would I get it to work in another situation such as this. I have another page that uses a little Javascript to change a large picture, by clicking a button you can make the next thumbnail be the large picture. Here is code for it...
  5. thewhistler1

    Javascript onkeydown event to go to next page

    On my website I use paging so that all the results don't hit the page all at once. Then of coarse I have links to take you to the next set of results. What I would like to do is make the right and left arrow buttons on the keyboard work to go forward and backward to other pages of results. I use...
  6. thewhistler1

    using a variable in a google map script

    OK I got it. I found the following, modified it a little and it works great, just what I wanted it to do. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...
  7. thewhistler1

    using a variable in a google map script

    .....adding to last post If I knew how to get the lat and long variables out of this function : function showAddress(address) { if (geocoder) { geocoder.getLatLng( address, function(point) { if (!point) { alert(address + " not...
  8. thewhistler1

    using a variable in a google map script

    I appreciate the effort on that one, but how can I have a variable containing an address on the page and as soon as you load the page it looks at the address in that variable and centers the map on that? That is what I need to do. In the code I pasted there was one function that does that but I...
  9. thewhistler1

    using a variable in a google map script

    I write PHP not javascript and I just need a little assistance with this one thing. Yes I have tried things but I don't know the syntax to get it to work. I have also tried to research it and did not find anything. If someone could help with this I would greatly appreciate it.
  10. thewhistler1

    using a variable in a google map script

    I am trying to get a google map on my site but I cant figure part of it out. I know very little about javascript, Im sure this is a simple fix. The code below starts with one map and has a box to go to another location. What I would like is for the page to come up to whatever address that I have...
  11. thewhistler1

    How to stop PHP from rotating my images when resizing?

    When I pull up the dimensions of the picture it says 1000 x 1504 , where the pictures that are wider then they are tall all show 1504 X 1000 so I really don't think that my OS is auto rotating the pictures when displaying them. My Camera does that automatically so that when you import the photos...
  12. thewhistler1

    How to stop PHP from rotating my images when resizing?

    I am creating a website that allows uploading of images. The images are resized to certain specs, then placed into a folder. One problem I have is when I upload and resize a photo that is taller than it is wide the photo actually rotates 90 degrees. I am using imagecopyresampled to resize the...
  13. thewhistler1

    php upload &amp; resize not inserting the correct thing in DB

    OK, I can't seem to get this to work. If I was to take your initial suggestion jpadie and put the files in a folder and just have links to the database how would I change this code to be able to resize the images before placing them in the folder? Thanks
  14. thewhistler1

    php upload &amp; resize not inserting the correct thing in DB

    That wont work either as $type returns a number. 1 = gif 2 = jpeg 3 = png so tried changing it to this //create new canvas $thumb = imagecreatetruecolor($newwidth, $newheight); if ($image_type == 2){ $c = 'imagecreatefromjpeg'; $o = 'imagejpeg'; } elseif ($image_type == 1){ $c =...
  15. thewhistler1

    php upload &amp; resize not inserting the correct thing in DB

    jpadie It doesn't seem to like the following line, it gave an error. $c = 'imagecreatefrom'.$type ($_FILES['picture']['tmp_name']); PHP Fatal error: Function name must be a string Any ideas on what we did wrong? Thanks
  16. thewhistler1

    php upload &amp; resize not inserting the correct thing in DB

    Hello Im trying to upload and resize an image and insert it into a MySQL database, but I am doing something wrong. It inserts a record but it is very small and not the image at all. When I check the error log is shows this: PHP Warning: imagecopyresized(): supplied argument is not a valid...
  17. thewhistler1

    PHP - Display a unix calendar

    Oh OK, I had never used the <pre> tags so I didn't follow what you meant. That worked.... thanks a lot.
  18. thewhistler1

    PHP - Display a unix calendar

    OK How would I go about preserving the white space? Thanks
  19. thewhistler1

    PHP - Display a unix calendar

    I am trying to display a calendar on my web page, just the current month. I think the easiest way to do this would be to just display a unix calendar with the cal command. I did this $cal = `cal`; $cal = nl2br($cal); echo $cal; but the numbers don't line up correctly. Any one know how to...
  20. thewhistler1

    PHP

    Thanks jpadie, I had to alter it to the following to get it to work but now it is working. $date = "2008-06-16"; $newdate = date("Y-m-d",strtotime('+1 year', strtotime($date))); echo $newdate ; Excellent!!

Part and Inventory Search

Back
Top