last day (15 days later) » 

2:08 AM
hi Andres
 
@Matt u here?
hi Matt
 
@Andres yes
 
@Matt ok so using alerts I see how much height is outputting but it's not correct either
this is only in IE that doesn't show right
 
I can't tell what's throwing the error. Try to figure out which object it is in this line, k?
videoBrowser.height(innerDoc.scrollHeight + 35);
 
ok
hope we don't get points deducted for that haha
 
2:13 AM
nah
 
7 messages moved from JavaScript
 
so I was saying that innerDoc.scrollHeight yes it does have an error but it sort of shows
but not entirely
 
can you alert it's value?
 
yes it shows 1267
first time it loads shows 0 which is ok because when i first open the page you don't see that content right away
 
so it's being called twice?
 
2:18 AM
yes but thats because on my parent page i left
jQuery(function() {
sizeIFrame();
jQuery("#ifrm").load(sizeIFrame);
}); in there
if i take that out it should call it once
 
ya, and it sounds like the second one may be valid
 
yea the second is kinda valid
 
only kinda?
 
yea because it shows about 1/4 of the page
 
in theory it should be the same value across all browsers. is it?
 
2:20 AM
its better than before but still not complete
in theory yes it should be the same
 
so in IE it only is 1/4 correct then :/
 
in chrome it actually shows wayy to much and IE not enough and Firefox nothing at all
 
I can't imagine why
 
me neither
 
did you go with body onload or jquery document.ready?
 
2:22 AM
body onload on the child page
 
try loading some simple content in your iframe like a few fixed height divs and see if it calculates corretly
 
ok so set a div height="1300" to see that 1267 value still shows right?
 
sure
 
ok this is freaky
the alert showed 1451 which is fine cause I put the height:1400px
but on the parent page it just shows 1/4 still
 
odd
 
2:28 AM
well cause that scripts goes by the document.content or document.body
not the div's height
i suppose
you want the link of the page so you can see if there's something else? I only have the production link but code hasn't changed much from that version
 
2:40 AM
was looking for some code. Found it. Cross browser height getter for your IFrame:

parent.jQuery(document).height()
call from body onload
 
this is from the other page not the parent right?
that doesn't show either and actually right before I added your code, I was testing in IE Developer Tools
and doing a step through it showed everything
but when I took off the breakpoints then it went back to showing 1/4 of the page
now this iframe is inside the jquery tinyscrollbar plugin
and im starting to wonder if that's causing this
 
yup called from the IFrame. did you try it? how'd it go?
 
3:50 AM
didn't work either :( it shows just a portion not the whole body but at least its the same portion on all browsers
 

last day (15 days later) »