« first day (1464 days earlier)      last day (3499 days later) » 

9:11 PM
ahahaha so funny
hahhahaa
 
Morning peeps
 
monner are you in NZ?
 
Australia, iirc
monners, Melbourne, Australia
1.3k 6 16
 
Ah, an aussie
 
That's me!
 
9:35 PM
Would watch again, even if I know it is a parody
 
9:54 PM
Ew melbourne
 
@monners why are there so many things that want to kill you in Australia but they are not living in NZ although your countries are really close by
 
Hi all :)
 
@user1352057 Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
What Caprica forgot to mention is that sometimes you have to ask your question 2-3 times depending on the active people in the room
cause some people can answer, others can't, and sometimes people don't feel like answering
 
"Some people see languages as religions, this cannot be avoided. We all hate Java but we shouldn't lynch the people who write it." ...... love this bit :D
 
9:58 PM
so just be patient and repeat yourself in some consecutive intervals of hours
 
@ziGi understood :)
 
Well I know this from my personal experience
also don't be racist, sexist, ageist, etc.
 
@phenomnomnominal What've you got against Melbourne?
 
I do have a question, but i'll read the rules first before proceding
 
you'd get kicked
Nah, ask
 
9:59 PM
@user1352057 You'd be the first
 
there is nothing strict
@monners not true, I also read them
I also lost the game
multiple times
 
Ok, here goes..... I have a JS issues with I.E on a smooth scroll function
it works perfectly in Chrome and FF but crashes and burns in i.e
 
does it flickker
 
@user1352057 which IE
 
haha IE
 
10:00 PM
can i post code for you guys?
 
Well that's surprising
 
I just knew before IE even loaded there would be an issue of some kind....i wasnt wrong :(
 
If IE has the courage to ask you to be your default browser, so can you gain the courage to ask your crush to a date :D
 
@user1352057 You'll get a better response if you put it in a fiddle that demonstrates the problem
 
@monners nah i like it :)
 
10:01 PM
@ziGi yes, more old unfunny jokes please
1 min ago, by Bartek Banachewicz
@user1352057 which IE
 
@BartekBanachewicz I thought you are hipster and like old vintage stuff
that's classic
 
Do you know what "vintage" means?
it implies something was good before.
this joke was awfully lame the second it was made.
and it only got worse.
 
Your mom's vintage!
One day I'll aspire to be vintage myself
 
Well, that is highly opinionated, what is lame for you might be funny to other geeks.
 
@ Bartek Banaachewicz its I.E 11.0.96
 
10:03 PM
Every text editor will have a monners mode
 
Had to actually find in I.E how to get that info as the last time I loaded it was about 4 years ago
 
@ziGi right.
 
@BartekBanachewicz can you tell me a joke then that you find funny and it is an IT joke?
 
When you have to argue that a joke is funny, the joke ain't funny.
 
I can't think of an IT joke that is not "lame"
 
10:06 PM
Ya know, there's this funny little feature in SO Chat where you can ignore a user...
Works a treat
 
ok I can tell you a funny joke:
Q: What are the rules of the JS room?
A: Come, ask something, get banned, go & google it
 
Nope
 
Q: What do you do when you see a beautiful girl?
A: I click Ctrl+S and save the picture.
- What a freaky query - thought the database and stopped working.
ahahahaha :D
that cracks me up
A client calls to hotline of internet service provider:
- I have a problem, internet stopped working two days ago, neither I nor my son nor anyone else can access it now..
- I see, do you know what's the operating system on your PC?
- Of course I do - it's Facebook...
ahahahaha :D
 
Just to ask guys - whilst i debug - the error on my Javascript is here on the .top property of the returned Offset() object: var targetOffset = $(id).offset().top - offSet;
Dont suppose anyones had an issues with .top in IE before?
 
I am not sure
but I have a vague memory there was something special about the .top in IE
 
10:20 PM
Hmmm yeah its weird. Funnily enough intellsense doesn't show the .top property.....yet it still works in chrome and FF which makes it even more frustrating!
 
0
Q: Javascript top variable in IE8

Jim RoothamI am trying to reference a javascript function in a .js file loaded in my main page from an iframe using the 'top' variable. It works in FF, Safari, and IE6 but not in IE8. The snippet is (assigned to onmouseover): top.set_image(this, 'images/login_h.png') Where set_image is my function...

look at this
 
.offset() should work just fine in IE
 
use the IE debugger to check each object in IE
for example
check what $(id).offset() returns
and then what the top property of that holds
I don't have IE locally
I would test it for you otherwise
 
@ziGi: that link is completely unrelated
.offset().top also works just fine in IE, @user1352057
 
may sound silly but i set an alert to check the property
 
10:23 PM
you are unrelated
Cerbrus
why don't you use console.log
 
@ziGi, I'm trying to help here.
@user1352057: is $(id) actually returning a (jQuery) html collection?
 
what is actually the object returned by $(id)
@user1352057 ?
is it a single object or a set of objects
 
@ziGi should be single
all i am doing is specifying the id of the div i want to scroll too
 
but what DOM object is it?
 
@user1352057: "Should be", okay, but what does it actually return?
 
10:30 PM
I couldnt tell you im afraid, I only really started looking into JS about 2 days ago.
 
Okay
 
I come from a C# background.
 
with me $(id).offset() returns Object doesn't support property or method 'offset' for any object
 
What browser are you using?
 
in IE
 
10:31 PM
@ziGi: is id a variable with a valid selector, when you try that?
 
@Cerbrus IE. I have no issue n Chrome or FireFox
I.E 11.0.96
 
@Cerbrus yes $('yml') returns a div
 
Okay. Press [F12], you should see a window open at the bottom of your browser
In there, find the console tab
 
with me $(id).offset() returns Object doesn't support property or method 'offset' for any object .......... All im getting is a 'scrolltop' property
 
yeah
I get the same
 
10:33 PM
@CerBrus
 
Ya?
 
Ok I have the window
Sorry I screwed that up
@Cerbrus ok I have the console
 
Okay, in that window, you can type JavaScript
And run it
Try this: console.log($('body'))
That should return a jquery object containing the body, right?
 
 
@btw to mention, I am only getting this error when I click the menu button on my navbar dropdown
 
10:36 PM
@user1352057: we don't know your application. That info really means nothing to us
 
oh wait I am missing the #
 
However, it's extremely weird for jQuery to be behaving differently on different browsers
 
hi @Cerbrus
 
Hi bestie
:P
 
10:38 PM
[object Object]{0: HTMLBodyElement {...}, context: HTMLDocument {...}, jquery: "1.10.2", length: 1, prevObject: Object {...}, selector: "body"}
 
Good
 
@Cerbrus thats what i get
 
Now try console.log($('body').offset())
 
@user1352057 do you call $('id') of $('#id')
 
@Cerbrus [object Object]{left: 0, top: 0}
 
10:40 PM
So it's not offset() that's misbehaving
 
@ziGi var obj = $(id).offset();
 
You're using $(id).offset().top. Can you console.log(id)?
 
yeah
 
(in the line before $(id).offset().top)
 
that's what I want to know too
 
10:42 PM
(So, edit your JS file, add the console.log(id) before $(id).offset().top, then run the page like you normally would, with the console open) @user1352057
 
Ok, i'll have to click an item on the navbar for it to trigger the script
 
Sure, do it.
 
OK VS throws an error and hides part of the error sadly
i'll try again
 
@Cerbrus open in IE en.wikipedia.org/wiki/Main_Page and try:
$(this).scrollTo($('#mp-lang').offset().top, 1000, {queue: true});
works with me
so apparently the guy doesn't take the $(id) properly
 
SCRIPT5: Access is denied.

File: embed, Line: 1, Column: 1
Thats all i can see really
 
10:45 PM
Waaaat
Yea, I don't know what's going on, @user1352057
You might be better off asking a question on the main site.
Make sure you describe your problem thoroughly
 
@user1352057 which jQuery are you using
 
I've gotta get some sleep...
 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
@ziGi ^
 
yeah I see
 
@Cerbrus ok no problems, many thanks for your time and help :)
 
10:48 PM
@user1352057
I read there is a problem with that
can you point your jquery to 1.10.0
and try the script you are currently running to see what console.log(id) does
just change the number to 1.10.0
 
@zigi changed it to 1.10.0 same thing. the id is #
so im guessing it has no id?
 
yes
what should the id var hold?
 
#myCarosuel
<li><a href="#myCarousel">Projects</a></li>
 
ok
 
<div class="carousel slide" id="myCarousel">
 
10:54 PM
can you try in your code
to replace $(id) with $('#myCarousel')
and see if it works
if it works then the problem is not with offset().top
but with your id being replaced by something else
earlier in yhe code
 
Ok replacing id with '#myCarousel' does not produce an error
when i click on the menu button to produce the dropdown it shows the list, before it would crash
Really strange though as it works with the other browsers
@ziGi
$(document).ready(function () {
$('#nav .navbar-nav li>a').on('click', function (event) {
event.preventDefault();

var sectionID = $(this).attr('href');

scrollToID(sectionID, 750);
});
sectionID is the id being passed to the scrollToID method
it pulls the ID from the href of the li item
 
ok
can you do
console.log(sectionID)
 
@ziGi it shows it as # again
so its not even getting the id at that stage in IE
 
so apparently $(this).attr('href'); doesnt work
yeah
 
11:36 PM
why hello everyone
 
sup
 
man
 

« first day (1464 days earlier)      last day (3499 days later) »