Jump to content

beanymanuk

Members
  • Posts

    107
  • Joined

  • Last visited

Everything posted by beanymanuk

  1. Hi I have a search facility on a site and it works all ok if someone types in "Ford" or "focus" separately but if someone searches "ford focus" then no results are results I have tried a few variations of SQL but to no avail Does anyone know the correct structure to get my search working (((UPPER(node_data_field_code.field_make_value)) LIKE ('%$filters%')) OR ((node_data_field_code.field_carmodel_value) LIKE ('%$filters%')) OR Thankyou in advance
  2. How to i get this to work $GET["price[min]"] ?
  3. Hi I posted this in the HTML Help forum and been suggested JQuery is the best way to solve the below problem anyones help on this would be very much appreciated Hi I am trying to make a lightbox appear if a radio button in a form it set to yes but not display if set to no and carry on to the forms target page eg results.php Yes / No radio buttons are at the bottom of the form <form id="#####" method="get" accept-charset="UTF-8" action="/####" class="right-nav"> Sales <input type="radio" name="s" value="S" checked> Lettings <input type="radio" name="s" value="L" > <select name="t" id="myList" class="select" style="width: 120px"> <option value="pleaseSelect">Property Type</option> <option value="">All</option> <option value="Terraced">Terraced</option> <option value="Semi">Semi</option> <option value="Detached">Detached</option> <option value="Flat">Flat</option> <option value="Bungalow">Bungalow</option> <option value="Maisonette">Maisonette</option> <option value="Mews">Mews</option> <option value="Commercial">Commercial</option> <option value="Land">Land</option> </select> <select name="bedrooms" id="myList2" class="select" style="width: 120px"> <option value="pleaseSelect">Min Beds</option> <option value="">1</option> <option value="">2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> </select> <select name="price[min]" id="myList3" class="select" style="width: 120px"> <option value="pleaseSelect">Min Value</option> <option value="">Any</option> <option value="100000">£100,000</option> <option value="200000">£200,000</option> <option value="300000">£300,000</option> <option value="400000">£400,000</option> <option value="500000">£500,000</option> </select> <select name="price[max]" id="myList4" class="select" style="width: 120px"> <option value="pleaseSelect">Max Value</option> <option value="">Any</option> <option value="100000">£100,000</option> <option value="200000">£200,000</option> <option value="300000">£300,000</option> <option value="400000">£400,000</option> <option value="500000">£500,000</option> </select> <input type="text" size="16" name="keyword" class="right-nav-keyword" value="" onclick="this.value=''" style="border-color: rgb(0, 85, 164); border:1px solid; width: 110px;"> <p class="right-text"> <b>E-Mail Alerts</b><br>Would you like to save these search criteria for your property e-mail alerts? <p>Yes <input type="radio" name="Type" value="Yes"> No <input type="radio" name="Type" value="No" checked></p> <div class="rounded-button"> <input type="submit" value="Search" class="form-submit"></div> <div class="rounded-button"> <input type="submit" value="Map Search" class="form-submit"></div> </form> Thankyou
  4. Hi I am trying to make a lightbox appear if a radio button in a form it set to yes but not display if set to no and carry on to the forms target page eg results.php Yes / No radio buttons are at the bottom of the form <form id="#####" method="get" accept-charset="UTF-8" action="/####" class="right-nav"> Sales <input type="radio" name="s" value="S" checked> Lettings <input type="radio" name="s" value="L" > <select name="t" id="myList" class="select" style="width: 120px"> <option value="pleaseSelect">Property Type</option> <option value="">All</option> <option value="Terraced">Terraced</option> <option value="Semi">Semi</option> <option value="Detached">Detached</option> <option value="Flat">Flat</option> <option value="Bungalow">Bungalow</option> <option value="Maisonette">Maisonette</option> <option value="Mews">Mews</option> <option value="Commercial">Commercial</option> <option value="Land">Land</option> </select> <select name="bedrooms" id="myList2" class="select" style="width: 120px"> <option value="pleaseSelect">Min Beds</option> <option value="">1</option> <option value="">2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> </select> <select name="price[min]" id="myList3" class="select" style="width: 120px"> <option value="pleaseSelect">Min Value</option> <option value="">Any</option> <option value="100000">£100,000</option> <option value="200000">£200,000</option> <option value="300000">£300,000</option> <option value="400000">£400,000</option> <option value="500000">£500,000</option> </select> <select name="price[max]" id="myList4" class="select" style="width: 120px"> <option value="pleaseSelect">Max Value</option> <option value="">Any</option> <option value="100000">£100,000</option> <option value="200000">£200,000</option> <option value="300000">£300,000</option> <option value="400000">£400,000</option> <option value="500000">£500,000</option> </select> <input type="text" size="16" name="keyword" class="right-nav-keyword" value="" onclick="this.value=''" style="border-color: rgb(0, 85, 164); border:1px solid; width: 110px;"> <p class="right-text"> <b>E-Mail Alerts</b><br>Would you like to save these search criteria for your property e-mail alerts? <p>Yes <input type="radio" name="Type" value="Yes"> No <input type="radio" name="Type" value="No" checked></p> <div class="rounded-button"> <input type="submit" value="Search" class="form-submit"></div> <div class="rounded-button"> <input type="submit" value="Map Search" class="form-submit"></div> </form> Any help would be appreciated Thankyou
  5. More explanation I want a drop down box to onchange, change the value of the url variable s in the code below which is currently showing "small" <input type="button" class="addToCartButton" onclick="window.location.href='cart.php?action=add&p=36&s=small';" value="Add To Cart >" name="btnAddToCart">
  6. Select Size: <select name=clothessize> <option name=one value=one>S</option> <option name=two value=two>M</option> <option name=three value=three>L</option> <option name=three value=three>XL</option> </select> <input type="button" name="btnAddToCart" value="Add To Cart >" onClick="window.location.href='<?php echo $cart_url; ?>';" class="addToCartButton"> How can I get the combo box value into a php variable without refreshing the page so I can pass its value though on onClick event? Thankyou in advance Pete
  7. I have a problem where a html 5 video is being recreated many times and I can hear copies playing behind the one I can see on the screen. I have tried return false; in the onclick but this does not fix it <form name="videourl" action="javascript:changeVideoUrl(document.videourl);" method=""> <input name="url" type="hidden" value="http://www.peter-gosling.com/tagit/vids/ogv/test.ogv" size="40"/> <input name="button" type="button" value="Click For Question 1" onclick="changeVideoUrl(this.form); return false;"/> </form> <script type="text/javascript"> // get video element var video = document.getElementsByTagName("video")[0]; // change the video's url function changeVideoUrl(form) { var newurl = form.url.value; video.src = newurl; // possibly the change of a hash on a video's src attribute could be done // without having to re-load the file video.load(); } </script> There is also more Javascript on the page which is to do with drag and drop this could also be conflicting with it Full file attached Thankyou in advance [attachment deleted by admin]
  8. Hi I am trying to answer this question anyone got any good points to raise or know of any websites/articles that raise these points? Critically evaluate Flash, Silverlight and HTML 5 in reference to their capabilities in combining content from different sources and creating a good user experience in a high media rich internet application and the uses of them Thankyou in advance
  9. Hi I got this as a uni report has anyone got any points I can write about or good online links for information. I am on 1200 words but need 800 more words to rabble on about Question • Critically reflect on the issues involved with the different standards, technologies, programming environments and uses of media based rich internet applications aka Flash, Silverlight and HTML 5 in this case. • Critically evaluate the three technologies in reference to their capabilities in combining content from different sources and creating a good user experience in a high media rich internet application Thankyou in advance
  10. figured out what was wrong in the end WRONG document.getElementById('score').innerText = score; RIGHT document.getElementById("score").innerHTML = score;
  11. Good spot that never noticed that was missing. Still the same though score not updating
  12. Hi I am trying to build this HTML 5 snake game buts the scoring part of the game does not work in firefox anyone know why not? http://blog.new-bamboo.co.uk/2009/12/30/html5-canvas-snake-game Think its around this part of the code function updateScore(){ var score = (snakeLength - 3)*10 document.getElementById('score').innerText = score; } Anyone got any ideas? game here try in Firefox and score does not increase but in Chrome it does http://snake.heroku.com/ Thankyou in advance
  13. Thankyou for that link that is very helpful I have not come across that site before. I'm still getting into jquery You dont know of any good books etc I could look into to learn more? Also have you any experience with Facebook API I am trying to only bring up the login page to facebook if a button is pressed and once logged into facebook reveal a text box
  14. Hi I am new to use of Facebook API and am implementing it on my site using PHP I want to only bring a text box if they are logged into facebook and if not then only bring up the login to facebook page if a button is pressed. Is there any code documentation about how have a facebook button that once clicked then logs into Facebook Or does anyone know how I can go about this? Thankyou in advance
  15. Thankyou so much for that you dont know how long I have been stuck on that lol
  16. Hi I am trying to pass two values from text boxes and insert them into database Passing values content3 and votime Is this section of code right in putting the values into one var called dataString $(".comment_button3").click(function() { var element = $(this); var test3 = $("#content3").val(); var test4 = $("#votime").val(); var dataString = 'content3='+ test3 + '&votime='+ test4; if(test3=='') { alert("Please Enter Some Text"); } else { $("#flash").show(); $("#flash").fadeIn(400).html('<img src="http://tiggin.com/ajax-loader.gif" align="absmiddle"> <span class="loading">Loading Comment...</span>'); $.ajax({ type: "POST", url: "http://www.peter-gosling.com/tagit/timetags/demo_insert.php", data: { dataString} , cache: false, success: function(html) demo_insert.php file $content=$_POST['content3']; $time=$_POST['votime']; round($time); mysql_query("insert into tagbytime (id ,tag, time,userId ,videoId) VALUES (NULL,'$content','$time','$user','$thisvideo') "); Currently it is just getting the dataString value and inserting this value into $content Thankyou in advance for any help
  17. How would I put $_GET['v']; where the someValue is though?
  18. okey dokey I have posted a question in ajax forum now so see if I have any better joy. Thankyou for your help
  19. In the code below the file demo_show.php is loaded how do I pass the url value $_GET['v']; to this file? <script type="text/javascript"> $(document).ready(function() { showrecords(); function showrecords() { $("#display").load("http://www.peter-gosling.com/tagit/people/demo_show.php?"); //Simple jquery load command, loads up demo_show.php document.getElementById('content').value=''; $("#flash").hide(); } </script>
  20. Is there a way in javascript I could do this? and pass the php get url value http://www.peter-gosling.com/tagit/people/demo_show.php?v=$_GET['v']
  21. Yes it is showing all ok I think it may be because the file demo_show.php is loaded in seperately by ajaz method and therefore the page is loaded seperately without the nessary variable being available. Hope this makes sense
  22. Does anyone have any idea's of anything I could try?
  23. no I tried that and still nothing I dont know if the problem is anything to do with the file being loaded by ajax showpeople.php <script type="text/javascript"> $(document).ready(function() { showrecords(); function showrecords() { $("#display").load("http://www.peter-gosling.com/tagit/people/demo_show.php"); //Simple jquery load command, loads up demo_show.php document.getElementById('content').value=''; $("#flash").hide(); } </script> demo_show.php <?php include('../core.php'); include('../videoinfo.php'); $video = $_GET['v']; echo $video; ?> Code that does work is contained in videoinfo.php <?php //Get video id from url variable v $video = $_GET['v']; echo $video; ?>
  24. I am getting value from url using $video = $_GET['v'] ; but it is not working in this file below it just echo's blank <?php include('../core.php'); $video = $_GET['v']; echo $video; $sql2="SELECT tag, videoId FROM generaltags Where videoId = '$video' ORDER BY id DESC"; $result2 = mysql_query($sql2); echo 'Tags: '; while($row2 = mysql_fetch_array($result2)) { ?> <?php echo $row2['tag'] . " "; ?> <?php } ?> but it is working in this file and is echoing the corrent value <?php //Get video id from url variable v $video = $_GET['v']; echo $video; ?> Anyone got any idea's what this problem could be?
  25. Hi I am currently looking for websites which use mp4 and/or ogv format videos on their site which I can download to use on a personal HTML 5 site I am making. Thankyou in advance
×
×
  • 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.