Jump to content

umekille78

Members
  • Posts

    58
  • Joined

  • Last visited

Everything posted by umekille78

  1. That is one idea ofcource.Is it posible to some how probe the users PC for a webcam? And give that user a "take picture button" wich takes and upploads a picture? Every 30 sec would create alot of pictures. Way to many./Per
  2. Hi all!Im in the proces of building a webbcomunity. Mostly to lern but also becouse its fun to work with HTML, PHP and such stuff.Now Im wondering if there is some way to add webbcam options to a page.For exampel if I have a chat-page. Is it posible to give the users the option to show there cams to eathother?I know it is posible for me to add my webcam to a page. But can you let the users do that as well?Im going to look in to this closer myself but if some one have some ideas thet could help it would be nice./Per
  3. Yes it sounds right but you are missing the point here. I asked if one can save an ARRAY to a file. Not how to make a array into a string and save the string. I already know how to do that.Im trying to optimice my program since its supose to have loads of trafic and alott of users handeling the same file.If its att all posible to save/load the array like one big "thing" it would improve the time a user holds the file ocupiced.Is this posible??/Per
  4. umekille78

    I don't know php

    Becouse its written in 3 different files and its alots of code. Thats why!!
  5. umekille78

    I don't know php

    Hi Drew!As far as I know PHP is free to use. You need a PHP program on the webb server to be able to use PHP in your HTML code.Building a chatroom can be done whit HTML and PHP but its easyer to get it nice and functional if you use JavaScript as well.PHP is a server side SCRIPT language and JS is a user side script language.If you give me your email I can send you a working chat-room in HTMP/PHP/JS. Its as easy as you can emagin but it works. You probably need to rewright it to get it to work as you like but its a start anyway./Per
  6. Hi again!Is this a strange or unusaly hard question? Some 60 people have read this question and i have still not got any anwsers.Dosn't anyone know if this is at all posible. Lets start there ok?Can it be done? YES or NO./Per
  7. Hi all!In a page Im working on Im saving alot of data to a file. And Im loading it back and changing it just to save it again. This is booring work when you use strings.My Idea is to use an array instead. But i dont know if you can save and load a whole array at onec. It would save me alot of trouble if one can do that.Can any one help me? Is it posible to save and load arrays? Or do I have to save it post for post and load it the same way?If it is possible can any one wright a small exampel to show how its done?Thanks /Per
  8. By the way. The words betwen the font tags are the swedich words for the colors. If anyyone didn't understand that
  9. Hi all good people!I have a litle problem. I want to putt color into a select box like this: <select name=fontcolor size=1><option value=black SELECTED>Svart<option value=blue><font color=blue>Blå</font><option value=red><font color=red>Röd</font><option value=green><font color=green>Grön</font><option value=purple><font color=purple>Lila</font><option value=orange><font color=orange>Orange</font><option value=aqua><font color=aqua>Aqua</font><option value=fuchsia><font color=fuchsia>Fuchsia</font><option value=gray><font color=gray>Grå</font><option value=lime><font color=lime>Lime</font><option value=maroon><font color=maroon>Maroon</font><option value=navy><font color=navy>Marin</font><option value=olive><font color=olive>Oliv</font><option value=silver><font color=silver>Silver</font><option value=teal><font color=teal>Teal</font><option value=yellow><font color=yellow>Gul</font></select> But that dont work I have also tryed to put the color atribut into the option like this: <option color=olive value=olive>Oliv But that dont work for me either.Does any of you know a way to get the color inte the select box?/Per
  10. Hi all!I hope you dont get too borde with me.The other day I got a script from some one here. And I use it in my page. <script>function scrollit(){window.scroll(0,screen.height);}</SCRIPT> The script is scrolling down a iframe for me. Every time the iframe is reloaded the script scrolls it to the end.This worked fine and I was happy But after a while the text in the iframe was geting long and the script didnt scroll it down to the end any more. It stopped after a while.Is the screen.height a integer value? And so is it becouse the text in the iframe have more rows than that size?The script still scrolls down. But only to a sertan point. Not all the way down.If screen.height is a integer. Can I putt a larger integer in its place to get the efect i want? And if so. What is the biggest integer you can use in a java script?Or can you fix the problem in another way?/Per
  11. Good idea to go back to the start!I fixed it from there. With the help I got on the way I was able to fix it. Strange but good.Thansk to all you how have helped me./Per
  12. Yes!It worked fine! The resize was the only problem
  13. Its an ide ofcourse! But the page is part of a greater project. And if it is posible to solve the problem in the original way it would be better./Per
  14. I tryed it!And the form data dont get sent.Otherwise it works perfect. Resizeble and all.But it feels like we only tradede one problem for another Anyway. Greatful for the help!/Per
  15. Wouldnt that forget to send the formdata?I can try but if you like./Per
  16. Ok!Now its geting strange!It opens a new window. But it dont putt the chatpage in it. And after that it opens the chatpage in the log in window.Any new ideas?Thanks for the help by the way. You are all wery nice to me./Per
  17. Nope, sorry.It feels like the function never is executed.It behaves just like an ordenary submitbutton/Per
  18. umekille78

    Objects

    Hi all!Im new with Java Script and the book I have is not that good. I wonder if any of you know a webbpage were all objects ar listed and the objects all atribute.Im in here asking questions about all sorts of small things that I probobly could solve my self if I only hade a good referens source./Per
  19. Hi all!Im sorry to say but this dose not work at all!When I added the & #39; part it dont open the chatpage in a new window any more. It opens it in the same window as the login page is in.Look at this: <script>function cForm(form){win=window.open('','Chatt',& #39;height=600,width=800,status=no,toolbar=no,menubar=no,location=no,resizable=yes);form.target='Chatt';}</script> Like you told me to right? The script function is used by a onClick in a form. We can look at that too: <form action="http://exampel/chat.php" method="post"><input type="hidden" name="first" value=true><p> <input name="submitButton" type="submit" value="Enter" onclick="cForm(this.form)"></p></form> Before i added the & #39 bit it was working fine. Exept for the resizeing thing.Im not that familiar with Java Script. I hope some one can help me find the problem here./Per
  20. Hi all!Its me again Per.I almost have a working chatroom now. Some small things left.When I open a new window for the chat page it dosn't get resizeble as I whant it to be. win=window.open('','Chatt','height=600','width=800','status=no','toolbar=no','menubar=no','location=no','resizable=yes'); Can anyone figure out why this dont work?/PerPS. The height and width is in pixels right? It dosn't seems to be as big as a would like.
  21. Hi again!I have tryed aspnetguy's script and it work realy well Thanks allot!! There is only one thing that dont work and that is the atribute "resizable=yes"I added this to tha features of the new window but I still can't resize it. Strange. win=window.open('','Chatt','height=600','width=800','status=no','toolbar=no','menubar=no','location=no','resizable=yes'); Can you se what is wrong with this. I need to be able to resize the window./Per
  22. If you should do it with PHP how would you do it then?/Per
  23. Hi all!The idea is that you should log on to a chatroom that I have made.I have a "login page" and a "chat page".What I want is to make the "login page" to open the "chat page" in a new window.It is important that the form data from the "login page" is transferd too the "chat page" in the new window.Any ideas? /Per
  24. Hi again!I rather not use <form target="_blank" ...The purpose of using window.open is to be able to remove un wanted stuff like the URL list and forward and back buttons. Like this: <input type=button value="come on in" onClick=window.open("http://exampel/newpage.php?username&first",null,"height=600,width=800,status=yes,toolbar=no,menubar=no,location=no");> Can you do that with target="_blank" ??/Per
  25. Hi all!I have a webbpage with a form on it.Im using onClick on a button to open a new window rather than using submit.The problem is that I dont know how to get the form data to be posted into the new window.Look att the exampel here: <input type=text name=username><br><input type="hidden" name="first" value=true><input type=button value="come on in" onClick=window.open("http://exampel/newpage.php?username&first");> Can anyone help me with this?/Per
×
×
  • Create New...