JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 7th, 2013, 03:48 AM
tejo93 tejo93 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 4 tejo93 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 22 sec
Reputation Power: 0
Writing data in files at client machine using javascript in chrome

Hi,

I want to write a file using javascript at client machine using chrome.
Chrome doesnt allow activeX object. however there are add ons to counter the issue.
The requirement is writing a file without using addon.
Kindly suggest.

Reply With Quote
  #2  
Old March 7th, 2013, 04:42 AM
Winters Winters is offline
Super Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jul 2003
Posts: 3,871 Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 1 Day 16 h 30 m 42 sec
Reputation Power: 2569
The reason that Chrome does not allow ActiveX is because it is a massive security risk. You are not going to be able to read or write any data to a user's computer without getting the user to disable a vast array of security protocols.

Please explain what you are trying to accomplish and maybe we can suggest an alternative to this.
Comments on this post
richpri agrees: Isn't tejo93 basicly asking how to hack a client.
__________________
[PHP] | [Perl] | [Python] | [Java] != [JavaScript] | [XML] | [ANSI C] | [C++] | [LUA] | [MySQL] | [FirebirdSQL] | [PostgreSQL] | [HTML] | [XHTML] | [CSS]

W3Fools - A W3Schools Intervention.

Reply With Quote
  #3  
Old March 7th, 2013, 04:55 AM
tejo93 tejo93 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 4 tejo93 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 22 sec
Reputation Power: 0
Hi,
Suppose i am placing an order in website and the data is stored on the server. After submission of the data on server i want the same data to be stored at client machine in json file in json format using javascript.




Quote:
Originally Posted by Winters
The reason that Chrome does not allow ActiveX is because it is a massive security risk. You are not going to be able to read or write any data to a user's computer without getting the user to disable a vast array of security protocols.

Please explain what you are trying to accomplish and maybe we can suggest an alternative to this.

Reply With Quote
  #4  
Old March 7th, 2013, 05:15 AM
Winters Winters is offline
Super Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jul 2003
Posts: 3,871 Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level)Winters User rank is General 24th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 1 Day 16 h 30 m 42 sec
Reputation Power: 2569
I need to know why you are storing the data locally on the user's computer. It would be quite easy to create an automatic download for the user.

Reply With Quote
  #5  
Old March 7th, 2013, 08:46 PM
tejo93 tejo93 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 4 tejo93 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 22 sec
Reputation Power: 0
Hi,
I will tell you my apllication functionality:
1) User shops for items and they are placed in shopping cart.
2) That detail is stored in browser memory. But now i want the backup of the same data in client machine in json format. SO that by chance if browser cache is cleared user has a restore option.


Quote:
Originally Posted by Winters
I need to know why you are storing the data locally on the user's computer. It would be quite easy to create an automatic download for the user.

Reply With Quote
  #6  
Old March 7th, 2013, 11:36 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Click here for more information.
 
Join Date: Dec 2004
Posts: 7,930 E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 7 h 39 m 37 sec
Reputation Power: 6991
Use a cookie or HTML5 local storage instead.
__________________
PHP FAQ
How to program a basic, secure login system using PHP

Quote:
Originally Posted by Spad
Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

Reply With Quote
  #7  
Old March 7th, 2013, 11:42 PM
tejo93 tejo93 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 4 tejo93 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 22 sec
Reputation Power: 0
Hi

Can you kindly suggest how to use HTML5 local storage.
And if i clear the cache in the browser all the data will be lost. I want a permanent storage for the same.

Quote:
Originally Posted by E-Oreo
Use a cookie or HTML5 local storage instead.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Writing data in files at client machine using javascript in chrome

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap