Add Poll
 
Options: Text Color Split Pie
 
 
 
 
 
 
 
 
Poll Comment:
Max 500 characters. Remaining characters:
days and minutes. Leave it blank if you don't want to set it now.

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry
Topic Summary - Displaying 9 post(s). Click here to show all
Posted by: Monni
Posted on: Aug 14th, 2014 at 3:51am
Dandello wrote on Aug 14th, 2014 at 1:59am:
To my utter astonishment I got a javascript image resizer for the board pictures to actually work - without breaking anything else.  Shocked


Way to go... Cheesy
Posted by: Dandello
Posted on: Aug 14th, 2014 at 1:59am
To my utter astonishment I got a javascript image resizer for the board pictures to actually work - without breaking anything else.  Shocked
Posted by: Dandello
Posted on: Aug 13th, 2014 at 8:51pm
Well, the javascript solution based on the image_resize sub just didn't do it. BUT, a css solution worked. (I checked it in all the major browsers I have on my test machine and so far it's looking okay.)

Edited:
However, it still may not be quite 'smart' enough to 'smart resize' images that are tall and skinny.
Posted by: Monni
Posted on: Aug 13th, 2014 at 2:16pm
Dandello wrote on Aug 13th, 2014 at 1:22pm:
There's a number of 'interesting' issues to be worked out.


I'm just saying "You can do it... You can do it..." Smiley
Posted by: Dandello
Posted on: Aug 13th, 2014 at 1:22pm
There's a number of 'interesting' issues to be worked out.
Posted by: Monni
Posted on: Aug 13th, 2014 at 10:44am
Dandello wrote on Aug 13th, 2014 at 5:02am:
I was thinking about using the Board IDs to generate IDs for all the Board pics and put those into the javascript array for resizing. In theory, that should get around the problem of the pictures in the hidden tables not being detected.

I'll work on it tomorrow.


Even if you get all the IDs in the array, the result depends on whether the actual resize call in JavaScript code happens late enough that the actual DOM nodes are iterable.
Posted by: Dandello
Posted on: Aug 13th, 2014 at 5:02am
I was thinking about using the Board IDs to generate IDs for all the Board pics and put those into the javascript array for resizing. In theory, that should get around the problem of the pictures in the hidden tables not being detected.

I'll work on it tomorrow.
Posted by: Monni
Posted on: Aug 13th, 2014 at 4:05am
The obvious solution is to add step to the Ajax call that loads the hidden boards, which either re-iterates the images and updates the list at the bottom of the page source or forces Perl to handle the image resize for them instead of JavaScript code.
Posted by: Dandello
Posted on: Aug 12th, 2014 at 10:37pm
When in the MessageIndex dropdown, board pictures don't get included in the javascript array that controls the image resize. (I'm guessing that since they start out 'hidden', the javascript script in Subs.pm doesn't see them to change their IDs and stick them in the array.)

It would be nice to not lose the board picture resize but this level of javascript writing is beyond me.