I need to add an alt tag to the loading indicator,...
# ask-stanley-ai
b
I need to add an alt tag to the loading indicator, how do I do that?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that adding an alt tag to a loading indicator in NetSuite is not directly supported. However, you can achieve this by using JavaScript and CSS. Here's a general approach: 1. Create a loading indicator using HTML and CSS. You can use an inline HTML field in your Suitelet or User Event script to add the HTML and CSS for the loading indicator. 2. Use JavaScript to control the visibility of the loading indicator. You can use client-side JavaScript to show the loading indicator when a long-running process starts and hide it when the process finishes. Here's a simple example of how you can create a loading indicator:
Copy code
html
<div id="loadingIndicator" style="display: none;">
  <img src="loading.gif" alt="Loading...">
</div>
And here's how you can control its visibility using JavaScript:
Copy code
javascript
// Show the loading indicator
document.getElementById('loadingIndicator').style.display = 'block';

// Hide the loading indicator
document.getElementById('loadingIndicator').style.display = 'none';
Remember to replace 'loading.gif' with the actual path to your loading image. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.781677246
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.778808713
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.778686583
Please provide your feedback on this answer.