BakaBT > Need Help? Ask Here
Description - sandbox iframe resize problem in IE 8
K7IA:
--- Quote from: Xiong Chiamiov on November 28, 2009, 09:59:08 PM ---That's good to know. Of course, it'd be nice to find out what exactly was causing the conflict, but if it works... not a super-high priority.
--- End quote ---
I agree, if it works as I intend it to be :)
--- Quote from: Jarudin on November 29, 2009, 12:31:27 AM ---Ugh, what a monster script.
Why do you make it so hard on yourself by implementing EVERYTHING in JavaScript?
Why not make a few panels in HTML and only use JavaScript to show and hide them according to the tab?
--- End quote ---
Actually my intention was to make it with html and javascript for show/hide effects, but the number of tracks (250+) and disc count (=9) would make html editing a pain for me in case of a change and it is more readable/editable imo.
--- Quote from: Jarudin on November 29, 2009, 12:31:27 AM ---I'm not sure why IE8 decides the iframe should be only 150px high. I see you made the wrapper div 800px high, does this work for you?
As for the discrepancy between the sandbox and the description page: the description page iframe height is cached so it starts off with a really good first guess so the iframe rarely has to resize. This is not important or even possible for the sandbox. I'm not sure why IE8 accepts the correct height though, I would expect it to resize down to 150px.
--Jarudin--
--- End quote ---
I didn't know about the caching of iframe height, I thought that you set the 150px as a minimum for height of content :)
I intend to use this code as a template for further multicd OST adoptions, that's actually why I need a more editable code where I can quickly change the title list.
Jarudin:
I've been thinking about this for a while, but how about I make a set of template functions that allow you to read from the torrent filelist? Using regular expressions to filter.
Like:
--- Code: ---
<ul>
<strong>Soundtrack 1</strong>
[file=soundtrack 1/(.*.mp3)]<li>$1</li>[/file]
</ul>
--- End code ---
Would list all mp3 files in the folder 'soundtrack 1'.
Or:
--- Code: ---
<ul>
<strong>Soundtrack 1</strong>
[file=soundtrack 1/([0-9]+) - (.*.mp3)]<li>Track #$1 - $2</li>[/file]
</ul>
--- End code ---
But maybe this is a bit complicated for non-technical people.
Something like this would be easier and more secure (but less powerful):
--- Code: ---
[file][folder=soundtrack 1,type=mp3]<li>[name]</li>[/file]
--- End code ---
or
--- Code: ---
[file][folder=soundtrack 1/disc 1,type=mp3]<li>[name]</li>[/file]
--- End code ---
You could also use it to print JavaScript of course.
--Jarudin--
K7IA:
^that would be awesome
I wanted to adopt Final Fantasy OST (http://bakabt.me/130907-final-fantasy-lossless-music-collection.html) but there are 3500+ (iirc) files in it, so I decided to pass just because of the sheer file count.
local development would be a problem I guess, due to BBcode usage.
Xiong Chiamiov:
--- Quote from: enginarc on November 29, 2009, 02:17:00 PM ---I wanted to adopt Final Fantasy OST (http://bakabt.me/130907-final-fantasy-lossless-music-collection.html) but there are 3500+ (iirc) files in it, so I decided to pass just because of the sheer file count.
--- End quote ---
Ahem. It still has some issues, but I'm hoping to get some of those ironed out after finals (week from next).
K7IA:
--- Quote from: Xiong Chiamiov on November 30, 2009, 12:50:42 AM ---
--- Quote from: enginarc on November 29, 2009, 02:17:00 PM ---I wanted to adopt Final Fantasy OST (http://bakabt.me/130907-final-fantasy-lossless-music-collection.html) but there are 3500+ (iirc) files in it, so I decided to pass just because of the sheer file count.
--- End quote ---
Ahem. It still has some issues, but I'm hoping to get some of those ironed out after finals (week from next).
--- End quote ---
Your software has the most understandable copyright/license agreement I have ever read :P
Will try it now,
Navigation
[0] Message Index
[*] Previous page
Go to full version