Web Design Forum: gfxpixeldesigns - Viewing Profile - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting

gfxpixeldesigns's Profile User Rating: -----

Reputation: 1 Neutral
Group:
Members
Active Posts:
490 (0.29 per day)
Joined:
29-October 07
Profile Views:
8,643
Last Active:
User is offline Apr 07 2012 12:25 PM
Currently:
Offline

My Information

Member Title:
Advanced Member
Age:
21 years old
Birthday:
October 20, 1990
Gender:
Male Male
Location:
United Kingdom, Mossley
Interests:
Graphic Design
Web Design
Mountain Biking
Video Games : ps3 id = DrkDeath5000

Contact Information

E-mail:
Click here to e-mail me
MSN:
MSN  drkdeath@hotmail.co.uk
Website URL:
Website URL  http://www.gfxpixeldesigns.com

Users Experience

Experience:
Intermediate
Area of Expertise:
Designer/Coder

Latest Visitors

Posts I've Made

  1. In Topic: php for each get next array

    04 April 2012 - 04:05 PM

    So i figured out how to get the next index using [$index + 1] but this only works for the first column.

    Here is my updated code.

    <?php
    
          $_next = $_tierPrices[$index + 1];
          $_qty = $_next['price_qty'] - 1;
          if($_qty > 0) $_format = 'Buy %1$s-' . $_qty . ' for %2$s each';
    
     echo $this->__($_format, $_price['price_qty'], $_price['formated_price']);
    
    ?>
    


    Which outputs the following.

    Buy 10-19 for £3.32 each
    Buy 20-19 for £2.99 each
    Buy 50-19 for £2.39 each

    How would i get the above to work for every column, sort of like a loop ?

    Thanks
  2. In Topic: Google maps with user defined location

    26 October 2011 - 08:54 PM

    Pure determination has got me there in the end and i now have a fully functioning map script. Not only that but im proud to say that i coded the majority of this myself :).

    For anyone interested here is the working example http://rayoflightes....gmaps/form1.php

    My js code is:

    var geocoder = new google.maps.Geocoder();
    
    function geocodePosition(pos) {
      geocoder.geocode({
        latLng: pos
      }, function(responses) {
        if (responses && responses.length > 0) {
          updateMarkerAddress(responses[0].formatted_address);
        } else {
          updateMarkerAddress('Cannot determine address at this location.');
        }
      });
    }
    
    function updateMarkerStatus(str) {
      document.getElementById('markerStatus').innerHTML = str;
    }
    
    function updateMarkerPosition(latLng) {
      document.getElementById('latitude').value = [
        latLng.lat()
      ];
      document.getElementById('longitude').value = [
        latLng.lng()
      ];
    }
    
    
    
    function initialize() {
    
              var address = document.getElementById("address").value;
    
      var latLng = new google.maps.LatLng(-34.397, 150.644);
      var map = new google.maps.Map(document.getElementById('mapCanvas'), {
        zoom: 12,
        center: latLng,
        mapTypeId: google.maps.MapTypeId.SATELLITE
      });
        
        geocoder.geocode( { 'address': address}, function(results, status) {
    
          if (status == google.maps.GeocoderStatus.OK) {
            map.setCenter(results[0].geometry.location);
            var marker = new google.maps.Marker({
                map: map,
                draggable: true,
                position: results[0].geometry.location,
            });
    
        map.setZoom(18);
    
      // Update current position info.
      updateMarkerPosition(latLng);
      geocodePosition(latLng);
      
      // Add dragging event listeners.
      google.maps.event.addListener(marker, 'dragstart', function() {
        updateMarkerAddress('Dragging...');
      });
      
      google.maps.event.addListener(marker, 'drag', function() {
        updateMarkerStatus('Dragging...');
        updateMarkerPosition(marker.getPosition());
      });
      
      google.maps.event.addListener(marker, 'dragend', function() {
        updateMarkerStatus('Drag ended');
        geocodePosition(marker.getPosition());
      });
    	
    	/* When geocoding "fails", see if it was because of over quota error: */
                } else if (status == google.maps.GeocoderStatus.OVER_QUERY_LIMIT) {
                  wait = true;
                  setTimeout("wait = false", 1000);
    
                } else {
                  alert("Geocode was not successful for the following reason: " + status);
                }
        });
      
    
    }
    
    // Onload handler to fire off the app.
    google.maps.event.addDomListener(window, 'load', initialize);


    Enter your address in the first form, submit it and move the marker, you should see the long / lat fields updating as you move.

    Note that the above will be changing, for starters i need to add some styling and get rid / hide any unecessary fields. Im just glad its working, finally ! Another perhaps more important step is checking this for errors and testing in different browsers.

    I would appreciate it if someone would have a quick scan over my code for errors. Im not sure about the else if statement myself, it doesnt look quite right but its working so i've left it.
  3. In Topic: Mobile Website Form issues

    26 October 2011 - 12:43 PM

    Its a strange one. Then again opera may have some sort of mobile redirection built in.

    I really cant replicate this here, what sandbox are you using to test it in ? I've tried ipad lnk and opera mobile desktop link.
  4. In Topic: Mobile Website Form issues

    26 October 2011 - 12:35 PM

    I can also report that changing the flight type works fine in opera mobile.
  5. In Topic: Mobile Website Form issues

    26 October 2011 - 12:33 PM

    I dont see the next buttons on my mobile unless i change the user agent to desktop.

    With default mobile settings (user agent = mobile) it takes me to a different form with no next buttons link. This works perfectly fine here.

    If i change my user agent to desktop it does take me to the form with the next buttons but again this works perfectly fine and it doesnt scroll me to the top or anything like that.

Friends

Comments

gfxpixeldesigns has no profile comments yet. Why not say hello?