473,699 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Application Help with writing text file

18 New Member
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>WriteSom ething v2</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="/css/screen_en_US.cs s" 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="initFlo aters(); document.form1. tekst.focus(); window.scrollBy (0, window.innerHei ght);" onpaste="return false;">
<a id="top">&nbsp; </a>
<div id="floater1Div ">
<div class="home">&n bsp;<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=h r_HR">hrvatski</a></div>
<div class="hrvatski ">&nbsp;<a target="_blank" href="http://www.skarabej.co m/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="onPast eHandler()" oncontextmenu=" setContextMenuS election()" oninput="onPast eInputHandler(e vent)" onchange="texta rea_size()" onkeypress="onP asteKeyPressHan dler(event); textarea_size() ;" rows="5" id="tekst" onkeydown="txta rea_clear()" onclick="txtare a_clear()" class="area">wr ite what ever you want, quick and without thinking.</textarea>
<table width="100%">
<tr>
<td align="left" width="33%"><a style="border: none;" href="#top"><im g border="0" src="/images/gototop.jpg" width="50" height="76"></a></td>
<td align="center" width="33%">&nb sp;</td>
<td align="right" width="33%"><in put type="image" src="/images/publish.gif" id="submit" name="submit" width="89" height="30"></td>
</script>
</body>
</html>[/HTML]
Jul 10 '07
17 2083
NYXX
18 New Member
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 New Member
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 Recognized Expert Moderator MVP
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 New Member
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 Recognized Expert Moderator MVP
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 New Member
Pretty in simple terms I want to make a website like this one just with a different CSS template.

www.writesometh ing.et
Jul 22 '07 #16
kovik
1,044 Recognized Expert Top Contributor
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 New Member
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.nyxxundergr ound.com/ICPAD/
Jul 23 '07 #18

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

Similar topics

53
5719
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 difficult to know what is going on. One of these Order Forms you can see here... http://www.cardman.co.uk/orderform.php3
7
1979
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 out. What needs to happen is this: On the left frame you should have a series of buttons, which when pushed makes things happen on the right frame.
2
6901
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> into htm (or html) file fails. How can I successfully config Apache2 to work with embedded PHP and javascript at same time? TIA,
15
4221
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 avaliable at... http://www.geocities.com/binnyva/code/javascript/advanced_tutorial/ If any of you could spare the time, please have a look at my tutorial
136
9379
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 code was littered with document.all and eval, for example, and I wanted to create a practical list of best practices that they could easily put to use. The above URL is version 1.0 (draft) that resulted. IMO, it is not a replacement for the FAQ,...
2
2840
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 to it to view additional details about the selected result (a second database query is triggered). I want this second query to pop up in a new window, the way it would if I used "window.open" in javascript. I've added a function in the
4
4020
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 ActiveXObject("Scripting.FileSystemObject"); var file = fso.OpenTextFile(filePath,2,-1,0); file.Write(content);
9
8409
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
2922
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 using Perl on the backend, with Javascript providing limited frontend functionality. As an example, an expanding tree would be fully populated on the server-side and then presented to the browser, with Javascript and CSS being used to vary the...
0
8685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9172
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8908
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6532
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.