Subscribe to How-To Geek

Welcome to the How-To Geek Forums

We encourage you to register on our forums and post any questions you might have. The How-To Geeks monitor this forum and will respond to your question quickly.

How-To Geek Forums » Windows Vista

Opening Javascript to view content

(42 posts)
  • Started 7 months ago by StevePaul
  • Latest reply from StevePaul
  • Topic Viewed 845 times

StevePaul
StevePaul
Posts: 95

Bit of a silly question this ....

When opening a Javascript with Notepad all you view is a really jumbled mess !!!

Is there any way of getting back to the original nicely structured format.

Posted 7 months ago #
Top
 
raphoenix
raphoenix
Posts: 5223

StevePaul,
---
A js file will display in Notepad.
---
Are you asking about a .jar Archive File ????
---
Not sure of what you are opening??
Regards,
Rick P.

Posted 7 months ago #
Top
 
ScottW
ScottW
Posts: 6609

Steve, Java is an interpreted language that is designed to be machine independent. Interpreted means that the instructions are converted to machine language that the CPU understands just before being executed. Independence means Java can be run on different operating systems and different CPU architectures.

Compiled languages are written in a human readable form then pass through a parser, to become "raw" code, then through a compiler to become machine code that is specific to one processor architecture. Java code is passed through a parser to a format called bytecode, and that's how it is distributed. What you are seeing in Notepad is the raw bytecode which is not meant for humans to read, but is much easier for a Java interpreter to read.

EDIT: and, no you can't get back the pretty human-readable instructions from bytecode. There are bytecode editors that will show you the bytecode instructions with friendly names instead of just numbers.

Posted 7 months ago #
Top
 
StevePaul
StevePaul
Posts: 95

Thanks Guys, I thought that's what you'd say ...

So going back to my early programming days (35 year ago !!) ...

If I want to have the nice readable form, save that as one text (notepad) document before I save it as a JS file.

Posted 7 months ago #
Top
 
ScottW
ScottW
Posts: 6609

Oops! Everything that I said was about Java the programming language. Javascript is a *completely* different beast. Sorry about that.

Posted 7 months ago #
Top
 
StevePaul
StevePaul
Posts: 95

I'll let you off, seeing as you've helped me out before ...lmao ...

Take it the same applies though, that Javascript does do its own thing with the original text ...

Posted 7 months ago #
Top
 
raphoenix
raphoenix
Posts: 5223

And the HTG Traveling Show rolls on :) :)
--
@ScottW,
--
That's alright, being a "Pagan", I think I've had two Oops! today also. :) :) (lol)
--
Seriously, you're doing a Great Job as Guest Moderator !!
--
Best Regards,
Rick P.

Posted 7 months ago #
Top
 
StevePaul
StevePaul
Posts: 95

Hi Rick P ....

Forgotten how good you Guys were :-D

Regards.
Steve P

Posted 7 months ago #
Top
 
raphoenix
raphoenix
Posts: 5223

@Steve,
---
"Grandpa Do What Ever He Could; Preach a Little Gospel, Sell a Few Bottles of Dr. Good" :)
---
Best Regards,
Rick P. :) :)

Posted 7 months ago #
Top
 
StevePaul
StevePaul
Posts: 95

Sounds like you've already been at a few !!!!!!

Silly question while I'm here ...

Any of you Guys had a dabble with Google Chrome, and if so what are your thoughts ?

Before you start, I know your all purists, so probably live and die by FF

Regards,
Steve P

Posted 7 months ago #
Top
 
raphoenix
raphoenix
Posts: 5223

Steve,
---
Never touch the the stuff. Read Profile.
---
I use IE 6.0 with NO AV.
---
Just sit behind a Builder Fast Machine with Customized Router in stealth mode. :)
---
Assure you, other Members have MUCH BETTER Computer Practices than me. (LOL) (LOL)
---
Best Regards,
Rick P.

Posted 7 months ago #
Top
 
ScottW
ScottW
Posts: 6609

Steve, I don't know much about JavaScript. It's used in web pages by web page people. I have never dabbled in it.

As for Google Chrome, I have not tried it. I would if there were a portable version that didn't require an install. I like and use Firefox, but I don't consider myself or the other forum regulars as "purists" when it comes to browsers. There is no one perfect browser, instead there are lots of choices for folks with different styles and preferences. Choice is good; browser correctness is dumb.

Rick, thanks. I have the oops often enough that I don't bother counting anymore. :)

Posted 7 months ago #
Top
 
StevePaul
StevePaul
Posts: 95

ScottW neither do I !!!

Just install and run :-D

As for Chrome you can get a portable version here, think its just a case of unpacking the Zip file and off you go ....

http://www.softpedia.com/get/P.....mium.shtml

Got to be honest been having a bit of a dabble with Chrome over the last couple of months or so, its approach to browsing is quite refreshing ...

As you say its all about personal preferences :-)

Posted 7 months ago #
Top
 
ScottW
ScottW
Posts: 6609

Steve, thanks for the link. I am aware of that portable Chromium, but as Lifehacker says: "It's far from official, but German blogger Caschy has put together a portable version..." I don't run things that are far from official on my primary system, nor do I trust some random person who happens to have a blog. I'll wait for an official portable Chrome from Google.com, or at least from PortableApps.com.

Posted 7 months ago #
Top
 
StevePaul
StevePaul
Posts: 95

As with all things Chrome some things are not in the main stream of things as far as Google is concerned (Mac and Linux spring to mind).

I think Lifehacker was a little bit quick of the mark in his original appraisal of PC although its not badged (!) by Google it is fairly well accepted that if you want a portable version this is the one to go for.

If I remember rightly Lifehacker's comments were made about 3 days after Chrome was first released way back in September so it seemed like someone had just had a hack at the code and put it on a USB

Its development has kept pace with subsequent releases of Chrome (and there's been a few over the last 6 months !!) the release its at (2.0.169.0) is only a couple behind the official developer channel release of Chrome (2.0.174.0)

I can however appreciate your concerns, but it is worth a try (and it is safe) trust me :-D

Posted 7 months ago #
Top
 
LH
LH
Posts: 7501

StevePaul. Does Google condone it or not ?
As an example. Look at the portable version of Malwarebytes AntiMalware. Read the Malwarebytes Presidents remarks in this thread,
http://www.malwarebytes.org/fo.....topic=5608

Posted 7 months ago #
Top
 
StevePaul
StevePaul
Posts: 95

LH ...

Don't think we're comparing like for like here ...

One of the beauties of chrome is that its self contained and installs in the users account (whether you agree with that or not!) and does not require or have impact on system resources.

In my simplistic view, when all is said and done, I'm not sure what implications, if any, it would have being developed by a third party (takes the pressure of Google to develop).

Last but not least, Chrome has been developed as an open source project specifically to actively encourage further development by third parties.

Where would Linux, Firefox and Open Office (to name but a few) be without this approach.

Google doesn't have a great track record in moving things out of beta does it?

ScottW mentioned it earlier, browsing is a matter of preference ...

If nothing else Portable Chrome gives you an opportunity to try out 'the new kid on the block' without a great deal of commitment :-D

Posted 7 months ago #
Top
 
raphoenix
raphoenix
Posts: 5223
 
StevePaul
StevePaul
Posts: 95

RP ...

Some interesting stats there ...

Was really surprised at the market share your old favourite (IE6) had got ...

The interesting thing about stats is what was the question ...

Chrome was only launched in September but shows 3.1%, how much of that was people downloading it just to see what it did ?

Posted 7 months ago #
Top
 
raphoenix
raphoenix
Posts: 5223

Steve,
I really don't have a favorite browser.
As long as a browser renders OK and is fast, any of them or fine with me.
I guess I do prefer those that don't required 50 add-ons so they operate properly.
Other that that, I don't get into that "fray". (LOL) (LOL)
FACT: Old IE5 was the most Standards Complainant Browser MS produced.
(From Old Computerworld Article I Think??)
Also connection speed has a lot to do with how a browser "feels" to the user.
---
Best Regards,
Rick P.

Posted 7 months ago #
Top
 

RSS feed for this topic

Reply »

You must log in to post.

Our Friends
Getting Started


About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
mDNSResponder.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
conhost.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.