473,413 Members | 1,993 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Javascript Application Help with writing text file

18
I wanna know how its possible to clone this website. www.writesomething.net

I just want the actual programming code and files. I'm going to ceate a fully interactive website for users to input text and it appears directly on to the page without refreshing.


I can't seem to find the txt file.

[HTML]<html>
<head>
<title>WriteSomething v2</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="/css/screen_en_US.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/js/frontend.js"></script>
<script type="text/javascript" src="/js/browser.js"></script>
<script type="text/javascript" src="/js/floating.js"></script>
</head>
<body onload="initFloaters(); document.form1.tekst.focus(); window.scrollBy(0, window.innerHeight);" onpaste="return false;">
<a id="top">&nbsp;</a>
<div id="floater1Div">
<div class="home">&nbsp;<a href="/">home</a></div>
<div class="about">&nbsp;<a href="/about">about</a></div>
<div class="about">&nbsp;<a href="/press">press</a></div>
<div class="hrvatski">&nbsp;<a href="/lang.php?lang=hr_HR">hrvatski</a></div>
<div class="hrvatski">&nbsp;<a target="_blank" href="http://www.skarabej.com/english/">by skarabej</a></div>
</div><form method="post" action="" name="form1">
<div class="text">
</span>
I wish he'd call... or that I had the balls to call him
<span class='siva'>
i'm such a noob.
</span>
Test
<span class='siva'>
<a id="end">&nbsp;</a><br />
<textarea name="tekst" onpaste="onPasteHandler()" oncontextmenu="setContextMenuSelection()" oninput="onPasteInputHandler(event)" onchange="textarea_size()" onkeypress="onPasteKeyPressHandler(event); textarea_size();" rows="5" id="tekst" onkeydown="txtarea_clear()" onclick="txtarea_clear()" class="area">write what ever you want, quick and without thinking.</textarea>
<table width="100%">
<tr>
<td align="left" width="33%"><a style="border: none;" href="#top"><img border="0" src="/images/gototop.jpg" width="50" height="76"></a></td>
<td align="center" width="33%">&nbsp;</td>
<td align="right" width="33%"><input type="image" src="/images/publish.gif" id="submit" name="submit" width="89" height="30"></td>
</script>
</body>
</html>[/HTML]
Jul 10 '07 #1
17 2063
NYXX
18
Can anyone help me with this?
Jul 10 '07 #2
acoder
16,027 Expert Mod 8TB
I can't seem to find the txt file.
What text file are you looking for?
Jul 11 '07 #3
NYXX
18
The flatfile database.

I uploaded this code along with the css and js codes but i still can't seem to publish the text instantly
Jul 11 '07 #4
NYXX
18
how would i go about cloning this what am i missing
Jul 12 '07 #5
acoder
16,027 Expert Mod 8TB
You could use Ajax for this purpose. It takes the input and sends the request to the server-side script which updates the database. The callback function can update the page once it has been added.
Jul 12 '07 #6
NYXX
18
Where can I find that information?
Jul 12 '07 #7
acoder
16,027 Expert Mod 8TB
See the Ajax tutorial links in the Offsite Links thread.
Jul 13 '07 #8
NYXX
18
So How would i go about clioning this website www.writesomething.net

I have the exact code he is using.

I have these files

The Javascript
Css
images which I will be changing

Now I'm missing the html file and the external file where all the text is being written to
Jul 13 '07 #9
acoder
16,027 Expert Mod 8TB
Have you checked the tutorials? It is not that difficult. You will need a server-side language and preferably a database, though you could use a text file if you want.

Which server-side language (e.g. PHP, ASP, JSP, Perl, Coldfusion) do you know?
Jul 14 '07 #10
NYXX
18
I know PHP

I'm actually lost I tried following the tutorial. Couldn't get it to work.

I would like to use a text file.
Jul 14 '07 #11
NYXX
18
I know PHP

I'm actually lost I tried following the tutorial. Couldn't get it to work.

I would like to use a text file.
Can anyone help,

I'm willing to pay if someone can build a clone
Jul 15 '07 #12
acoder
16,027 Expert Mod 8TB
Show what code you have or what attempt you have made.

I assume you know PHP and can create a text file from the posted input using $_POST. If not, you should check in the PHP forum or start a new thread there for that particular sub-problem.

There is more than one possible way to solve this, but this is one way. Use AJAX to make a request to the PHP file with the input from the textarea. This is added to the text file. Now we could return the whole text file all over again, but that could be huge. The alternative is to just update the page by adding to the end of the data, but if someone in the meantime had added something, this would not display. It depends on how accurate you wish to be.

One other choice is whether you wish to load the content after the page has loaded or as part of the page load (i.e. a PHP page which just displays the data).

If you have a problem with your Ajax script, post it here.
Jul 17 '07 #13
NYXX
18
The problem is I don't know how create an ajax script, or a text file, thats where I'm having trouble.

Also I would like to users data to be displayed even on a page load if not shown automatically, I was hoping to se the user above post as well.
Jul 17 '07 #14
acoder
16,027 Expert Mod 8TB
The problem is I don't know how create an ajax script, or a text file, thats where I'm having trouble.
The text file you would create on the server-side using PHP.

Show me your Ajax script. There are plenty of examples in the tutorials. There's also an example in the articles section - see this article.
Also I would like to users data to be displayed even on a page load if not shown automatically, I was hoping to se the user above post as well.
Not sure what you mean by this.
Jul 18 '07 #15
NYXX
18
Pretty in simple terms I want to make a website like this one just with a different CSS template.

www.writesomething.et
Jul 22 '07 #16
kovik
1,044 Expert 1GB
Then do it and stop asking questions. It's nothing but databasing, form processing, and a complete lack of moderation.

I apologize if I sound annoyed (which I am), but you don't seem to be trying at all.
Jul 23 '07 #17
NYXX
18
Like I said I ahve the design complete the javascript files in place. i can't actually write the script. thats where I'm having trouble. this is my current site

http://www.nyxxunderground.com/ICPAD/
Jul 23 '07 #18

Sign in to post your reply or Sign up for a free account.

Similar topics

53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
7
by: Trvl Orm | last post by:
I am working with 2 frames, Left and Right and the main code is in the left frame, which has been attached. Can someone please help me with this code. I am new to JavaScript and can't figure it...
2
by: Bernhard Georg Enders | last post by:
After issuing the command (apache httpd.conf file) AddType application/x-httpd-php .php .htm .html any attempt to include javascript code <script src="file.js" type="text/javascript"></script>...
15
by: binnyva | last post by:
Hello Everyone, I have just compleated a JavaScript tutorial and publishing the draft(or the beta version, as I like to call it) for review. This is not open to public yet. The Tutorial is...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
2
by: Alex | last post by:
Hi all, I'm writing a small web application which searches a database based on a date field, and populates a datagrid control with the results. The datagrid control has selection buttons added...
4
by: André Wagner | last post by:
Hello, I'm writing a HTML/javascript application who will run locally. I want to save to a local file. If I were using IE, I would do this way: var fso = new...
9
by: Erwin Moller | last post by:
Hi, Can anybody comment on this? In comp.lang.php I advised somebody to skip using: <script language="javascript"> and use: <script type="text/javascript"> And mr. Dunlop gave this response:
22
by: Dan Rumney | last post by:
Hi all, I've been writing Javascript for quite a while now and have, of late, been writing quite a lot of AJAX and AJAX-related code. In the main, my dynamically generated pages are created...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.