# Javacript excute without webbrowser

**URL:** <https://forum.xojo.com/t/javacript-excute-without-webbrowser/30164>\
**Category:** General\
**Created:** [March 6, 2016, 3:14pm UTC](https://forum.xojo.com/t/javacript-excute-without-webbrowser/30164 "2016-03-06T15:14:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jean-marc\_planas](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@jean-marc\_planas](https://forum.xojo.com/u/jean-marc_planas)\
**Post date:** [March 6, 2016, 3:14pm UTC](https://forum.xojo.com/t/javacript-excute-without-webbrowser/30164/1 "2016-03-06T15:14:00Z")

</div>

Hi,

Is it possible using execute javascript without webbrowser ?  
I use easytcpsocket and i can connect to server  
I have file .js with functions object used normaly in html5  
I’m searching solution for execute js function without browser

Thank

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [March 6, 2016, 3:23pm UTC](https://forum.xojo.com/t/javacript-excute-without-webbrowser/30164/2 "2016-03-06T15:23:25Z")

</div>

That won’t get you much. A web browser also has a css engine and a DOM engine (for manipulating the page). Without those JavaScript from an html5 page probably won’t run anyway.

---

<div class="post-metadata">

**Author:** ![jean-marc\_planas](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@jean-marc\_planas](https://forum.xojo.com/u/jean-marc_planas)\
**Post date:** [March 6, 2016, 3:47pm UTC](https://forum.xojo.com/t/javacript-excute-without-webbrowser/30164/3 "2016-03-06T15:47:47Z")

</div>

It is for gameserver.  
Js file have functions to communicate with server.  
But, html5 is just a sample exemple.  
There more one format, js,unity3d,c++,java,etc for the same server game but no xojo

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [March 6, 2016, 3:51pm UTC](https://forum.xojo.com/t/javacript-excute-without-webbrowser/30164/4 "2016-03-06T15:51:52Z")

</div>

You would need to figure out what it’s doing to communicate with the server, and then translate that into Xojo.

---

<div class="post-metadata">

**Author:** ![jean-marc\_planas](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@jean-marc\_planas](https://forum.xojo.com/u/jean-marc_planas)\
**Post date:** [March 6, 2016, 4:00pm UTC](https://forum.xojo.com/t/javacript-excute-without-webbrowser/30164/5 "2016-03-06T16:00:02Z")

</div>

I think so, but js have functions in functions and may be hard to translate  
I need an expert javascript 🙂

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [March 6, 2016, 4:07pm UTC](https://forum.xojo.com/t/javacript-excute-without-webbrowser/30164/7 "2016-03-06T16:07:01Z")

</div>

You would need an expert in whatever game engine you’re using. You said they offer other example languages - those might prove to be more useful than the JavaScript one; or simply additional knowledge.

---

<div class="post-metadata">

**Author:** ![jean-marc\_planas](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@jean-marc\_planas](https://forum.xojo.com/u/jean-marc_planas)\
**Post date:** [March 6, 2016, 4:52pm UTC](https://forum.xojo.com/t/javacript-excute-without-webbrowser/30164/8 "2016-03-06T16:52:12Z")

</div>

You are right… I could rewrite all my program but… I would just know if solution is possible.

---

<div class="post-metadata">

**Author:** ![jean-marc\_planas](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@jean-marc\_planas](https://forum.xojo.com/u/jean-marc_planas)\
**Post date:** [March 6, 2016, 4:57pm UTC](https://forum.xojo.com/t/javacript-excute-without-webbrowser/30164/9 "2016-03-06T16:57:24Z")

</div>

Thanks jean-paul … I will read it

---

<div class="post-metadata">

**Author:** ![jean-marc\_planas](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@jean-marc\_planas](https://forum.xojo.com/u/jean-marc_planas)\
**Post date:** [March 7, 2016, 8:27pm UTC](https://forum.xojo.com/t/javacript-excute-without-webbrowser/30164/10 "2016-03-07T20:27:09Z")

</div>

hi,

I have a little question ( may be stupid )  
Is it possible to intercept event from javascipt ?  
I can send call click on button object in htmlviwer ( function startSample(button) ) but I would like intercept return of function. is it possible ? ( this.log(“Connection ready with Nuggeta!”); )

thanks

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:13pm UTC](https://forum.xojo.com/t/javacript-excute-without-webbrowser/30164/11 "2020-10-29T18:13:04Z")

</div>


