Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Can you make a .css file from a textarea?
Old 06-09-2011, 06:45 PM Can you make a .css file from a textarea?
Experienced Talker

Posts: 39
Name: Day
Trades: 0
I'm trying to create an input button that will link to a .css file that is created at the time the visitor clicks the button.

For example. There is a text area with css code in it that the visitor edits then when they click the download input button and they are prompted to download a .css file that contains everything from the textarea.

is this possible?
DayliDesign is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-10-2011, 02:24 PM Re: Can you make a .css file from a textarea?
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
I'd say you can't do that using javascript: you can submit the data to a server and the server can force download.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Old 06-15-2011, 08:38 PM Re: Can you make a .css file from a textarea?
Marik's Avatar
Skilled Talker

Posts: 99
Trades: 0
Not with javascript, js is a client side language which doesn't have the ability to read/write on the file system. To do what you are asking you need to write the css the user has typed to a file. Can't do it in js however this can be easily done in PHP or some other server side language.
__________________

Please login or register to view this content. Registration is FREE
Marik is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Can you make a .css file from a textarea?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11139 seconds with 12 queries