Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 7th, 2006, 06:17 AM
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help needed

I'm a newbie to Javascript and I need some information regarding the JavaScript.

1) Is it possible that we can use ActiveXObject("Scripting.FileSystemObject") on the Apple Mac for the purpose of opening, reading from and writing to a html file .

2) If not then how can we open, read and write to a file on both Windows and Apple Mac systems.

3) Is it possible that on clicking a button on some page, I can open or laod a new html document on the same page and then display some computed results on it.
I dont want to use window.open since it will open the page in another window.

It would be nice if I could get some code snippet or link for all of the above.

Thanks,
Rama

 
Old December 7th, 2006, 06:42 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Quote:
quote:Originally posted by ramabharti
 I'm a newbie to Javascript and I need some information regarding the JavaScript.
Â
1) Is it possible that we can use ActiveXObject("Scripting.FileSystemObject") on the Apple Mac for the purpose of opening, reading from and writing to a html file .
Â
No, and you won't be able to do it on Windows either unless your user has very low security settings.
Quote:
quote:
2) If not then how can we open, read and write to a file on both Windows and Apple Mac systems.
Non IE browsers can do the same things as IE on Windows but the security manager will prompt for file access. Search Google for PrivilegeManager.enablePrivilege.

Basically, unless you control the suers environment, let's say there are on a company intranet, you can't do this.

Quote:
quote:
3) Is it possible that on clicking a button on some page, I can open or laod a new html document on the same page and then display some computed results on it.
I dont want to use window.open since it will open the page in another window.
Yes, using DHTML look for innerHTML on Google
Quote:
quote:
It would be nice if I could get some code snippet or link for all of the above.

Thanks,
Rama


--

Joe (Microsoft MVP - XML)




Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed rrvinod ADO.NET 0 October 5th, 2006 09:44 AM
Help Needed php5 PHP How-To 1 January 15th, 2006 07:29 PM
help needed! paquito Beginning PHP 2 November 16th, 2005 11:51 AM
A Little help needed matthew01 ASP.NET 1.0 and 1.1 Basics 3 November 9th, 2005 11:29 AM
help needed kfarooq Java Databases 1 June 27th, 2003 05:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.