Ask coding questions

← Back to all posts
Google
h
VulcanWM (2770)

I have started making a search engine quite similar to Google. The problem is that I don't know what I have done wrong. Can someone please help me?

Answered by SixBeeps (5221) [earned 5 cycles]
View Answer
Comments
hotnewtop
SixBeeps (5221)

What are you trying to do that isn't working?

VulcanWM (2770)

I am trying to make it say 'There are 22525225 results' when I press Google Search and say 'Try out the new Google Doodles. Just type in Google Doodles' when I press I'm Feeling [email protected]

SixBeeps (5221)

@medcho You're putting HTML code in your JavaScript? That's not how that works.

VulcanWM (2770)

I am putting my HTML code in my HTML, not my [email protected]

SixBeeps (5221)

@medcho Anything within <script> tags is JavaScript, not HTML

VulcanWM (2770)

Can you help me put this in [email protected]

VulcanWM (2770)

No. I only started learning HTML 3 days ago. I just know lots of [email protected]

SixBeeps (5221)

@medcho Mkay. At the very least, read through this page to get a feel for how JS works and what it can do.

xxpertHacker (930)

Okay, okay... you need to stop, if not, then slow down, like A LOT. You don't just learn HTML for 3 days, not know JavaScript, not know CSS and suddenly expect to copy the most widely used and most popular search engine on Earth as of 2020 with success. It just doesn't happen. You need to thoroughly learn HTML first. There are HTML tutorials everywhere across the web, maybe FreeCodeCamp, or w3schools?

Also, Google is more than a single webpage that has a button that shows you everything, it has plenty of server-side and client-side code. Like unimaginable amounts of links and complex systems and web crawlers and so much more.

[deleted]

@medcho Like he said, you ought to look at those links first. But this is possible: Woogle

VulcanWM (2770)

I will look at the links. Who made Woogle? It is [email protected]

oignons (68)

@medcho this guy @AdCharity (sorry for the ping) did.

AdCharity (1322)

@ipastrano lmfao I'm just glad my project was memorable

[deleted]

@AdCharity Too bad it hasn't been updated since. Wanna change that?

oignons (68)

@AdCharity it was very memorable, it looked just like Google :D

AdCharity (1322)

@JadenGarcia alright I guess I'll try in a bit to remake the whole thing lmfao tbh I've been literally losing upvotes so I can imagine either I've pissed someone off on Discord or someone is coming after me

[deleted]

@AdCharity
1) Why totally remake it? Maybe just leave it in dev mode for a month for it to have more results, I dunno.

2) It's probably just one person, unvoting on you.

3) Why are pissing off people in the Discord!? C'mon!

4) I'm SF, read my bio.

5) I've got some C++ to get back to.

HackermonDev (2020)

Maybe try making your own search engine instead of copying Google's code

VulcanWM (2770)

I am not copying Google's code. I am just copying how it [email protected]

HackermonDev (2020)

@medcho then you will have to also copy the style files from google.com

[deleted]

He means that you are going to copy all the CSS styles from google. And in case you didn’t know, CSS is what controls the styling of the webpage. @medcho

PowerCoder (740)

What is the function gs() supposed to do, it's empty right now?
Also, change line 21-27 to:

<script>
  function gs(){
  }
</script>
<p>There are 22525225 results</p>

All your javascript has to go between script tags.

VulcanWM (2770)

Function gs() is supposed to say 'There are 22525225 results'@PowerCoder

[deleted]

@medcho You can't make a search engine without js. html simply is for looks.