Jump to content

Chocolate570

Members
  • Posts

    1,550
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Chocolate570

  1. Ya, but what's the point of doing it with AJAX? It's just gets more complex. You might as well just make a php page and submit the form there, right?
  2. You can't use AJAX unless it's with PHP first of all, and second of all, there's no point in this application because it's not a complex form or anything, I think.
  3. I don't understand. Could you provide more details? What sort of toolbar? Is it a whole page, or an add-on? What languages are you trying to go for? Will it be serverside?
  4. That's not possible without PHP. If you'd like to know how to do it in php, then I can tell you.
  5. Ok guys, 3 answers to the same question is enough. Don't post on this topic unless the starter wants to ask another question. Thanks.
  6. Chocolate570

    Spore

    Same here. I use my friends account. Do you know anyone with an account?
  7. Chocolate570

    Spore

    Oh. My. God.ASPNETGUY! I need to play you on AOE III! I'll use my friend's level 106.
  8. Can we see your blog please?
  9. First of all, I'm not sure if this is a select box you're trying to find:var userselectedYearMonth=document.getElementById("selectYearMonth").value;and if it is, then the proper syntax is this:userselectedYearMonth=document.getElementById("selectYearMonth");userselectedYearMonth=userselectedYearMonth.options[userselectedYearMonth.selectedIndex].value;And that would return the value of your selected option.Also!The reason that error is popping up is that you're missing a parameter in your select.add(). FireFox will give an error if both parameters are not there. It doesn't matter whether one is null or not though.You have to give both of these parameters:select.add(element to add,element to put it before)If you put "null" in element to put it before it sticks it self at the end of the list. :)Hope that helps. It should clear up your error. :)Choco
  10. Deprecated, yet it still validates? What's with that?
  11. I mean that I copied your page code and stuck it in a try it editor and added my script.
  12. Quick note: Use codebox for big codes, otherwise they disrupt the page.
  13. I don't know how anyone can make windows crash. I've tried everything. I've maxed out my ram and used both of my processors at 100% running around 20 DIFFERENT programs and loading a web page heavy on graphics. In the background, among the programs, was a direct x game and an open GL flight simulator. The moment I opened the two games everything froze for a second and then it started working again. Of course it was slow, but what else can you expect? :)Again, I don't see how you can make it crash. I'm running windows XP media center edition. I love watching TV :)I love the flashy XWD of Mac, but really, windows is what I'm used to. I use it on 3 out of my 4 primary machines (all at home) and never have trouble. I have MEPIS (a distro of linux) running on the other one. I'm not afraid to say I prefer windows. Why not? Most of the programs available run on it.
  14. Go MySQL Bible! Woot!No dummies books for me. I'm way past that. I'm at:"PHP for moronic idiots who look for self-degrading book titles"(Ok, it's PHP for dummies.)
  15. innerText returns only the text inside a specific element.EXAMPLE:<p id="test"><b>zoop likes</b> monkeys with <u>butter</u></p>If you used this java script:<script type="text/javascript">x=document.getElementById("test");alert(x.innerText)</script>It would alert "zoop likes monkeys with butter". It basically strips out all formatting HTML from it and just returns the text.It can only be used in IE! For FireFox and Safari(not sure about Opera) use:alert(document.getElementById("test").textContent);Hope that helps.Choco
  16. Also, you might want to do it inline. It saves you space in your header section, and allows you to not have to make a new function <textarea id="txtContent" cols="80" name="txtContent" onfocus="if (this.innerHTML == 'Type the entry here...') this.value = ';'" rows="10">Type the entry here...</textarea>See if that works.
  17. Well, you might want to do this instead. <script type="text/javascript"><!--elements = document.getElementsByTagName("p");for(i=0;i<=elements.length;i++) {if (elements[i].className == 'test') { elements[i].style.display = 'block';}}// --></script> Try that on for size. (I tested it on your page. It works perfectly. :)Choco
  18. Justsomeguy, I've tried that site millions of times and still it gives me the wrong results. I dunno. I've tested my speed on many other sites and they always give me about the same figure, besides 100kbps here or there. But on that site, it's putting me 4MB/sec wrong :S
  19. I was 9 when I started on a C-like language adapted for building robots. A year later I started the web section, and i'm still into it.
  20. It seems perfectly fine, except for the fact that it's returning a number 1 more than what you need...for example, the first option would be 0 in an array, and the second option would be 1, so you'd have to put this instead of what you have: for ( var r=0;r<obj.length-1;r++ )At least I think :)But the function itself seems fine...hmm...Where is the page that you're testing this on?
  21. You might also want to try the PHP GD Image libraries. They allow you to import fonts and put 'em on web pages...it would be easier if you're extracting the data from a database.
  22. Ahh. OK.Could you also provide me with what getValueIndex() (or whatever that was) returns? (Integer or string )
  23. Well, first of all, document.getElementById('selModel').selectedIndex = getValueIndex('selModel',arguments[1]);What are you trying to do with this? Set the select box's selected index? I thought you were trying to change the value of it... :S
  24. I've heard this is a pretty good book :http://www.apress.com/book/bookDisplay.html?bID=10042
×
×
  • Create New...