Please please fix the expand button on boxes. Here's how.

  • Bug
  • Thread starter sylas
  • Start date
In summary, there are buttons on physicsforums that allow for expanding and compressing menu boxes, but there is currently no button to expand the box again. This can easily be fixed by ensuring the image is at the correct URL and can be read. Additionally, there is an issue with the alt tag for the image, which should be filled with appropriate text to display in case the image cannot be rendered. The issue has been brought up before, but has yet to be resolved.
  • #1
sylas
Science Advisor
1,647
9
In several places on physicsforums, there is a button to "expand" and "compress" a little menu box. For example, if you go to your profile page, you can see such boxes on the right hand side:
Compress.jpg


If I click the little buttons to compress those boxes, I get this:
Expand.jpg


Note that there is no button to expand the box again. This is easy to fix. All that is required is for someone to ensure that the image is at the URL and readable.

Please someone do this!

The two button image URLs being used are:

"https://www.physicsforums.com/Prime/buttons/collapse_generic.gif" [PLAIN]https://www.physicsforums.com/Prime/buttons/collapse_generic.gif

"[PLAIN]https://www.physicsforums.com/Prime/buttons/collapse_generic_collapsed.gif" [/URL] [PLAIN]https://www.physicsforums.com/Prime/buttons/collapse_generic_collapsed.gif

Note no image in the second case. You just need to make sure that URL goes to a readable image file.

----
For html purists.

The other issue is that the image tag in the HTML includes alt="". This is the text that is intended to be used if the image isn't available. By having the empty string, there's nothing displayed when the image is absent! This is correct behaviour for a browser. Internet Explorer, however, which is broken in various ways in the sense of not following the standards, may display a special broken image icon.

Here's a little test case:
Code:
<html><body>

<p>Original: [<img id="collapseimg_friends_mini" src="[PLAIN][PLAIN]https://www.physicsforums.com/Prime/buttons/collapse_generic_collapsed.gif"[/PLAIN] [/URL] alt="" border="0" />]</p>

<p>No Alt: [<img id="collapseimg_friends_mini" src="[PLAIN][PLAIN]https://www.physicsforums.com/Prime/buttons/collapse_generic_collapsed.gif"[/PLAIN] [/URL] border="0" />]</p>

<p>Non-empty alt: [<img id="collapseimg_friends_mini" src="[PLAIN][PLAIN]https://www.physicsforums.com/Prime/buttons/collapse_generic_collapsed.gif"[/PLAIN] [/URL] alt="expand" border="0" />]</p>

</body></html>

Here is how it appears, in Firefox, and in IE:
ComparFirefoxIE.jpg


Since XHTML requires an alt tag, the correct thing to do is get a real alt tag with any image, with suitably chosen text. Empty text is only appropriate in images where you don't mind if nothing is displayed in cases where the image cannot be rendered, for any reason.

I've posted about this in the past and PMed also, but the problem is still there. Sorry to be a pain, but it's annoying me. As matters stand, I have to clear cookies to get the buttons back.

Cheers -- sylas
 
Last edited by a moderator:
Physics news on Phys.org
  • #3
Ta muchly!
 

1. Why is the expand button not working on boxes?

The expand button may not be working due to a technical issue or bug in the coding of the website. It could also be caused by a slow internet connection or an outdated browser.

2. How can I fix the expand button on boxes?

To fix the expand button on boxes, try refreshing the webpage or clearing your browser's cache. If that doesn't work, try using a different browser or device. You can also contact the website's technical support team for assistance.

3. Can I manually expand the boxes?

It depends on the website and the design of the boxes. Some boxes may have a manual expand option by clicking on a specific area or using a keyboard shortcut. If not, you may need to wait for the website to fix the issue.

4. Is this a common issue on websites?

Yes, technical issues and bugs are common on websites, and the expand button on boxes is one of the many features that can malfunction. It is important for websites to regularly test and update their coding to prevent these issues.

5. How long does it usually take to fix the expand button on boxes?

The time it takes to fix the expand button on boxes can vary depending on the complexity of the issue and the availability of the website's technical support team. It could be resolved quickly or may take a few days. It is best to contact the website's technical support team for an estimated timeline.

Similar threads

  • Programming and Computer Science
Replies
3
Views
1K
  • Feedback and Announcements
Replies
13
Views
1K
  • Programming and Computer Science
Replies
1
Views
1K
  • Astronomy and Astrophysics
Replies
25
Views
2K
  • Computing and Technology
Replies
3
Views
2K
  • Math Proof Training and Practice
3
Replies
93
Views
10K
  • Feedback and Announcements
Replies
2
Views
3K
Replies
6
Views
3K
  • Math Proof Training and Practice
3
Replies
100
Views
7K
  • Math Proof Training and Practice
2
Replies
52
Views
9K
Back
Top