Unix Shell In A Web Broswer?

May 30, 2007

For those of you who know what JS/UIX is, its a UN*X-like OS for standard web-browsers....

View 3 Replies


ADVERTISEMENT

How To Tell What Is Running On Shell In UNIX

Jul 29, 2010

How can you tell what shell you are running on UNIX system?

View 1 Replies View Related

Debug Js File That Will Not Show In Broswer

Nov 14, 2005

I'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 Related

JQuery :: Return .css('min-width') As Same Value Cross Broswer?

Oct 25, 2011

In 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?

View 1 Replies View Related

Shell-like Case

Feb 20, 2007

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?

View 7 Replies View Related

WScript.Shell Problem

Jan 31, 2007

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>

View 11 Replies View Related

Bourne Shell Or Tcl Style Loop In JavaScript?

Nov 12, 2007

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?

View 2 Replies View Related

Value Counter Vs Unix

Jul 20, 2005

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?

View 2 Replies View Related

Running Java Script From Unix Kshell

Jul 23, 2005

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?

View 1 Replies View Related

Converting Date() To Unix Timestamp Format?

Mar 6, 2007

im trying to convert Date() into a unix timestamp so i can stick the result into a mysql db.

View 6 Replies View Related

Calendar To Give Unix Time Stamp?

Aug 26, 2009

user 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 Related

Convert To Unix Timestamp Into Existing Function

Aug 11, 2009

I'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 Related

Password Protecting A Folder On UNIX-based Website

Jul 23, 2005

I'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?

View 3 Replies View Related

Need Good Links On How To Send Form / Unix/ Linux

Nov 6, 2005

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?

View 1 Replies View Related

Getting Unix Login Name Or Home Dir From Client-side JavaScript

Jul 20, 2005

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.

View 1 Replies View Related

Newline Char Question For Unix/Linux Users

May 16, 2005

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?

View 4 Replies View Related

Jquery :: Plugin Display From Unix Timestamp To Client's Local Datetime?

Jun 25, 2011

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







Copyrights 2005-15 www.BigResource.com, All rights reserved