Link to home
Start Free TrialLog in
Avatar of Pinapple Pink
Pinapple Pink

asked on

Reference Error/Javascript Fails to Load:Please help ASAP.

Problem:

Encountering Reference Error/.JS file unable to load. The goal is to have input from the user displayed in another text field.  Then reset the first input field so that new info can be put in. The code is 97% complete with all HTML requirements including methods and variables in the .js file. The code is in vanilla javascript and HTML. Located below and saved as a .txt for upload compatibility to the site.

Attempted solutions: Initializing the anonymous function to a variable did not work. Looking for a solution ASAP. Plugins/extra frameworks/Jquery cannot be used.
THECURRENTASSIGN1CODE91518.txt
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Hey there,

I've had a look through your code, and I can't really figure out what you're trying to do. There's a lot of 'odd' looking code in there that doesn't really do anything. You say you're getting a 'Can't load file' error. The code you've posted has a <script> tag that tries to load the tshirt1.js. I'm guessing all the JS code at the bottom of your upload is actually stored in this file.

If you explain what you're trying to do, maybe we can help you out.
ASKER CERTIFIED SOLUTION
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pinapple Pink
Pinapple Pink

ASKER

Hello,

Thanks to all who have helped and left comments! I'm leveling from Back-End Programming to Front-End, so there were some slight syntax differences between the two languages that were worked out.