Shaun
Privileged
-
Joined
-
Last visited
Reputation Activity
-
Shaun got a reaction from sergRamalli in Redirect after form is submittedInstead of:
header("location: cart.php");
use:
header("location:".$_SERVER['HTTP_REFERER']);
-
Shaun got a reaction from futureproof in CSS and jQuery questiondiv tags are valid HTML5
-
Shaun got a reaction from sergRamalli in <hr /> breaksBefore the while loop, add:
$i = 0;
In the while loop, you should add:
if($i++ % 3 == 0){ echo '<hr />'; }
-
-
Shaun got a reaction from rrr in Contact form validationHelp you write it? Sure. Write it for you? Nah
-
Shaun reacted to DigitalSquid in Error in W3C checkIt should be:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
Shaun got a reaction from murphos1508 in Controlling HTML form using JavascriptThis is the basics of what you're trying to do with JQuery. If you have anything more specific you'd like to include, just ask. If you understand the semantics, you should be able to play around with this to have it do exactly what you want.
<form id="formid"> <input type="text" id="req_field" /> <select id="disabled_field" disabled="disabled"> <option>Please Select</option> <option>Option 1</option> <option>Option 2</option> <option>Option 3</option> </select> </form> <script type="text/javascript" language="javascript"> $('#req_field').keyup(function(){ if($(this).val() != ''){ $('#disabled_field').attr('disabled', ''); } else { $('#disabled_field').attr('disabled', 'disabled'); } }); </script>
(Don't forget to include the JQuery library in the header)
-
Shaun reacted to Lev in Does My Website Look Professional?Some little remarks (this list is not exhaustive):
These elements should be aligned left. These elements should be aligned right. Text blok, image and brown background should be aligned along their horizontal axes. Why not to make these columns of the same width? Better to increase this padding to 10-20 px (61, 62, 63, 64,) Every hyperlink element should be interactive, dynamicaly react to user's actions (eg onmouseover / onmouseout events). All non-hyperlink elements should not be underlined. Hope that helps.
-
Shaun got a reaction from terydinho in Protecting images using *just* CSS...You could just use the style attribute in the IMG tags. i.e.
<img style="background-image:url(image.jpg)" src="blank.gif" width="150" height="150" />
-
Shaun got a reaction from terydinho in Protecting images using *just* CSS...I disapprove of the lack of +1's I've been getting lately. Instead, just a lot more questions! lol
Jack, the method I gave you would work. If it was me, I would just make the gallery dynamic so you don't need to go and edit every image tag (even though making a class would still mean having to edit every tag, anyway).
If you don't want to bother with CSS anymore, terydinho's JS idea would work just as well, or even just watermarking.
-
Shaun got a reaction from Lewwy in Variable Variable NightmareLewwy, the least you could do is +1 Jock
-
Shaun reacted to BlueDreamer in how to remove the border on a linkThe outline is there for a purpose - to advise users of an active or in focus link. A lot of people with less than perfect eyesight rely on the outlines so removing tem just puts a barrier up for many of your visitors.
-
Shaun got a reaction from cavking in I woke up this morning and thought......Yes, something my dad taught me: ALWAYS have enough money in the bank to survive for 6 months. This has saved my bacon on a few occasions!
-
Shaun got a reaction from hdougie in I woke up this morning and thought......Yes, something my dad taught me: ALWAYS have enough money in the bank to survive for 6 months. This has saved my bacon on a few occasions!
-
Shaun reacted to SniderDK in return array output?BUT....
[{"latitude":"39.994972","longitude":"-83.007027"},{"latitude":"40.144711","longitude":"-82.990883"}]
is a JSON (javascript object notation) array so why not use the built in json functions its alot faster than home-brew encoding solutions.
so this would be better for you...
$sql = "SELECT * FROM mytable ORDER BY id DESC"; $rel = mysql_query($sql) or die(mysql_error()); if(mysql_num_rows($rel) < 1){ echo "No info to display!";} else { while($row = mysql_fetch_assoc($rel)){ $cords[] = array("latitude" => $row['lat'],"longitude" => $row['lng']); } echo json_encode($cords); }
of course you can turn that back into an array by using json_decode();
EDIT: assumed (yeah anno) the code given to you was correct, it had the lon and lat mixed up in the assignment...
-
Shaun got a reaction from Frost Tear in Developer Needed for Paid WorkVery mature. I've reported you. First you turn a job request into a technical help thread, then you snap at Jake for correcting you, now you're turning a civil conversation into a playground fight.
-
Shaun reacted to webdeveloper93 in return array output?To grab information from ur database u would do something like the below
<?php $sql = "SELECT * FROM mytable ORDER BY id DESC"; $rel = mysql_query($sql) or die(mysql_error()); if(mysql_num_rows($rel) < 1) { echo "No info to display!"; }else { while($row = mysql_fetch_assoc($rel)){ $lon = $row['longitude']; $lat = $row['latitude']; echo "Longitude".$lon." Latitude ".$lat.""; } } ?>
Hope this helps some
-
Shaun reacted to pat24 in Developer Needed for Paid WorkWalk Away quickly, check out his interests
martial arts, projectile equipment, high energy materials.
-
Shaun got a reaction from BritZin in Developer Needed for Paid WorkVery mature. I've reported you. First you turn a job request into a technical help thread, then you snap at Jake for correcting you, now you're turning a civil conversation into a playground fight.
-
Shaun got a reaction from Richyyy in Developer Needed for Paid WorkVery mature. I've reported you. First you turn a job request into a technical help thread, then you snap at Jake for correcting you, now you're turning a civil conversation into a playground fight.
-
Shaun reacted to megaspel in I am but a poor English web designerI just found this forum on google and it's great. I'm 17 year old who knows nothing of the world but I've been designing for about two thirds of my life.
Hopefully I will be able to obtain many sexy women and drugs with the money I make from web designing, although I'm afraid I probably won't be able to compete with all you proffesionals.
-
I'm so glad I decided not to take my laptop to Klagenfurt back in May. It was the first holiday I'd had since August 2006 that I was genuinely relaxed and thought-free.
It left me a week behind when I got back but who cares?! Having time for yourself every now and then is surely more important.
-
Shaun reacted to Shaun in Game Ideas?There is possibly something like this out there... but a business and investment game?
So you build up a business and increase revenue by recruiting, purchasing assets, creating marketing campaigns, securing investments and selling. for example, the companies would all sell products/services to other companies. Say you started a car dealership and a courier company needed 50 vans, this would increase the value of your company for making the sales and the courier company's value would also increase on assets.
Not only would it be pretty fun and addictive but it could also be educational (depending on how realistic you make it!)
-
Shaun got a reaction from darrenbale in Happy birthday Zigpress!Happy birthday Andy!
-
Shaun got a reaction from Cabbage in I got an interview ^_^I completely agree, that's how it should be. Unfortunately, it's just how things are. It doesn't mean they're not human beings, it just makes them tough. Look at it this way, there is so much demand for design and development jobs these days that employers have the upper hand. If somebody comes along for an interview and then decides not to take the job, the employer has a whole list of potential candidates with the same skills.
The 2 points I highlighted would infact be good questions, if the job required an extremely qualified and experienced individual to work in a unique position for a huge corporation. In this case, the employer would understand that the level of investment is mutual. However, we're talking about a design agency in Stoke.