Jump to content

ferdia

Members
  • Posts

    16
  • Joined

  • Last visited

About ferdia

  • Birthday 02/28/1986

Contact Methods

  • Website URL
    http://strawberryinteractive.ie/index.php

Profile Information

  • Gender
    Male
  • Location
    Ireland

ferdia's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. If it helps explain my situation better, I basically need the form I posted above, to behave like this one: https://www.jonesoil.ie/order-online/
  2. Hey guys. Total rookie in JScript here. I've a form, here are three of the elements: <tr> <td width="70" valign="top"><strong>Type:</strong></td> <td width="204"><select name="my-item-name" size="4" id="myitemname"> <option value="Object 1">Object 1</option> <option value="Object 2">Object 2</option> <option value="Object 3">Object 3</option> </select></td> </tr> <input type="hidden" name="my-item-id" value="<?php echo $row_rsOil['id']; ?>" /> <input type="hidden" name="my-item-price" value="<?php echo $row_rsOil['price']; ?>" /> <input type="hidden" name="my-item-url" value="tramore-oil.php" /> <tr> <td><strong>Quantity:</strong></td> <td><input name="my-item-qty" type="text" id="myitemqty" size="5" maxlength="5" /> <span id="msg">Litres</span></td> </tr> <tr> <td><strong>OR Value:</strong></td> <td>€<input name="my-item-value" type="text" id="myitemvalue" size="5" maxlength="5" /></td> </tr> Basically what I need is this. When someone selects an object in the select box. I need "Quantity" and "Value" to prepopulate, and change if a different object is selected. There is a second task the JScript has to handle though. Value is a multiple of Quantity. If someone updates one, I need the other to change too. Advice would be greatly appreciated
  3. Hey guys, Anyone who's used Joomla will know they have a very snazzy system for allowing the user to reorder the "order" field in any given table. You know the one, the blue arrows pointing up and down to move the row up or down. I wanna implement something similar in my own sites CMS, does anyone know a good script to handle it?
  4. Javascript was where I thought this might end up. I'm assuming that a listener could be set up to watch for any changes? Then I could execute whatever code I fancy if it is triggered?
  5. Basically I want to know if its possible to tell if the browser has already entered the Username into the Username box of my login form by default. If there isn't, is there any way to stop it doing so by default? I'd go without in this particular application if I can't tell if its been done. Ferdia
  6. A gentleman and a scholar sir, thanks you very much.
  7. That ALMOST worked thank you Jimmy, I'm getting an odd repeating problem with the onBlur, is there anyway to add a no-repeat attribute into the onBlur mix? Ferdia
  8. Hi guys, simple one for you. I have two text boxes that I want to change the background image of, onFocus. Here is the text boxes: <td><input type="text" name="user" maxlength="30" value="" id="userbox"></td> <td><input type="password" name="pass" maxlength="30" value="" id="passbox"></td> And here is the CSS that adds the background images: #userbox { background-image:url('../images/username.png'); background-repeat:no-repeat; } #passbox { background-image:url('../images/password.png'); background-repeat:no-repeat; } Any ideas on how I would switch the backgrounds to another image? Lets say blank.png? Thanks in adance.
  9. I am having to implement a work around for the time being. The original problem can now be found here: http://strawberryinteractive.ie/contact-us2.php
  10. I'm not sure if this will help, but I just found out that if I load the page directly on the tab of either map, then that map is ok, the other however, still has the problem. Example: http://strawberryinteractive.ie/contact-us.php#third
  11. Hi guys, I'm setting up tabbing on a page, two of the tabs contain Google Maps, and even though I've renamed as many variables and functions as I can find to make sure there are no conflicts, there still seems to be something getting in the way. Here is the code of the two maps: Map 1: <div id="mapCanvas" style="width:495px; height:600px"></div> <script type="text/javascript"> // BeginOAWidget_Instance_2187524: #mapCanvas // initialize the google Maps function initializeGoogleMap() { // set latitude and longitude to center the map around var latlng1 = new google.maps.LatLng(52.338922, -6.459819); // set up the default options var myOptions1 = { zoom: 16, center: latlng1, navigationControl: true, navigationControlOptions: {style: google.maps.NavigationControlStyle.DEFAULT, position: google.maps.ControlPosition.TOP_RIGHT }, mapTypeControl: true, mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DEFAULT, position: google.maps.ControlPosition.TOP_RIGHT }, scaleControl: true, scaleControlOptions: { position: google.maps.ControlPosition.BOTTOM_RIGHT }, mapTypeId: google.maps.MapTypeId.ROADMAP, draggable: true, disableDoubleClickZoom: false, keyboardShortcuts: true }; var map1 = new google.maps.Map(document.getElementById("mapCanvas"), myOptions1); if (false) { var trafficLayer = new google.maps.TrafficLayer(); trafficLayer.setMap(map); } if (false) { var bikeLayer = new google.maps.BicyclingLayer(); bikeLayer.setMap(map); } if (true) { addMarker(map1,52.338922,-6.459819,"ROBBIE ADDRESS HERE"); } } window.onload = initializeGoogleMap(); // Add a marker to the map at specified latitude and longitude with tooltip function addMarker(map1,lat,long,titleText) { var markerLatlng1 = new google.maps.LatLng(lat,long); var marker1 = new google.maps.Marker({ position: markerLatlng1, map: map1, title:"Strawberry Interactive Waterford", icon: "http://code.google.com/apis/maps/documentation/javascript/examples/images/beachflag.png"}); } // EndOAWidget_Instance_2187524 </script> Map2: <div id="mapCanvas_2" style="width:495px; height:600px"></div> <script type="text/javascript"> // BeginOAWidget_Instance_2187524: #mapCanvas_2 // initialize the google Maps function initializeGoogleMap2() { // set latitude and longitude to center the map around var latlng2 = new google.maps.LatLng(52.256008, -7.110437); // set up the default options var myOptions2 = { zoom: 16, center: latlng2, navigationControl: true, navigationControlOptions: {style: google.maps.NavigationControlStyle.DEFAULT, position: google.maps.ControlPosition.TOP_LEFT }, mapTypeControl: true, mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DEFAULT, position: google.maps.ControlPosition.TOP_RIGHT }, scaleControl: true, scaleControlOptions: { position: google.maps.ControlPosition.BOTTOM_LEFT }, mapTypeId: google.maps.MapTypeId.ROADMAP, draggable: true, disableDoubleClickZoom: false, keyboardShortcuts: true }; var map2 = new google.maps.Map(document.getElementById("mapCanvas_2"), myOptions2); if (false) { var trafficLayer = new google.maps.TrafficLayer(); trafficLayer.setMap(map); } if (false) { var bikeLayer = new google.maps.BicyclingLayer(); bikeLayer.setMap(map); } if (true) { addMarker2(map2,52.256008,-7.110437,"76 Johnstown, Waterford"); } } window.onload = initializeGoogleMap2(); // Add a marker to the map at specified latitude and longitude with tooltip function addMarker2(map2,lat,long,titleText) { var markerLatlng2 = new google.maps.LatLng(lat,long); var marker2 = new google.maps.Marker({ position: markerLatlng2, map: map2, title:"76 Johnstown, Waterford", icon: "http://code.google.com/apis/maps/documentation/javascript/examples/images/beachflag.png"}); } // EndOAWidget_Instance_2187524 </script> Both are initiated via: <script type="text/xml"> <!-- <oa:widgets> <oa:widget wid="2187524" binding="#mapCanvas" /> <oa:widget wid="2187524" binding="#mapCanvas_2" /> </oa:widgets> --> </script> Any suggestions would be greatly appreciated, here is the current code in action: http://strawberryinteractive.ie/contact-us.php
  12. ¬¬ I knew it would be that simple. Thanks loads Pikachu2000. I wish I'd come and asked an hour ago. Lol.
  13. Hi guys, PHP advanced amateur and PHPFreaks newbie here. I have a problem with some code I've written. What the code is supposed to do, is take in 15 records in a single MySQL table column, and then print them out in a format like this: 1 2 3 4 5 6 7 8 9 so on so on. Here is the page in question: http://robbieduggan.com/strawberry-interactive/portfolio-web-design.php Now the problem is, you can see 14 images there, but it seems to be negating the first one. Its always whatever row 0 is, because if I change the SORT BY attrabute in the code below, it's a different one that is missing. Here is my code to get the data: mysql_select_db($database_strawberry, $strawberry); $query_rsProjects = "SELECT page_unique_identity, clean_title, thumbnail FROM tblprojects ORDER BY `timestamp` DESC"; $rsProjects = mysql_query($query_rsProjects, $strawberry) or die(mysql_error()); $row_rsProjects = mysql_fetch_assoc($rsProjects); $totalRows_rsProjects = mysql_num_rows($rsProjects); And here is the code to create the table: echo "<table width='100%' border='0' cellspacing='5' cellpadding='5'>"; for($i = 0; $i < $totalRows_rsProjects; $i++) { $row = mysql_fetch_array($rsProjects); if($i % $columns == 0) { echo "<tr>"; } echo "<td>"; if($row['page_unique_identity'] != NULL){ echo "<a href='website-details.php?project=".$row['page_unique_identity']."'><img src='portfolio/".$row['thumbnail']."' alt=".$row['clean_title']." width='267' height='162' /></a>"; } echo "</td>"; if(($i % $columns) == ($columns - 1) || ($i + 1) == $totalRows_rsProjects) { echo "</tr>"; } } Thanks in advance for any help
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.