How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask TheDoctor Your Own Question

TheDoctor
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1426
Experience:  M.S. in Internet Information Systems
Type Your Homework Question Here...
TheDoctor is online now
A new question is answered every 9 seconds

• Dynamic creation of at least 3 sets of
Expert:  TheDoctor replied 1 year ago.
Hello again! Thank you for requesting me. I kindly ask that you remember to start your questions with **For TheDoctor** when requesting me in the future. It helps me keep track of things and ensures that I do not overlook any of your requests.

Please send whatever you have completed by uploading it to http://ge.tt

Once uploaded, you will be given a link on the right. Click on the 'Copy Link' option and then paste it here.

Thank you
Customer: replied 1 year ago.

http://ge.tt/74bkBsc/v/0?c


 


The images is on the way.


 


I forgot to tell you that I cannot use JQuery and innerHTML.

Expert:  TheDoctor replied 1 year ago.
Hello again,

Thank you. I will contact you once everything is complete.
Customer: replied 1 year ago.

Thank you.

Expert:  TheDoctor replied 1 year ago.
You're welcome
Customer: replied 1 year ago.

What is the progress?

Expert:  TheDoctor replied 1 year ago.
Hello again,

By when is this required?
Customer: replied 1 year ago.

Before midnight, if it is possible?

Expert:  TheDoctor replied 1 year ago.

Absolutely. I will contact you once it is complete.

Expert:  TheDoctor replied 1 year ago.
Hello again,

Quick question. Did you create this data. js file, or was it provided by your course?
Customer: replied 1 year ago.

I made it.

Expert:  TheDoctor replied 1 year ago.
Hello again!

You can download the completed functionality here:


This meets the following requirements:

1.) Create three drop down menus dynamically
2.) Use one method to create each menu based on the selection from the previous menu.
3.) Ability to start over at any time
4.) Use of cookeis and local storage
5.) Change background after last selection

When you open the page and enter your name, go ahead and test it by selecting Mammals -> Rare -> Samuel

I didn't have any of the images, so I put a "samuel.jpg" in the img folder for testing. You will see that it successfully sets the background. Place your images into the img folder to make it work with the images designated in the data file.

I had to alter the data file to use a better relational structure. While your animal objects had array elements that specified what group they belonged to, that is not a good or easy way of implementing this. Seaching the indexof on every single animal in all options everytime a selction is made.

Instead of that, I restructured the data file to use a heirarchical data structure. In this way, the animals have an actual physical relationship to the elements in which they belong. It is easy to list the mammals that are extinct because those animals belong to the extinct object within the mammals object. We can point directly to them instead of searching the entire data structure for them.

So, that meets all of the requirements that you listed. Let me know if you have any questions. I'm here to help.

Please remember to rate my answer. Thank you so much!
Customer: replied 1 year ago.

You are hilarious, my friend, with the XXXXX XXXXX image. What about the information that will provide with the last node?

Expert:  TheDoctor replied 1 year ago.
Hello again,

I'll try to get that to you as soon as possible.
Expert:  TheDoctor replied 1 year ago.
Hello again,

Here it is with the info working:


And Samuel L. Jackson just made sense. When he's around, plane snakes are "Critically Endangered". He's not a fan of snakes... on planes.

In any case, please remember to rate my answer. Thank you again!
Expert:  TheDoctor replied 1 year ago.

Hi Samuel,

I hope you received the previous answer that I posted. I posted it at 10:53PM EDT. I was worried because I know you said you needed this by midnight and I haven't seen that you retrieved the answer. Perhaps you didn't receive any notification.

The answer is posted above this message. I hope you get it in time!

Please remember to rate my answer. Thank you again!

Customer: replied 1 year ago.

It is fine. I just trying to get it done before midnight but failed. I want to set the background centered and fixed with the following code:


 


-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;


 


 


Remember you have use the


 


document.getElementsByTagName( 'body' )[0].style.backgroundImage = "url(img/" + localStorage.getItem( 'background' ) + ")";


 


in the project.js


 


 


I am trying to do this:


document.getElementsByTagName( 'body' )[0].style.background = "url(img/" + localStorage.getItem( 'background' ) + ") no-repeat center center fixed;";


 


with -webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;


 

Expert:  TheDoctor replied 1 year ago.
Take a look at this:


I would recommend keeping the backgroundImage line that was already there.

Look in the css/styles.css file. See that I added a body style that sets the background attributes. No current browser that supports CSS3 requires the CSS vendor prefix. You can just use background-size

I tested this in Chrome, IE9, IE10, Firefox, and Safari.

It results in what you are attempting without needing to modify the project.js at all. Keep in mind that CSS almost always cache's. So make sure you force a hard refresh before trying this (CTRL-F5).

Please remember to rate my answer. Thank you again.
Customer: replied 1 year ago.

I am handling very large and hd quality pictures, such as 1600x900. Would that css solve that? Would it appear fast in the server?


What is the best way to processe that?

Expert:  TheDoctor replied 1 year ago.
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
If you've already paid for this answer, simply Login.
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1426
Experience: M.S. in Internet Information Systems
TheDoctor and 10 other Homework Specialists are ready to help you
Customer: replied 1 year ago.

The set of cookie is not working. Did you overlook that?


 

Expert:  TheDoctor replied 1 year ago.
I did not overlook anything.

You were already setting a cookie when the page loads. It asks for name and sets a cookie. If the cookie is already set and has not expired, it does not ask again. I didn't touch that functionality.

Perhaps you are talking about the local storage?

That is also working as you implemented it. What about it is "not working"?
Customer: replied 1 year ago.

It keep asking me. If it truly set the cookie, it should still remember me.

Expert:  TheDoctor replied 1 year ago.
That was completely written by you and I did not touch it. When I was testing it, you had implemented it correctly.

Now, you are setting the cookie to expire at the end of the session. So it will ask you ever time you restart your browser or leave the site for a while and the return.

If it asks you ever time you load the page, then you must have broken it. In the copy that I have, your code is working.
Expert:  TheDoctor replied 1 year ago.
If you want to send me what you currently have, I'll take a look. You are not passing in any expire time, so the cookie only lasts as long as the session. If that is the issue you are having, that is by design. Pass in an expiry to extend the life of the cookie.

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Last | Next >
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
  • He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX
 
 
 

Meet The Experts:

 
 
 
  • Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
< Last | Next >
  • http://ww2.justanswer.com/uploads/BU/BusinessTutor/2012-2-2_115741_Kouki2.64x64.jpg Manal Elkhoshkhany's Avatar

    Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
  • http://ww2.justanswer.com/uploads/LI/lindaus/2012-6-10_04811_IMG20120609164157.64x64.jpg Linda_us's Avatar

    Linda_us

    Finance, Accounts & Homework Tutor

    Satisfied Customers:

    3121
    Post Graduate Diploma in Management (MBA)
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Engineer

    Satisfied Customers:

    3035
    Expert in Java C++ C C# VB Javascript Design SQL HTML
  • http://ww2.justanswer.com/uploads/lanis/2009-4-1_233717_phput9xef_c1pm.jpg Lani S.'s Avatar

    Lani S.

    Tutor

    Satisfied Customers:

    2457
    Registered Nurse, Internet Researcher, Private Tutor
  • http://ww2.justanswer.com/uploads/chooser77/2009-08-18_162025_Chris.jpg Chris M.'s Avatar

    Chris M.

    M.S.W. Social Work

    Satisfied Customers:

    2341
    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)
  • http://ww2.justanswer.com/uploads/JawaadAhmed/2009-6-27_12137_SIs_SHadi.jpg F. Naz's Avatar

    F. Naz

    Chartered Accountant

    Satisfied Customers:

    1975
    Experience with chartered accountancy
  • http://ww2.justanswer.com/uploads/JK/jkcpa/2011-1-16_182614_jkcpa.64x64.jpg Bizhelp's Avatar

    Bizhelp

    CPA

    Satisfied Customers:

    1873
    Bachelors Degree and CPA with Accounting work experience