Everything posted by Row
-
Script not working in Chrome
Fixed Oeps, it turned out I had to include my JS at the end of my file instate on the top in my header!
-
Script not working in Chrome
I found out when resizing the page, the script also runs! So I guess Chrome is just doing stupid to me Now I need to figure out how to runs this script after all elements load!
-
Script not working in Chrome
Hi guys, I found this odd failure in the script, but I can't figure out why the script isn't running correctly in Chrome! It does run in IE and Firefox, what already is strange huh? Here is my test page for the code: http://rowruffdesign.nl/tutorial/test/ I got the script from: http://www.script-tutorials.com/pinterest-like-script-step-1/ I wanted to give this a try It only works after you pressed on Comment on one of the pins, but that isn't a good solution of course. I tried to load the function on page load, but that didn't work! Here is the code that should deal with it: $(document).ready(function() { // masonry initialization $('.mainContent').masonry({ // options itemSelector : '.pin', isAnimated: true, isFitWidth: true }); // onclick event handler (for comments) $('.comment_tr').click(function () { $(this).toggleClass('disabled'); $(this).parent().parent().parent().find('form').slideToggle(250, function () { $('.mainContent').masonry(); }); }); }); Cheers
- Query help
-
Query help
Awesome man, that was the query I needed
-
Creating a timetable
Well a table it is
-
Query help
Thanks i'm gonna try it out when I get home(on the train now)
- Penguin 2.0 - Thank you google!
-
website review
I think your menu buttons are to big! You might also want to make your header a but smaller, since this takes over 50% of your page You do have nice columns and the info is well spread of the website Cheers
-
Query help
Well its simple You have a category and the number of the topcat is the number of the parent category so you would get something like this: 1 Animals 2 Animals > monkeys 3 Human 4 Human > man 5 Human > woman 6 Human > man > boy The user should only be able to see the category on the lowest level so: monkeys, woman and boy The question is, how do I query this in SQL? Cheers
-
Music while working
Me likey http://www.youtube.com/watch?v=7oQ8KGUJ6KM
-
Query help
Hi guys, I have a table for my categories. These categories are linked to each other so you can create sub categories The point is that the user should be only capable of selecting a category on the lowest level! But I don't know how to query this in a good way! Here is a sample of the table: id name topcat 1 animals NULL 2 monkeys 1 3 human NULL 4 man 2 5 woman 2 6 boy 4 And so on.... Any ideas would be appreciated!
- Securing php data
-
Securing php data
Hello, So I have two questions 1. What is a safe way to retrieve data from a database and then later for output. So I insert some data in a form and place that in the database, what is then the safest way? By insert using htmlentities or by outputing? 2. So I have an item with an itemnumber in the url like this: localhost/Project/items.php?itemnumber=12 How can I secure this with PHP, so when you would typ in a quote for example, that the data is sanitized, so I can prevent SQL injection! localhost/Project/items.php?itemnumber='DROP DATABASE'; Cheers
-
Creating a timetable
Hallo Guys, I'm working on a timetable app for desktop and phone, but I can't get my head around the layout... Do I use a table or do I use divs to display each day? What about time schedules for the different people What I need to display is at the most 8 names and the date of a day What would you recommend me? Cheers :B
-
Hello, I'm Billy!
Welcome
-
Bad practise with foreach loops
Thanks for the addional information, very usefull for my project
-
Need to finish this
Not bad dude! Pretty awesome I wish I could do that What programme do you use? Keep the good work up
-
Working as a Web Designer. What’s it like?
1. 4 hours a day but well, you can of course plan your own schedule 2. Mostly not in weekends, but deadlines can be hard 3. Home, I'm a developver and I have a freelance designer under my hood if needed! 4. N/A 5. Sublime Text 2, Photoshop, Illustrator, WAMP, FileZilla, Chrome 6. I'm a student, so when I do have vacation from school, I work extra on my websites! 7. Paid per houre, so it's different every month 8. Connections are really important 9. English of course 10. In the Netherlands Cheers :B
- How do you manage your files? Use a microserver?
-
Bad practise with foreach loops
Well that is a good idea I found out how to do it with my query, so I didn't needed the foreach loop anymore hehe But thanks for the idea, always good to have something like that in mind for another challenge
-
Thanks for the invite Ben, I'm Ben ;)
Welcome to the Forum Ben
-
Bad practise with foreach loops
Hallo, I have a huge database with all kinds of categories(rubrieken in dutch). I need to load all of them in some kind of list, but still need to keep the code as simple as possible! All the foreach loops I use now are bad practise Is there a way how to make this more simple? $count = 0; $rubrieken = getAwesomeRubrieken($count); ?> <p>Veilingen op Rubriek</p> <br> <nav class="rubrieken"> <ul> <?php foreach ($rubrieken as $rubriek): ?> <li><a href="categories.php?rubrieknummer=<?php echo $rubriek['rubrieknummer']; ?>"><?php echo $rubriek['rubrieknaam']; ?>></a> <?php $count = 1; ?> <?php $subrubrieken = getAwesomeRubrieken($count); ?> <ul> <?php foreach ($subrubrieken as $subrubriek) : ?> <li><a href="categories.php?rubrieknummer=<?php echo $subrubriek['rubrieknummer']; ?>"><?php echo $subrubriek['rubrieknaam']; ?>></a> <?php $count = 2; ?> <?php $subsubrubrieken = getAwesomeRubrieken($count); ?> <ul> <?php foreach ($subsubrubrieken as $subsubrubriek) : ?> <li><a href="categories.php?rubrieknummer=<?php echo $subsubrubriek['rubrieknummer']; ?>"><?php echo $subsubrubriek['rubrieknaam']; ?>></a> <?php $count = 3; ?> <?php $subsubsubrubrieken = getAwesomeRubrieken($count); ?> <ul> <?php foreach ($subsubsubrubrieken as $subsubsubrubriek) : ?> <li><a href="categories.php?rubrieknummer=<?php echo $subsubsubrubriek['rubrieknummer']; ?>"><?php echo $subsubsubrubriek['rubrieknaam']; ?>></a> <?php $count = 4; ?> <?php $subsubsubsubrubrieken = getAwesomeRubrieken($count); ?> <ul> <?php foreach($subsubsubsubrubrieken as $subsubsubsubrubriek) : ?> <li><a href="categories.php?rubrieknummer=<?php echo $subsubsubrubriek['rubrieknummer']; ?>"><?php echo $subsubsubrubriek['rubrieknaam']; ?>></a></li> <?php endforeach; ?> </ul> </li> <?php endforeach; ?> </ul> </li> <?php endforeach; ?> </ul> </li> <?php endforeach; ?> </ul> </li> <?php endforeach; ?> </ul> </nav><!--end rubrieken-->
-
Web Designer Forum Newb
Welcome
- Hello everyone, my name is Jack!