Jump to content

reportingsjr

Members
  • Posts

    1,183
  • Joined

  • Last visited

Everything posted by reportingsjr

  1. Im pretty sure you can. Why would that have different types of cookies anyways?
  2. I have an AJAX chat code thats fully working, except one part.. I have a function to post but I can only use it once, then when you try to submit it again nothing happens. I dont know if buttons only work once or what but here is my code: <html><head><script type="text/javascript" language="javascript" src="includes/ajax.js"></script><script type="text/javascript">setTimers();function post(){ name = document.getElementById("name"); post = document.getElementById("post"); if(name.value != ""){ if(post.value != ""){ request[r] = Ajax(r, "chat2.php", "POST", "name="+name.value+"&post="+post.value); request[r].onreadystatechange = checkpost; function checkpost(){ if (AjaxHandle(request[r], r)) { if (response[r] == "succesful") { } else{ alert("There was an error while you were trying to post, please try again."); } } name.value = ""; post.value = ""; } }else{ alert("Please fill in some text to post!"); } }else{ alert("Please enter you name!"); }}</script></head><body><div style="width: 500px; height: 200px; overflow: auto; padding: 5px" id="chatbox">loading messages....(This may take up to 30 seconds)</div><br />Name:<input name="name" id="name" type="text"><br>Post:<input name="post" size="80" id="post" type="text"><br><button onclick="post()">post</button></body></html> Now it all works fine, it post it and such. but you can only post once then you will have to refresh the page because the button onclick doesnt call the post function again.I really need this to work!! thank you.*edit* You can find the working example here
  3. I think there is a javascript thing to do this.. Like a timeout() function. w8 ill look it up, I have a file floating around here somewhere.*edit* oops, thats to call a function every "X" milliseconds. I think you could use ajax for this.. just make a page that displays the chat, then do an AJAX call to it and have a div where ever the chat is then do this: function setTimers(){// the 1000 is how often to do the function in milliseconds, 1 second = 1000 //milliseconds. 2 or 3 seconds is reccomended so server isnt flooded.timeout = window.setTimeout( "getchat()", 2000 );}function getchat(){*ajax code here, dont want to write lol*//gets state of requestxmlhttp.onreadystatechange = //if state equals 4, which is ready, and status, which is if page is accessible or not it does //codeif( xmlhttp.readyState == 4 && xmlhttp.status == 200 ) {chatbox.innerHTML = xmlhttp.responseText;}else{alert("There has been an error with the chat code! Sorry about this trouble.");}} now, go look up the rest of the code for the ajax and getting the chat lol. on the page anywhere include that file or just put it in there and in a javascript <script> tag start the setTimers(); function... thats it!
  4. reportingsjr

    IE7's bug

    I must be blind.. it doesnt look one bit like the text is anti-aliased on here.. unless its just me. I didnt know IE 7 had that built in though.. neat.
  5. reportingsjr

    3d

    skills... or just use a program, like adobe photoshop and learn how to use it. Then just make imags in that program and copy them onto flash. ;-) I hae yet to see a really 3d on yet though.. all cartoonish.
  6. Thats how those stupid danasoft.com does their signature, it has the ip address and rowser and such, pretty easy to do actually..
  7. Ive wanted to read rss's but not in the xml format, like when you click on the rss button/links. Is there like a reader for these so you can actually use them? and is it free?thank you!
  8. I have one input for you guys, you are using the gloabal $_request, I wouldnt use that because it isnt really.. good? I would use $_post or $_get, depending on what you set it to. Thats just my opinion. But I seem to have forgotten why request isnt good.. oh well. I just know it isnt ill look it up if you want backup..
  9. Its html... <meta HTTP-equiv="refresh" content="0;url=http://www.w3schools.com";> in content, the 0; part is how soon to redirect the page (in seconds) and the url=blahblah; is what url to redirect to. Hope this is the kind of redirect you want, this will just change the page.. or you could do it in javascript, like this.. <script language="javascript" type="text/javascript">window.location="http://www.w3schools.com";</script> Im not sure how to put a timer on that one though.. maybe someone else who actually knows javascript can
  10. um, this is the CSS forum.. just incase you didnt notice lol. Can we have a mod move or delete this?
  11. well, for the csss; you gave us the javascript, and you dont have a starting <style> tag. Put this before the start of the css: <style type="text/css">maybe thats all it was?
  12. no, unless you edit it yourself =] ?message=hi is strictly php.. notice the question mark? lol like in "<?" :)why would you need to do this anyways?
  13. Im the only kentuckyder? here Im a hill billy! (no I dont like my sister. or any of my relatives ). I feel special!
  14. reportingsjr

    login script

    or you cant just do: SELECT * FROM users WHERE unam = ' PASSWORD($logn) ' AND pwrd = ' PASSWORD($logp) '; sorry about it being in mysql format, wanted to try out the bbcode =]
  15. Well, the zend enginge website has an extremly good tutorial for begginers, even if it hasnt been updated in a year or two . http://www.zend.com/php/beginners/index.phpReally good if you are (or were) completey new to a programming language *cough*me*cough*
  16. or... just pre load all of the images and pull the day, in three letter for (Sun, Mon, Tue, Wed, etc..) and do if elses? that seems like the easiest approach.. cause pictures take up a LOT of space in databases
  17. actually.... here is one: <html><head><style>div.shadow{height:80px;width:80px;position:absolute;left:10px;top:10px;z-index:-1;background-color:gray;}div{height:80px;width:80px;background-color:white;}</style></head><body><div>text</div><div class="shadow"></div></body></html> Now, it worked in the try it editor on w3schools but not on a page in my website... dont know why
  18. Your prolem is, is that on a page if you didnt put http:// or another thing like that (https://, ftp://, etc..) it will automatically fill it in the base URL. Such as http://www.myspace.com
  19. well first, you need to actually leanr some web coding, not just most of HTML. Learn CSS, PHP, JavaScript, ASP, XHTML, etc.. Just do CSS and XHTML first, the rest dont realy matter.
  20. I think he means hes trying to create like a racing game with javascript, like a flash ame. It doesnt save anything.. but he wants a scoreboard for it. Is there like an orderby function or something?
  21. Ah, yes the qoutes.. Thanks guys!but.. I thought you couldput breaks and stuff in it, but that didnt work?
  22. Well, my site works best in Firefox but not in IE so I wanted to have an alert to say "You are using Internet Explorer! For the best optimization(preformance) of our website please use Firefox or Opera, both of which you can get free!"But, I think the popup blocker on IE blocked it. Any ideas on how to get past this, or do I have my coding wrong on this (sorry, im not too good at javascript. Im finally doing tutorials on it today!) <!--[if IE]><script LANGUAGE="Javascript">alert("You are using Internet Explorer! <br />For the best optimization(preformance) of our website please use <a href="http://mozilla.org">Firefox</a> or Opera, both of which you can get free!");</SCRIPT>Please download Firefox by clicking on the following banner:<br /><a href="http://www.spreadfirefox.com/?q=affiliates&id=0&t=76"><img border="0" alt="Get Firefox!" title="Get Firefox!" src="http://sfx-images.mozilla.org/affiliates/Buttons/120x60/take.gif"/></a><![endif]--> Now the code part works. Its just the popup which is basically the main part. Thanks!
  23. ohh, I see hmm. Not sure you can do this the way you would want. Ill look into it more.
×
×
  • Create New...