473,396 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Running a javascript code outside of HTML file

Hi,
Is it possible to run a javascript outside of html file? I have a HTML page that submit user/pass via javascript code. Is it possible to run the javascript code from command line (linux)?
Jan 2 '11 #1
7 2100
Dormilich
8,658 Expert Mod 8TB
I don’t think it is possible without some kind of backend programme. JavaScript requires a host object, after all.
Jan 3 '11 #2
Any idea is welcomed. From should I start?
Jan 3 '11 #3
I think all of the tools are GUI based. If I had a GUI, then there was no problem with the HTML file itself. So what I am looking is to run a command something like "java submit_auth" and submit_auth is a file which contains the javascript in the mentioned HTML file.

Thanks,
Jan 3 '11 #5
Dormilich
8,658 Expert Mod 8TB
So what I am looking is to run a command something like "java submit_auth"
you are aware that this calls the JRE?

However, you can try to run TraceMonkey or JavaScriptCore (or whatever host ist available) as stand-alone programme, but they might not do that by themselves.
Jan 3 '11 #6
I found it a very hard task!! I am not expert with such engines.... I should try to find an alternative first. Thanks
Jan 3 '11 #7
rnd me
427 Expert 256MB
the simple way is to run it on a webserver that uses javascript, like .net or v8. then you can simply curl the webserver from the command line to get the input and output you need.
Jan 13 '11 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: ASP.Confused | last post by:
I am designing a forum system, and I would like to know if there is a script somewhere that can parse an HTML response, and remove javascript. I would like to do this so that I don't have hackers...
18
by: Arthur Connor | last post by:
Is there a way of extracting the Javascript code from the "normal" HTML code (e.g. similar to CSS code which can be put into a separate file) ? If you offer a solution: can I determine in your...
1
by: darcykahle | last post by:
Is there any way of converting an existing access form into html format? The form in question has built-in visual-basic code, which gets commented out when you use the "save as" method, instead of...
1
by: Peter Williams | last post by:
Hello All, I'm a newbie to this ng. I'm posting here because I have a question about debugging some javascript on some pages of my website. Please don't call me a "troll" -- because I'm not one....
3
by: Rodrigo Meza | last post by:
Hello Everyone For a project I am working on, I need to retrieve links from html documents. The easy part is to obtain 'plain' links like <A HREF="http://site/path/document">, but when those...
1
by: Zeba | last post by:
Hi! I have an application in which a user searches for a particular item as - He enteres the keyword in home.html and views the results in searchresults.aspx.I want to uniquely identify the...
10
by: mark4asp | last post by:
I ask this because only today I read advice telling me to put it within the <headelement. This is the same advice I've always been given but no one ever explained why. Last week I was told to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.