Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7709403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:51:11+00:00 2026-06-01T00:51:11+00:00

The background to this problem is that I’m doing a computing project which involves

  • 0

The background to this problem is that I’m doing a computing project which involves Some drop down boxes for input, and a text input where the user can input a date.

I’ve used YUI to enhance the form, so the calendar input uses the YUI calendar widget and the drop down list is converted into a horizontal list of inputs where the user only has to click once to select any input as opposed to two clicks with the drop down box (hope that makes sense, not sure how to explain it clearly)

The problem is, that in the design section of my project I stated that I would follow the progressive enhancement principles. I am struggling however to ensure that users without JavaScript are able to view the drop down box / text input on said page.

This is not because I do not necessarily know how, but the two methods I’ve tried seem unsatisfactory.

Method 1 – I tried using YUI to hide the text box and drop down list, this seemed like the ideal solution however there was quite a noticeable lag when loading the page (especially for the first time), the text box and drop down list where visible for at least a second. I included the script for this just before the end of the body tag, is there any way that I can run it onload with YUI? Would that help?

Method 2 – Use the noscript tag . . . however I am loathed to do this as while it would be a simple solution, I have read various bad things about the noscript tag.

Is there a way of making method one work? Or is there a better way of doing this that I am yet to encounter?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:51:13+00:00Added an answer on June 1, 2026 at 12:51 am

    Yui has the domready event (that occurs a bit before onload)

    http://yuilibrary.com/yui/docs/api/classes/YUI.html#event_domready

    function bootstrap(ev) {
        alert("This is the code to launch on domready");
    }
    
    YUI().use(
        "event", 
        function (Y) {
            Y.on("domready", bootstrap);  
        }
    );
    

    Should do what you are looking for

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this problem that always occurs when I'm using display: inline-block to display
(The background for this question is that I thought it would be fun to
I have this classic problem that seems impossible to solve for me. I just
I get this problem in IE7 when running a piece of code that uses
I have this problem that my .php file is presented as clear text in
I am looking for a solution to this problem that does NOT require using
I have this big problem that i dont know how to fix. I have
Please could someone help diagnose this tiny problem that shouldn't be one - trying
So I have this problem, which has never happened to me before. I am
One of my users is having this weird problem that I cannot seem to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.