-
-
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