Unix Shell In A Web Broswer?
May 30, 2007For those of you who know what JS/UIX is, its a UN*X-like OS for standard web-browsers....
View 3 RepliesFor those of you who know what JS/UIX is, its a UN*X-like OS for standard web-browsers....
View 3 RepliesHow can you tell what shell you are running on UNIX system?
View 1 Replies View RelatedI'm learning to make JS files and using the tutorials, but I only get a blank screen. Can you tell me what I'm doing wrong. Code:
View 5 Replies View RelatedIn my css file I have a class:
In my JavaScript I am attempting to return that value.
FF(7) and IE(7-9) return the value in pixels and Safari and Chrome return the value as percent.
I would prefer the returned value in pixels, though if I could just get the same value return for all id be happy too. What options do i have?
In Bourne shell, you can do:
case ($x) in
foo*)
;;
*bar)
;;
esac
so that the first case matches any string starting with "foo", the
second any string ending in "bar", etc. In Tcl, you can:
switch -glob $x {
"foo*" {
}
"*bar" {
}
}
and accomplish the same thing. I'm struggling to do that in
JavaScript. switch seems to follow C semantics and do a full-length
match. And String.match() doesn't seem to do glob-style matching so I
can't do:
if ($x.match("foo*")) {
...
Is there a way to match on patterns in a JavaScript control structure?
Trying to open a file on a network drive when user clicks an HTML button on a web page. When page loads, there is an error that states there's an invalid character on the line where I declare my variable. When I click the button, the error changes to "Object expected" but is on a line nowhere near any scripting or any HTML code related to scripting. Does my code look correct or no?
And, yes my button is calling the function on the "onclick" and "filepath" from VB code does have a value when I do a view source on the page.
<script language="javascript" type="text/javascript">
function OpenFile(){
var x = new ActiveXObject("WScript.Shell");
x.run(<%=filepath %>);
}
</script>
In Bourne shell, you can do
Code:
for x in `foo bar grill` ; do
echo $x
done
and in Tcl I can do:
Code:
foreach e in { foo bar grill} {
put $e
}
but in JavaScript, I end up doing:
Code:
var l = [ 'foo', 'bar', 'grill' ];
for (var i in l) {
var x = l[i];
... do something with x...
}
Is there an idiom for looping over a fixed list of things in JavaScript that doesn't require creating a var before the loop?
ive recieved a counter that ads up a fixed value per second starting
from 01-01-03.
This java script acts perfectly on MSwindow based system but when shown on
an UNiX-like system the script presents a negative value resp. adding up or
down. How can i correct this?
I need to execute an http get from a unix script (HPUX). I have
access to a javascript that will do what I need. Can javascript be
called from a kshell script, if so how would I do so? If not is there
a easy conversion from javascript to java, so that I could compile &
execute it as a java program?
im trying to convert Date() into a unix timestamp so i can stick the result into a mysql db.
View 6 Replies View Relateduser select a date/time for an input form. Once this form has been submitted i will use php to convert it into a unix timestamp for the db.
View 3 Replies View RelatedI'm trying to add a unix timestamp into an exisiting function, but am uncertain how you add the variable. I searched the boards here, and came across this example to convert a date to unix in javascript. var date3 = new Date(Date.parse("21 May 2009 10:03:20")); And I'm trying to add it to this: flashobj3.addVariable ("targetTime", $date3);
View 2 Replies View RelatedI'm working on a project that requires files to be password
protected on a UNIX based site. The people that own the web site want
to be able to change the password every so often. Unfortunately, I
have restricted access only to FTP so I really can't log in to any kind
of Administrative Console or Admin Panel and see if there are folders
that can be password protected and then have passwords changed on them.
The people I'm contracted to work on the site for aren't the most
computer savvy people though....so..my question is:
Is there a user friendly way of password protecting a folder on a UNIX
based site?
I need to know how to send form output to a non-windows platform. what
are the standards script in? are they in cgi or php?
Is there any way at all I can get a user's login name from within
JavaScript on Unix/Linux with Mozilla browser. If not, how about the
home directory? I know there are *usually* variables accessible via
navigator.preferences() that contain the info, but I have found none
that can *always* be expected to exist.
In textareas or input textboxes, when you dynamically add '
' to the textbox's value, is it automatically converted to '
'? If it does, in what browsers does this happen? Firefox (and other Geckos)? Opera? Konqueror?
I did some search from the internet and check for jquery plugin that I can use so that I can display datetime base on clients local time. But not much seems to be what I'm looking for.Example like the facebook wall's post that posted datetime. It will display like 12 mins but as u stay on the page more than a min it will display 13 mins. Then for older post it will dispaly in more details like month, day, year, time, etc.
View 2 Replies View Related