Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
63% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #4K
~27.3K People Reached
Favorite Tags
Member Avatar for ErlendHL

Hi! I have now learned how to write to and read from .txt files on my server via [B]php[/B], but is it possible to do this with [B]JavaScript[/B]? :icon_question: Like that JavaScript writes to the .txt file every second without needing the user to refresh the page to write or …

Member Avatar for Donald_2
0
20K
Member Avatar for ErlendHL

Hey! I am just wondering: If I want a form to send a AJAX request instead of sending the user to another page or same page; can I [ICODE]<form action="javascript:sendRequest()"[/ICODE]?

Member Avatar for Graphix
0
82
Member Avatar for ErlendHL

Hi! I have been making a chat program. In PHP I control user inputs with htmlentities so they can't write html. But this also ruins the precious æøåöüÿëäñ etc.. characters! Would it be safe to only remove the < and >s? Or is there another way to avoid this?

Member Avatar for ErlendHL
0
100
Member Avatar for philmetz

For the following code I have a problem. When i fill in the form and submit it inserts a new database value. But when I refresh the page it does it again automatically with the same data, and keeps doing it whenever i refresh. How do i stop this? [CODE] …

Member Avatar for ErlendHL
0
3K
Member Avatar for ErlendHL

Hi! My append code works for Firefox and Internet Explorer but not for Opera and Google Chrome. [URL="http://3rlend.com/pjatt/append.html"]Here[/URL] is the test page. In Opera I get this error in Dragonfly: [CODE]Uncaught exception: [object DOMException] Error thrown at line 3, column 16 in append(id, text) in http://3rlend.com/pjatt/append.html: var je = document.createElement('<span>'); …

Member Avatar for ErlendHL
0
91
Member Avatar for ErlendHL

Hi! [URL="http://3rlend.com/pjatt/JStest.html"]Here[/URL] is the test page. It works fine in Firefox and Google Chrome but not in Opera and Internet Explorer. If you don't have Firefox or Google Chrome, I can tell you how it should be: when you click an element, if should be lighter green, rolling out of …

Member Avatar for Airshow
0
131
Member Avatar for ErlendHL

Hi. I downloaded WAMP to run PHP scripts with database. Everything worked fine at first, but suddenly something went wrong. I saved phptest.php into the folder phptest in the folder WWW. It worked with [url]http://localhost/phptest/phptest.php[/url] at first, but suddenly it says each time I enter that url, that "www.localhost.no" is …

Member Avatar for ErlendHL
0
127
Member Avatar for ErlendHL

Hi. I am making a chat program. In the index.php file, I create a session 'session_username'. I use ajax when someone chat, so I send the message to another php file. That php file should get the session_username session and write that + the message to mySQL, but there are …

Member Avatar for ryan311
0
65
Member Avatar for ErlendHL

Hi I try to use iframe to solve a scroll issue in flash. [URL="http://3rlend.com/projectpreview/Editor.html"]Here[/URL] is the main page. [URL="http://3rlend.com/projectpreview/pureEditor.html"]Here[/URL] is the page in the iframe. Why is nothing in the iframe in Editor.html in the "editor" div loaded?

Member Avatar for ErlendHL
0
74
Member Avatar for ErlendHL
Member Avatar for ErlendHL

Hi. I make a new array, p: [CODE]p=[[x]+[0]*(y)]*z[/CODE] then if x=1, y=2 and z=3, the array is: [CODE][[1, 0, 0], [1, 0, 0], [1, 0, 0]][/CODE] But now, the problem steps in. If I now say that p[0][0]=2, then the array is: [CODE][[2, 0, 0], [2, 0, 0], [2, 0, …

Member Avatar for ErlendHL
0
90
Member Avatar for ErlendHL
Member Avatar for ErlendHL

Hi! I am making a chat program, I am currently making the online list. All elements (users that are online) should have one gray solid background, that also is wide. so it don't look like this; [ATTACH]15080[/ATTACH] How should I do that? all the backgrounds should be just as long …

Member Avatar for diafol
0
74
Member Avatar for ErlendHL

Hey! I want it so that the user presses an A tag, a link, to submit a form. Here is some of my code: [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>jeje</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript"> function popup(url, height, width,form){ newwindow = window.open(url,'333','height='+height+',width='+width); if (window.focus) …

Member Avatar for fxm
0
111
Member Avatar for ErlendHL

I have studied some AJAX, and tried to understand it. The AJAX works; i just want to write a right php document too. With the AJAX, I load the php file write.php. Here is what is in write.php: [CODE]<?php $NAME = 'data.txt'; $HANDLE = fopen($NAME, 'w') or die ('CANT OPEN …

Member Avatar for danishanila
0
562
Member Avatar for ErlendHL

Hey! I am making a chat program. I have a function Chat(); [code] function Chat(){ var fullMessage = document.getElementById('name').innerHTML +' '+ document.getElementById('message').value+'\n'; fullMessage = fullMessage.replace(/\'/g,"'"); fullMessage = fullMessage.replace(/\\"/g,"&quot;"); fullMessage = fullMessage.replace(/\[/g,'*lsb?'); fullMessage = fullMessage.replace(/\]/g,'*rsb?'); sendRequest('http://3rlend.com/pjattappend.php','F=allMessages.txt&D='+'fullMessage','POST',true); document.getElementById('message').value=""; } [/code] sendRequest(url,params,method,Asynch); i an AJAX function. Now when I try to execute Chat();, …

Member Avatar for ErlendHL
0
1K
Member Avatar for ErlendHL

Hey! I am trying to make an auto scroll for my chat program. [URL="http://3rlend.com/testingScroll.html"]This[/URL] is the test page. If you are too lazy to take a look at the source, I will give it to you: [CODE] var DS = document.getElementById('div_scroll'); var de = document.getElementById('deb'); var date = new Date(); …

0
76
Member Avatar for ErlendHL

Hey! I am making a chat program. This is the syntax of the messages: [time-stamp:millisecons]Name:message For example [12846842643]Bob:Hello[12846842650]Bob2:Hey! Whats up? To check if there are any new messages, I will compare every timestamp with the timestamp on last received message, which is a variable defined in the clients side (at …

Member Avatar for diafol
0
143
Member Avatar for ryan311

how to clear all input fields after submitting data? [CODE]<form method="post" id="registerForm" action="register.php" > <table align="center" cellpadding="2" cellspacing="0"> <tr> <td style="width:120px"><div align="left"><strong><LABEL for="First_name">First name:</LABEL></strong></div></td> <td><div align="left" class="string"> <input name="First_name" type="text" class="input" id="First_name" value="" size="32" /></div> </td> </tr> <tr> <td style="width:120px"><div align="left"><strong><LABEL for="Last_name">Last name:</LABEL></strong></div></td> <td><div align="left"> <input name="Last_name" class="input" type="text" id="Last_name" …

Member Avatar for Troy III
0
154
Member Avatar for albertkao

How to auto refresh my web page every 10 seconds without resetting all the checkboxes? This will auto refresh my web page every 10 seconds but will reset (uncheck) all the checkboxes [CODE] <body onload="timedRefresh(10000);"> <script type="text/javaScript"> function timedRefresh(timeoutPeriod) { setTimeout("window.location.reload(true);",timeoutPeriod); } </script> [/CODE]

Member Avatar for ErlendHL
0
111
Member Avatar for ErlendHL

Hi! I am testing how to make an easy chat engine [URL="http://erlendhl.ueuo.com/c/ExternalChat.html"]here[/URL]. First I used[ICODE]xmlhttp.open("GET",url+"?F="+FILE,[B]false[/B]);[/ICODE], but I noticed that it was very bad to use false, because then, every 2 seconds, the page stops working. (like you can't do anything for like 0.5 sec) So I tried to use [B]true[/B], …

0
74
Member Avatar for ErlendHL

Hello! I have a site, that I use to learn those web building languages. I have a problem with the menu tabs layout: A div contains many a's but, and it is supposed to cover the path behind them, but: t[URL="http://erlendhl.ueuo.com/"]his is what happens[/URL]. I have tried position:absolute; but then, …

Member Avatar for ko ko
0
95
Member Avatar for rajabilal 7453
Member Avatar for ErlendHL

Hi! I am trying to make an element shake, and I have [I]tried[/I] to make a function in JavaScript, but it won't work. Here is the test page, used only for testing. It is the [I]Genious test[/I] div that I want to shake. Here is the code: [CODE] function Shake(Pow){ …

Member Avatar for ErlendHL
0
151
Member Avatar for Katsurou

hi I''m currently making a flash AS3 game (didnt focus on the graphics yet just want to have a good start on my game) so yeah the idea is that this will look like something like this... I'll add my .as and .fla files below so you can have a …

Member Avatar for rajarajan2017
0
163
Member Avatar for ErlendHL

How to pass variables from JavaScript to Flash, and opposite (AS2)? Please Answer, thank you! :)

Member Avatar for rajarajan2017
0
59
Member Avatar for ErlendHL

[FONT="Courier New"]Hi! I have read a little bit about loadVars and loadVariables, so I am trying to read and write to a .txt on my server. This is my functions: (only Read works, but Send doesn't)[/FONT] [CODE] function Load(F, VAR) { var DATA:LoadVars = new LoadVars(); DATA.onLoad = function(success:Boolean) { …

0
47
Member Avatar for ErlendHL

Hi! I am testing AJAX, and I have just made a nice AJAX function. But I also want to use AJAX through Flash, so that I can get updated info from a .txt file on my server to the Flash movie. [URL="http://erlendhl.ueuo.com/sl/p/"]Here[/URL] is the AJAX test page. So I can …

0
56
Member Avatar for ErlendHL

I have read about AJAX for a while now, and tryed to use GET and POST, but with not so good results. Code in index.html: [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Sending data to the maaan and back!</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript"> //var val = …

Member Avatar for ErlendHL
0
111