Questions tagged [week9]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
28 views

The Ajax introduced on lecture and in the Shorts Video are very different: will be helpful to know why?

The lectures on the AJAX is confusing since usually, the shorts just elaborates what is on the lecture. But this time, they looks very different. The short video is easier to understand as it gives ...
TrytoLearn's user avatar
0 votes
1 answer
61 views

my ajax code doesn't seem to be working

Issue: index.html works fine. I can click on button, but nothing in infodiv changes. So the Ajax code is broken! Files location: I run the files on my desktop visual studio code. All images are inside ...
TrytoLearn's user avatar
0 votes
1 answer
31 views

why does "world" not show up when did not enter name in the form?

i followed the instructions very closely. When i do enter a name it works just fine. However, when i do not enter it, "world" did not show up. only the "hello, " part. This was ...
TrytoLearn's user avatar
0 votes
0 answers
29 views

Finance question. expected status code 200, but got 400 for register route

@app.route("/register", methods=["GET", "POST"]) def register(): """Register user""" if request.method == "POST" : ...
Bunn Bunn's user avatar
0 votes
1 answer
66 views

Finance pset, cs50's SQL INSERT statements results in runtime error

I'm trying to write a buy() function which would update user's stocks and his balance. I've added two new tables to my finance.db: stocks table for storing user's stocks and transactions table for ...
Nikolai Anisimov's user avatar
1 vote
0 answers
93 views

buy handles valid purchase expected to find "112.00" in page, but it wasn't found

What am I missing?? from other posts I have read this error typically results from formatting issues. I believe in my code the place to use USD() is on the index page, but it's not resolving the error....
weary-explanation-91's user avatar
0 votes
0 answers
62 views

quote handles valid ticker symbol: expected status code 200, but got 400

Do you know how to resolve the error of getting status code 400 when a valid ticker symbol is entered on the quote page? I tried using valid symbols but am only getting status code 200 as expected... @...
weary-explanation-91's user avatar
0 votes
1 answer
275 views

Lab9 -- Buttons to delete DB entries don't work

Can anyone please tell me why my "Remove Entry" from DB buttons don't work? I included the python.app code below the HTML: <!DOCTYPE html> <html lang="en"> ...
General Noob's user avatar
0 votes
1 answer
19 views

Escaping Characters in PHP

// handle URL if (preg_match("/^https?:\/\//", $destination)) { header("Location: " . $destination); } I was wondering why the string inside preg_match has extra /^ and / ...
Jessup Jong's user avatar
1 vote
2 answers
95 views

How is Week 9 SQL Atomocity solved?

David said: So in problem set seven, we give you this one line of code, which long story short, solves this problem in MySQL. This very long instruction that doesn't even fit onto one line on ...
RexYuan's user avatar
  • 309
0 votes
1 answer
34 views

form-1.html from Week 9 Code Walkthroughs

http://pastebin.com/jqhiH3MR This is form-1.html from Week 9 code walkthroughs. When professor runs this code in the video without giving any input, he gets an alert message and his url remains the ...
Aditya Kashyap's user avatar
0 votes
1 answer
208 views

Week 9 froshims

In week 9 source codes, can anyone post the output screen of froshims-1.php. When i run it, it doesn't make a difference whether or not I include bootstrap. Nor does it make a difference if I delete ...
Aditya Kashyap's user avatar
0 votes
2 answers
421 views

Cant list files in chrome when I enter localhost

When I try to list my files in chrome as david did in week 9 lecture, I get this error message: Forbidden You don't have permission to access / on this server. I entered http://localhost and ...
Shiva Upreti's user avatar
2 votes
3 answers
759 views

Can't access local host. Forbidden

I am typing out and following along with Week 9 codes as shown in lecture. When i remove index.html and index.php from my directory, i expect to see list of files when i run http:// localhost in ...
Aditya Kashyap's user avatar