Google Search with NoFileHtml extension

Should it be like this @AyProductions ?

<html>
<body>
<!DOCTYPE html><script async src="https://cse.google.com/cse.js?cx=a51e72848a5aa49ee">
</script>
<div class="gcse-search"></div>
<div class="gcse-searchresults-only">
</body>
</html>

You should have a properly structured html to load into the extension. It is not designed to accept fragments.

Have you tried the run js block in the webviewer?

1 Like

no this is not correct code. syntax is incorrect

Try -

<!DOCTYPE html>
<html>
<body>
<script async src="https://cse.google.com/cse.js?cx=a51e72848a5aa49ee">
</script>
<div class="gcse-search"></div>
<div class="gcse-searchresults-only">
</body>
</html>
1 Like

Where is the CSS?

1 Like

i dont think it needs css i executed the code in a html executor and it worked perfectly fine?

that is what I meant @Aarush_Kumar

he just did not understand my reply, @ARNAV_TIWARI_11356-2 i was telling you that put doctype html at top of html structure

There is a </div> missing in your code :wink:

1 Like

you mean this?

Aah i see i guess this should work -

<!DOCTYPE html>
<html>
<body>
<script async src="https://cse.google.com/cse.js?cx=a51e72848a5aa49ee">
</script>
<div class="gcse-search"></div>
<div class="gcse-searchresults-only"></div>
</body>
</html>

This code is supposed to work :slight_smile:

1 Like

Thanks a lot to all three of you for replying, it is really helpfull.

so what is the solution? please mark it.

how about this one by @Aarush_Kumar

so if that is the solution please mark it as solution

1 Like

Please do not send such messages on random topics.

1 Like

lets talk on pm instead.

1 Like

Why are you trying to do this via an extension, if this is already available with built-in blocks only?

With this you can also read the results via JSON.

1 Like

Not just this, there are still many Google Search APIs in the APIs directory.

Even without Web APIs, why don't you just copy the code, put it in an HTML file, upload it into App Inventor and use the WebViewer?

All of this is available without extensions.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.