« first day (162 days earlier)      last day (4791 days later) » 

10:04 PM
@YiJiang rough new blog design: beta.mutant-tractor.com/?page_id=9
 
user1385191
it likely has to do with facebox intercepting the click
 
user1385191
I'm going to try event delegation
 
user1385191
 
Mac
just so you know line 73's missing a "
 
user1385191
yep, just noticed
 
user1385191
10:09 PM
close the string and it should work
 
Mac
it gives document.getElementById("facebox") is null
 
user1385191
document.body.onclick = (function(event)
 
user1385191
line 42
 
Morning
 
Mac
im getting line 42 as
line 41: if(!event){
event = window.event;
}
 
user1385191
10:14 PM
62*
 
user1385191
oh right we need to preventDefault too
 
Mac
It's working!
 
user1385191
it's still adding the hashtag
 
Mac
oh :o
 
user1385191
 
Mac
10:22 PM
It's working! :D
 
@OmeidHerat morning siir
 
user1385191
it works in IE 7 quirks mode too ;)
 
user1385191
(though the css is a little wonky)
 
Mac
Matt thank you so much! Your so good at Javascript!
 
user1385191
just a note on the last fix/event delegation
 
Mac
10:24 PM
Yer I need to make some CSS adjustments in IE :p
 
user1385191
you add a handler to a broad element like the body or the document
 
user1385191
and you check the target property of the event (the element triggering the event)
 
user1385191
and then delegate functions accordingly
 
Mac
ah ok I see why its called delegate now :)
 
user1385191
in your case, facebox was stealing the clicks of homeLink
 
Mac
10:27 PM
oh right
 
user1385191
and since facebox didn't exist when the handler was added, I just went further up the DOM to something more reliable (the body)
 
user1385191
now if body already had an onclick handler, there would be some trouble
 
user1385191
as it would be overwritten
 
Mac
ah ok
Well once again many thanks! If you have a blog/portfolio you'd like linking to from my site i'd be more than happy :)
 
Mac
10:40 PM
@MattMcDonald Ok well I'm off as it's nearly midnight here in the UK and I have to get up early! :) Thanks Matt!, and when you get your website finished send me over a link and I'll add it to my site :)
 
11:33 PM
@MylesGray A few thoughts - really, don't mix units like that
Your sidebar has 13em width, while the music thingy uses fixed 45px per album width
 
user1385191
the search form is far too small
 
user1385191
the submit button is on the next line on my 1920px monitor
 
The article sidebar's hover style does not match the clickable area
@MattMcDonald Same here
 
user1385191
ps: float+clear your inputs too
 
ahha
i love this site
finally figured out that flash cam allow/deny issue in FF
the one thats due to half pixels
 
11:36 PM
I'm also sceptical about sticking the date and time in the background of the post
 
lol... been trying to fix that one for such a long time
 
Oh, and try not to use Museo everywhere - come on, at least make the logo distinct
Anyway, I cannot stress this enough - please do not mix your units like that
 
user1385191
ems are just for fonts, no?
 
11:54 PM
Morning everyone.
@MattMcDonald have you ever manged to have dns wildcards or setup a DNS sever in windows 7 ?
 

« first day (162 days earlier)      last day (4791 days later) »