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>
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?
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>
Where is the CSS?
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
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
Thanks a lot to all three of you for replying, it is really helpfull.
so what is the solution? please mark it.
so if that is the solution please mark it as solution
Please do not send such messages on random topics.
lets talk on pm instead.
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.
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.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.