Home › Forums › JavaScript › Why would page not display in browser from server?
- This topic is empty.
-
AuthorPosts
-
June 9, 2014 at 5:44 pm #172266cyclinggParticipant
I finished an assignment for school and uploaded my files to the school server in the student display area. When I checked to make sure everything worked as it should, a couple of things did not work.
I have a shopping cart with a “proceed to checkout button” that takes you to the check out page. If you did not login yet, you are first taken to the login page. After logging in, the checkout page displays and you fill a form (which has functions checking for blank fields, correct email format, alpha only or integers only).
When I have all the files on my local drive and I double click the .html to display the pages in Firefox, everything displays and works as it should. After uploading to the school server, the login page did not display. Instead the checkout page displayed but the content was hidden because I have visibility set to hidden if login is needed. After logging in, the content is set to visible and the form is ready to fill in.
Why would this work when the files are on my local drive but not when they are on the school server? I wouldn’t even know where to begin looking for a solution. This is the first time this has happened to me.
When you code, how to you check this while writing your code if everything looks and works correctly on your computer?
My code is long and a few pages; so, I do not know which to put in a codepen for people to check.
Any help would be appreciated.
June 9, 2014 at 9:14 pm #172270cyclinggParticipantSolved.
I ended up changing my “Proceed to Checkout” button to be part of my table and used an to my page.
Then in my <form> tags, I placed my id and name before the action. When I placed the action before the id and name, the pages that did not display now displays.I do not know why everything displayed when the files were on my local drive but not when they were on the schools server.
June 11, 2014 at 7:00 am #172411cyclinggParticipantI installed Xampp and tested my pages on its local webserver. Everything loaded. It is only when my files are on the school server that some pages do not display. Weird.
Oh well, at least it works now.
-
AuthorPosts
- The forum ‘JavaScript’ is closed to new topics and replies.