aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Converting javaScript variable to java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Converting javaScript variable to java " Watch "Converting javaScript variable to java " New topic
Author

Converting javaScript variable to java

ramranga Kumar
Greenhorn

Joined: Jul 21, 2006
Posts: 5
I have a javascript variable. I want to write the content of this variable to a text file. Is this possible using javascript ?

or

can we convert the javascript variable to java variable so that I can use the java code to write it to a file.

Thank You.
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
assuming we are talking about client / server web environment:

- why are you not http-posting the variable's content back to the server?

cheers,
jan
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Hi,

Welcome to JavaRanch!

JavaScript and Java are two entirely different, unrelated languages. This site is primarily about Java, not JavaScript. We do have one JavaScript forum here. I will move this topic there for you; go over and look for it!


[Jess in Action][AskingGoodQuestions]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

Is the file to be on the client or server?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Converting javaScript variable to java