Jump to content

Jocka

Members
  • Posts

    344
  • Joined

  • Last visited

Everything posted by Jocka

  1. I think I know the best way to do this but can't get it to work. I'm trying to run through each field as an array and save the information to a var to be put back into the innerHTML correctly.Here's the javascript code I have (that ISN'T working) [code] var tcount = 1; var inhtml = ''; var newinfo = ''; var nameinfo = ''; var yearsinfo = ''; var n function tst(){ var info = document.getElementById('test'); nameinfo = ''; if(tcount < 10){ if(tcount == 1){ inhtml = info.innerHTML } for(n in document.tform.exname){ newinfo += "<input type=\"text\" name=\"exname[]\" value=\"" + document.tform.exname[n].value + "\"> | <input type=\"text\" name=\"exyears[]\" value=\"" + document.tform.exyears[n].value + "\"><br>" } info.innerHTML = newinfo + inhtml tcount = tcount + 1 return true; } else { return false; } } [/code]
  2. I'm working on a script that will let a user create up to 10 fields to put experience and years of experience in. I ran into 2 problems with this. 1. I want to align the fields properly so it doesn't look generic. I tried using tables but the javascript wouldn't let me. 2. I need to keep information typed into any of the boxes. here is my script: [code] <html> <head> <-script language="Javascript" type="text/javascript"> var tcount = 1; var inhtml = ''; function tst(){ var info = document.getElementById('test'); if(tcount < 10){ if(tcount == 1){ inhtml = info.innerHTML } info.innerHTML += inhtml tcount = tcount + 1 return true; } else { return false; } } </script-> </head> <body> <form> <table width="100%"> <tr> <td width="50%"valign="top"> Experience Name | Years of Experience<br> <div id="test" name="test"> <input type="text" name="exname" value="Experience Title.."> | <input type="text" name="exyears" value="0"><br> </div> </td> <td width="50%" align="center" valign="top"> <input type="button" name="morefields" value="Add A Field" onClick="tst()"> </td> </tr> </table> </form> </body> </html> [/code] and like I said, if they type something in then hit "add field" i want that information to still be there but it's not (and i'm not sure WHY it's not). And a way to align the fields, even if I have to use css (which i'm not 100% great with)
  3. <-- hate joomla :D Yea for a 'kickass' site, you'll need a good budget and a team of people to get it done in 21 days. Depending on how much you want on the site and how much money you have (and you better find some lol), you can put bids on various scripting sites for people to make it for you.
  4. ok it's partitioned and ubuntu is installed but now the pain in the ass is installing a driver for my USB adaptor. On the ubuntu site it has a tutorial but the problem is, it requests that I download the file (which is kind of ignorant given the purpose of the adaptor in the first place). So I got the bright idea that I'd just save it to the hard drive but I can't reach the file from linux. I have a 'neutral' drive but linux still can't reach it. I tried to give permissions to reach it but it forbids me, even with admin rights. The partition is fat32 so it should be able to read it right? Any other ideas on how I can get the proper drivers to linux? I'm downloading vmware right now to see what I can do but i'm not 100% sure which vmware program i'm supposed to use so this could take a while..
  5. I'm trying to partition my hard drive on Windows XP and it won't let me. How can it NOT let me?
  6. im trying to install this from my hard drive (don't have a cd burner). From what I read on a few things I found on google, I can use vmWare to install it but that's where my problem starts. I obviously need vmWare if I want to run both of these in eachother correct? Either way, I need it. I went to the site and theres a list of vmware programs. Which one is it that I want to do these 2 tasks (load linux files for installation and load linux within windows)
  7. alright kool. I'm eventually going to completely switch over but like I said, I have to learn it first. So for now I'm just going to play with it and use it for my test server. Once I have it down, windows will be basically non-existent to me.
  8. Lol I was wondering what Xubuntu was. I guess I could've checked that out before asking that question. I'm downloading it right now. Should be done within the hour (or so). If I want to keep windows as like the "default" os still (until I learn linux more) would this be fine? I'd prefer to boot linux INSIDE windows myself. I know there is a program for that so I know it's possible. But after installing Xubuntu, is it going to set itself as the default? These are things I'm worried about right now lol. Since I know very little, I don't want to install this and basically lock myself out of my own computer cuz I don't know linux :P
  9. Ok here we go. [list] [*]Can I install linux on the same harddrive as Windows? (in other words, no partitions) [*]Is a partitioned drive recommended? [*]I'd like to use linux for a test server on my home computer. Would "Ubuntu" be reliable for a test server or should I use something created for that very purpose? [*]After checking out Ubuntu I became a fan of Linux. However, my computer only meets the minimum requirements and Ubuntu runs a little slow in some areas. Is there anything smaller I can use with the same capabilities? [/list]
  10. oops. yea, forgot to change that. Damn copy and paste.
  11. echo $sys->doMostPlayed() . $sys->doNewestGames(); ?
  12. i've been studying css because I've been told many times that it's better to convert all tables to css. I have one php file with all the CSS in it. I through most of this together in like 2 hours yesterday. I only had one page and yesterday I turned that one page into the rest. The "Become A Partner" section. I forgot to add an actual link there. Right now it's just an "onclick" function on the table itself. The font looks a little off to me but the boss said that he liked it so I'm leaving it alone (although again, I DO agree)
  13. I completed most of the site now. Need some reviews since this is going to be shown to the client monday.
  14. Yea I tried the regex thing.. then I got stuck with a bunch of useless letters setting in the middle.. I did look at that link btw but I'm for that "Quick" way.
  15. the problem here is, there's really no telling where the document actually BEGINS (as far as I can see anyway). There has to be a way to strip all that out though. Red' said it works perfectly for him. .. i don't know, i'm lost. I'm doing the 3rd party searches again to see if I can find one compatible.
  16. yea it CAN be done. With a 3rd party module I can do it but my server can't take anything (it's crap..)
  17. This code came from a script redbullmarky has. The objective of it is to strip text out of a doc file but it isn't working for me. I've looked through everything and found where it all goes wrong but then i'm stuck. Here's the code used to "decode": [code] function stripSpecial($input) { $search = array(chr(145), chr(146), chr(96), chr(132), chr(147), chr(148), chr(133), chr(150)); $replace = array(    "'", "'", "'", '"', '"', '"', '...', '-'); $output = addslashes(str_replace($search, $replace, $input));     // now strip out all the junk/control chars, etc     $output = stripslashes(substr($output, 0, strpos($output, '\0\0')));         // get rid of any remaining control chars     $output = preg_replace('/'.chr(19).'(.*?)'.chr(20).'/', '', $output);     $output = str_replace(chr(21), '', $output); return $output; } [/code] it goes wrong here: [code] $output = stripslashes(substr($output, 0, strpos($output, '\0\0'))); [/code] After it goes through the hassle of stripping out most of the code and looking for the text, it comes to this point. This (i'm guessing) is supposed to find a significant point in the doc file where the text starts but this isn't the case for MY doc files. From the looks of it, it's trying to find where this point starts and read after it but when it does this, all it returns is: [b]x[/b] I've tried everything I could think of but since the top section randomly changes length, i can't use length and since '\0\0' doesn't come up on my doc files, it doesn't find a place to stop. Any ideas?
  18. had to change that to 11:59:59 but it worked. Thanks :)
  19. ok I found that if I add 43,200 to $today['am'] number then it adds up right but there has to be a better way?
  20. Now I THOUGHT this would work to capture the start and end of day time but it's not working properly. [code] $today['am'] = mktime(0,0,0,$month,$i,$year); $today['pm'] = mktime(11,59,59,$month,$i,$year); [/code] I want from 12:00 am to 11:59pm of he day obviously. But it's not capturing everything for some reason. I did an echo statement from a calendar of mine and it shows this: [code] Decemeber 7th: am=1165471200 pm=1165514399 December 8th: am=1165557600 pm=1165600799 [/code] you see the gap between 12/7 PM and 12/8 AM ? Obviously theres a problem there. I'm trying to use this to capture data out of the database by finding everything between $today['am'] AND $today['pm'] but with all the missing number inbetween, i'm having issues with it.
  21. I know it's possible, I've seen it done myself but I'm not sure where to start. The idea of uploading a streaming a video is easy, however. Figuring out how to stream through the site without actually uploading is a different story. Basically want I want this to be able to do is allow people to have conferences across the site. I'd like to make it handle up to 8 videos at once but my educated guess is that this will cause HUGE lagging on each others videos. Basically, if someone can point me in the right direction then I can figure all this out. I tried doing google searches but all I can find is software that you have to buy. Any tutorials or any "look in the manual here" would be GREAT.
  22. Alright. Made some changes. 1. I didn't really know where to put a header at and how to make it look right so I'm skipping this for now (although I do agree). 2. I set the image DIV to the top right. Sizing down the image is easy however I'm on someone else's computer right now so that has to wait. 3. I took the text out from underneath the image. After talking it over with the boss, we decided that we would instead create individual pictures for the staff. Therefor this text under the picture is no longer needed (nor is the image map) 4. The arrow did take a while lol. But I didn't feel it was needed either. I just wanted to give the page an interactive feel to it. I'll take it off for now  (and only put back if requested by my boss). 5. I added padding to the tabs/links to stretch it out more. I thought they were too bunched together also but with very few links, there isn't a lot I could do with it. 6. What's wrong with "Navigation"? lol. I used that on alot of my sites. What's a better word to use to tell the users "Heres some link now get moving" 7. I changed the font on navigation to courier new and set it to bold (just to make it look better). Take a look at what I have now and give more suggestions. I'm taking all of this to the higher ups this afternoon (in like.. 30 minutes)
  23. I've been on here for a while and never had a site i've done been reviewed. HA! Anyway. This isn't an entire site just yet. What I was asked to do here was create something simple but with advanced user friendly controls. They basically didn't want an imaged template but they didn't want it to be just text and colors either. There's just one page so far. It's sort of a test page based on the idea of what we're going to do with this. What they want to do is create office pages for each office they have and use a single picture (link in the link supplied) to give information based on who the mouse is over. Just give me a review. Any comments and suggestions will be taken into consideration. http://s88392010.onlinehome.us/esp/espindex.php
  24. ^ well i was agreeing with ur last comment there until I realized when everything goes bad, it's my a** on the line. Monday I go back in and I'm going to explain to him the importance of NOT using images for text. Bandwidth, blurriness, etc. I really just need him to understand the issues he's going to set in the long run. I mean, he's planning a site for millions of members so bandwidth will get real bad after a few 1000 members start getting online daily. We just started the site up about 2 weeks ago and haven't done much but we already have 1000 members. Already used a gig of bandwidth alone this month (not a clue in hell how that happened, to be honest). .. it's a far more serious issue than he thinks it is and someone has to explain this to him before the site starts lagging.
  25. Well this is what I'm thinking. After this company gets through doing their crap, I'm changing everything back to text. I'll explain this to my boss so he doesn't have to worry about them not doing the job. I mean, once we pay them, we don't have to deal with them again.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.