Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
zany | |||
rubixcuber Mole Since: 09-08-06 From: St. Louis, MO Last post: 6407 days Last view: 6407 days |
| ||
exp Rambi - 13 Enguarde - 12 exp 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 |
| ||
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 |
| ||
I know what I'm planning for the left half. I assume that's the splot half. |
|||
rubixcuber Mole Since: 09-08-06 From: St. Louis, MO Last post: 6407 days Last view: 6407 days |
| ||
prevented | |||
rubixcuber Mole Since: 09-08-06 From: St. Louis, MO Last post: 6407 days Last view: 6407 days |
| ||
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 |