(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-18-24 10:59 AM
Acmlm's Board - I3 Archive - - Posts by rubixcuber
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
User Post
rubixcuber

Mole








Since: 09-08-06
From: St. Louis, MO

Last post: 6407 days
Last view: 6407 days
Posted on 10-31-06 12:14 PM, in Java script problem Link
My guess is that the makeUnDraggable function is getting called before the slider function and thus is trying to access an object before it gets initialized with the "this.knob = document.createElement('div');" line. You could try making sure that makeUnDraggable isn't called before slider or add a check for knob being null and calll createElement it if it is. The first one is the more correct solution though. The null check is more of a hack. If you just check for null you'll probably want to change slider to only call createElement if knob is null.

Hope that helps some.
rubixcuber

Mole








Since: 09-08-06
From: St. Louis, MO

Last post: 6407 days
Last view: 6407 days
Posted on 10-31-06 12:34 PM, in Ok I want to build a code editor but... Link
Well, you didn't say but I'm going to assume PHP because of the $ prefix on variables and the ?>. If it's not PHP, most of it should still apply though.

First of all, fopen requires a second argument. You need to specify the mode you want to open the file in.

Second, you have to tell fread how much data to read in. There are a couple ways to do this. You can check the file size and have fread read in that much data, or do a loop checking for the end of file and reading data if not at the end of the file yet.

Third... this is the part that makes me wonder what language this is. In PHP fput is called fputs. And you pass the text as an argument. So this would be the way in PHP:

fputs($file,$text);

Also you need to close the file. Call fclose($file) when you are done using it.

Here's my revised code:

$file = fopen($filename ,'r'); //open file for reading
$content = "";
while(!feof($file)){ //while not at end of file
$content.=fread($file,1); //read one byte of the file
}
fclose($file); //close the file
//I assume you want to print the next line. If PHP I think you need echo or some equivalent function
<"txta=text ROWS=100 COLS=100">$content<""/TEXTAREA"">
$inph=action VALUE=savefile>
$inps=submit VALUE=\"Save File\"><""/TD"">

if($action=blaablablabla){
fopen($file,'w');//open file for writing (this will erase the file is you want to append use a instead of w)
fputs($file,$text); //write to file
fclose($file); //close the file
print" blabalablabal";
?>

Hope that helps a bit.
rubixcuber

Mole








Since: 09-08-06
From: St. Louis, MO

Last post: 6407 days
Last view: 6407 days
Posted on 10-31-06 12:37 PM, in Any way to fix my N64 gameshark? Link
I'm sure it could be fixed, but it sounds like a hardware problem so it would probably need to be opened both to diagnose the problem and to fix it. It would probably be easier just to get a new one.
rubixcuber

Mole








Since: 09-08-06
From: St. Louis, MO

Last post: 6407 days
Last view: 6407 days
Posted on 10-31-06 12:39 PM, in Windows 1.0 Link
Not that I'm a major fan of XP, but you know you can change that right?
rubixcuber

Mole








Since: 09-08-06
From: St. Louis, MO

Last post: 6407 days
Last view: 6407 days
Posted on 10-31-06 01:19 PM, in Lik-Sang shuts doors thanks to Sony lawsuits Link
Not that I approve of what Sony did, but they aren't the only ones to sue Lik-Sang:

http://www.gamesindustry.biz/content_page.php?section_name=ret&aid=1816
rubixcuber

Mole








Since: 09-08-06
From: St. Louis, MO

Last post: 6407 days
Last view: 6407 days
Posted on 10-31-06 01:25 PM, in Do You use SaveStates? Link
I use save states just because they're faster than going through the game menus to save and load. Not so much to save when you couldn't normally save. I try to avoid that.
rubixcuber

Mole








Since: 09-08-06
From: St. Louis, MO

Last post: 6407 days
Last view: 6407 days
Posted on 11-01-06 12:31 PM, in The Ultimate Letter Experience V1.0 Link
zany
rubixcuber

Mole








Since: 09-08-06
From: St. Louis, MO

Last post: 6407 days
Last view: 6407 days
Posted on 11-01-06 12:32 PM, in Hurt and Heal! (Theme #2: Donkey Kong Country Animal Buddies) Link
expresso - 2

Rambi - 13
Enguarde - 12
expresso - 8
Winky - 8
Squawks - 9
Squitter - 11
Rattly - 10
Clapper - 10
Glimmer - 10
Parry - 10
Purple Squawks - 11

*Dead*
Ellie
rubixcuber

Mole








Since: 09-08-06
From: St. Louis, MO

Last post: 6407 days
Last view: 6407 days
Posted on 11-01-06 12:34 PM, in Count Down from 1,000 Link
Get your schnozberries! Only $7.99 a pound!
rubixcuber

Mole








Since: 09-08-06
From: St. Louis, MO

Last post: 6407 days
Last view: 6407 days
Posted on 11-01-06 12:39 PM, in One Pixel at a time picture. Link
I know what I'm planning for the left half. I assume that's the splot half.

Attachments

rubixcuber

Mole








Since: 09-08-06
From: St. Louis, MO

Last post: 6407 days
Last view: 6407 days
Posted on 11-01-06 12:40 PM, in The story about the single word. Link
prevented
rubixcuber

Mole








Since: 09-08-06
From: St. Louis, MO

Last post: 6407 days
Last view: 6407 days
Posted on 11-01-06 12:41 PM, in Alphabet Thread Link
Salami
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Acmlm's Board - I3 Archive - - Posts by rubixcuber


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.012 seconds; used 389.29 kB (max 477.90 kB)