Reputation Activity
-
Mark L Bentley reacted to Jay Gilford in Editing stringsif (preg_match('%Eastern England(.*?)</popup>%s', $subject, $regs)) { $result = $regs[1]; } else { $result = ""; }
That will match everything from Eastern england up to the </popup> (does not include either of those bits of information however)
-
Mark L Bentley reacted to andy9l in $.post questionUse $.ajax
$('form').submit(function(){ var theFormFields = $(this).serialize(); var results; $.ajax({ data: theFormFields, url: "form_submit.php", type: "POST", success: function(data){ results = data.split(","); $("#div1").html(results[0]); $("#div2").html(results[1]); } }); return false; });
In the .split parameter/delimiter, you should use a character(s) which will never be used in a single response from your PHP script.
An example of a response of your PHP script (for an AJAX request) would be:
12345,67890
This would set results[0] as 12345 and results[1] as 67890.
-
Mark L Bentley reacted to Jay Gilford in Php / mysql problemNo problem
-
Mark L Bentley got a reaction from Stevo in jQuery selection$("#thumbnail-rack img").fadeTo(300, 0.5); // Sets opacity to 0.5 $('#thumbnail-rack img').hover(function(){ $(this).fadeTo(300, 1.0); // Sets the opacity to 100% on hover }, function(){ $(this).fadeTo(300, 0.5); // Sets the opacity back to 50% on mouseout });
-
Mark L Bentley got a reaction from ashley_90 in How to manage FTP with 2 domains?i think this might be a question for your host. I know with mine I get a directory called domains where I can choose which domain to upload to.
-
Mark L Bentley got a reaction from JamesW in How much to build this?here is what I have so far. I'm going to try to package it as a plugin. -
Mark L Bentley got a reaction from Ocular Harmony in How much to build this?here is what I have so far. I'm going to try to package it as a plugin. -
Mark L Bentley got a reaction from skidz in How much to build this?p*** off dohny.
Ok there's been a bit of a problem with z-indecies conflicting so I am going to have to sort that out.
-
Mark L Bentley got a reaction from conormacleay in It can't be this easy, I must be doing something wrong?OK you might have to learn a bit of css. Not sure how much you know of that but it would be ideal to learn some before starting.
Lets take a look at your picture and seperate the different areas.
You would use the grey image as the background which it looks as though dreamweaver has done for you.
You have the a top section which includes the logo navigation and the top text and image. Next you have the categories section, finally the icons at the bottom. These sections can be put in div elements and seperated with margins rather than spacer images.
Have a look into css positioning. There are lots of good tutorials at W3Schools
Also have a look into centering sites using css, I think there is a sticky on these forums about it.
Try making a page with three coloured divs first before putting in your text and images so you can have a play around with how you think it should look.
I hope this helps and starts you on your way to excellent coding.
Remember to come back if you get stuck anywhere.
-
Mark L Bentley got a reaction from Meshach in How much to build this?ok i've put this in
if ($('#slides div').is(":animated")) {
return false;
}else{
//do animation
}
which works a treat. Now to make it a plugin.
-
Mark L Bentley got a reaction from LYKC in How much to build this?here is what I have so far. I'm going to try to package it as a plugin. -
Mark L Bentley got a reaction from Tom in How much to build this?That's the next stage. It should be possible. I'll let you know how I get on.
-
Mark L Bentley got a reaction from Tom in How much to build this?I've decided to stay away from the plugin. Here is what I have so far. It's messing up if you click next before the animation has finished so i need to sort that.
-
Mark L Bentley got a reaction from Tom in How much to build this?I'm not sure you'll be able to get that effect the the cycle plugin. Good luck with it. I found this that might be more adaptable for this effect. I'm going to have ago see what I can make of it. If i get it done i'll let you know.
-
Mark L Bentley got a reaction from T_break in RSS FeedsYou'll also want to look into XSLT for styling your RSS feed page. I can't find the example i followed but this one looks quite good.
-
Mark L Bentley got a reaction from T_break in RSS FeedsUpdate on this. I know have a working feed on my very underused blog. It is easy to implement if you know php/mysql and using a database driven site. If your just updating the content manually i could see updating the feed could become tedious but is reasonably simple. The W3Schools tutorial is very good as always.