Jump to content

thewooleymammoth

Members
  • Posts

    768
  • Joined

  • Last visited

    Never

Everything posted by thewooleymammoth

  1. Thanks for all the comments. I agree some of the grammar needs to be reworked, I just wrote it and put it up so far. There could be several things, but i will probably go through and try to spot them today. Things like title, footer and some other seo elements are still being made. At first i designed it with some pipes or faucets or wrenches, but it ended up looking too cluttered for me. I went through and looked at the top plumbing sites in different cities and most of them didn't have all that in them. I think a much cleaner look works out better for plumbing.
  2. As i get better and better at web design i end up redoing my fathers plumbing site. What do you guys think of the latest rendition? http://www.robertsplumbing.net
  3. I am creating a page that loads new content via ajax, but i need to execute a javascript function based on the content. ex <div id='content'> <script type='text/javascript'> function newFunction(){ alert('first function'); } </script> <p>here is content 1</p> </div> Then i want to change the contents of the page div, with ajax, to the following: <script type='text/javascript'> function newFunction(){ alert('second function'); } </script> <p>here is content 2</p> then call the newFunction() on a user event. but i need the function performed to match the function currently loaded inside the #page div. However, the function called is always the one first loaded ex: loadpage->newFunction returns "first function" -> load new function via ajax->newFunction still returns "first function" Any idea on how to achieve a return of second function after the ajax interaction? PS: im using jquery.
  4. about 5 percent http://www.w3schools.com/browsers/browsers_stats.asp
  5. seems like you've got the security down, (atleast thwarted my basic js/injection attack.) nice job, like the site
  6. png is better, and works on everything but ie6. and i think there are some js hacks for ie6 to get around that
  7. I wouldn't recommend strip_tags for preventing XSS, but htmlentities as you output the string. Also regex isn't needed for checking string length (unless you wish to go by whole words), strlen should be fine. As for your website vins, it's too much. I have no idea what the site is for or what all those links are. You're just chucking a load of information on a page and expecting people to get it. depends on what you want to filter, if you want users to be able to input special characters than htmlspeicalentities() is good, but if its something like $_GET['desired_page'], then i would just use striptags. Also strlen is good for length but i ment use regex to validate the type of input, ex: numbers, name, email address. not just to limit length
  8. looks like a desktop environment. Application api? Also that may not translate well in to a mobile environment, which is what everyone is going to want in a social networking site. Looks cool though. Good luck
  9. Some more color would be nice. Also the x in the upper right has a white background.
  10. youve been hacked by cross site scripting, use better filters on user input. strip_tags($input); to start Its always best to get some regex on those things and limit the amount of text that can be entered.
  11. pretty nice, very clean looking. The text "web developer" is a little to hard to read IMO. Also, i would keep my blog oriented on web design/technology rather than everything. This shows clients your knowledgeable on the subject. Perhaps create another site to blog about everything else.
  12. I would take the text out of the center of your banner. Its ruining the flow. Good luck!
  13. maybe turn the content box into a text bubble from the pirate? it seems a little plain just sitting there to me, or maybe a fancy border? looks good though
  14. I keep finding a need for smoke backgrounds that repeat, dont ask why.... anyways, I spent a while makin a smoke background that repeats in x & y with minimal spots that are obvious repeats(although there are still some) and i thought i would share it with the world. Feel free to download and use it however you want. just dont take credit for it if someone asks you (like i would ever find out) [attachment deleted by admin]
  15. ah thank you, as it was explained to me they were interchangable, perhaps its that way in c? maybe not. Thats what i get for tryin to mess with things! thanks!
  16. Im playin around with codeigniter and would be much happier if i could do something like this $this::load:view('whatever'); instead of $this->load->view('whatever'); because -> takes way longer to type then :: but :: breaks my code.... anyone had any luck with this? does it work for other people? maybe its just me? I tried searching but its too hard to find. :: is not a thing many search things like searching for.
  17. damn, i was thinking of javascript. http://www.openjs.com/articles/optional_function_arguments.php I guess thats what i get for taking a break from web design... thanks for trying! The reason i didnt want to make it an array instead of optional paramaters is that that the value is already an array of array of arrays, (complicated function) And i didnt want to add another layer of arrays, but i guess im gonna have too.
  18. i think you misunderstood. I know how to use optional peramiters. I want to know the syntax for calling the function. I dont want to have to input all the optional parameters to input the last one, $optional5. So as i remember, you can use brackets inside the function call and then use the variable name to assign variables out of order.... <?php function useOptionalParams($value1, $value2, $optional='', $optional2='',$optional3='',$optional4='',$optional5=''){ echo $value1.$value2.$optional.$optional2; } useOptionalParams($param, $param2, {$optional='value', $optional5='value2'});//breaks code??? idk why //or useOptionalParams($param, $param2 {$optional='value', $optional5='value2'});//breaks code??? idk why ?>
  19. I created a function with a lot of optional peramiters. I dont necissarily want to use every option peramiter. As i recall you can do something like this <?php function($param, $param2, {$optional='value', $optional2='value2'}); //or function($param, $param2, {$optional='value', $optional2='value2'}); ?> but both break my code. And i cant seem to find the correct syntax anywhere... Am i mistaken in thinking you can do this?
  20. css & background images! it looks like you just sat down and wrote some html then put an ad in it.
  21. your main header/banner image seems streched & that is a personal peev of mine.... therefore your SITE IS TERRIBLE! 0/10 (jk but i seriously hate stretched images)
  22. you should try rounding some of those corners. and i do think the header graphic is too big
  23. I like the simplicity of it, although it is a touch boring... but that could just be me. I did notice that your bridal site is kinda screwed up on chrome
  24. You could use some info on what the site is instead of just promting for a character profile creation. As well as how your site protects you from being caught buying and selling accounts
×
×
  • 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.