Jump to content

shadowayex

Members
  • Content Count

    814
  • Joined

  • Last visited

Community Reputation

1 Neutral

About shadowayex

  • Rank
    Custom member title
  • Birthday 06/23/1991

Previous Fields

  • Languages
    (X)HTML, CSS, XML, PHP, JavaScript, JQuery, AJAX, MySQL

Contact Methods

  • MSN
    cooltrainer_2001@hotmail.com
  • Website URL
    http://www.myspace.com/grawrl
  • ICQ
    0
  1. In the normal scheme of things, if a parent UL and a nested UL would overlap, the nested one would be rendered on top of the parent one (or so I've gathered from testing and readings). I want the opposite effect; I would like parent ULs to render over child ULs in a project I've begun recently. I tried setting z-indices on all of the ULs and LIs in the structure, setting the largest z-index on the root UL and working down to the last LI in the structure, but that did not seem to affect what order the ULs were rendered on one another (although the LIs now behave as desired; the first on top, th
  2. $indexloaded = 1;That's the second line. There's no % in it.
  3. Alright, the oldest machine I own is an XP machine from 2005 with a Pentium D in it. Is that old enough?
  4. And, lets say the user had some sort of fit where he or she added like 500 things, removed the first 490 of them, then added 500 more. The array length would be 1000, but the first 490 would be empty. My system already ignores this, but is that bad on resources or anything? Should I place logic to, instead of push()-ing, check for the first null item and add at the index instead? Or would the overhead for searching for an empty one (in the case that the user only added and never removed for 500 items) counter balance any resource issues?I don't really know how JavaScript arrays work in memory
  5. Well, when it's all said and done, the array is sent to the server in a JSON format and all of the items sent are removed, then the user starts over.Does splice change indices? Because if so, then this wouldn't work, as I need the indices for items in the array to remain constant, so my remove function can remove them at any time.I just tried this, and I don't seem to be getting good results. I'll have to play with it more to ensure I've got my code set up properly, though.
  6. If that's all you have and you have an infinite loop, then I would think that the issue is in the C++.By the way, I'm pretty sure that system function will wait until the C++ program exits before it returns output. So if your program take any input, or is any form of interactive, you're probably out of luck with this approach.
  7. I've made a sort of structure that works something like this:I have an array (arr) that is instantiated.I have two functions, one that adds things to arr based on user input, and one that removes things from arr, again based on user input.The first one returns the index, which is then stored to be used in the remove function, if the user so chooses to remove said item.As of right now, the adding function just tacks the new item on at the index arr.length, and the remove function sets whatever index is being passed to null. This can be done many, many times before the page is reloaded, so arr.l
  8. I'm not saying the code is unimportant, I'm just saying that we don't need reminded of it's size.Again, sorry for being nit picky, I just wanted to explain to him that he doesn't need to keep saying it. We, being the attentive crew we are, read it the first time =P Hopefully that clears it up.Anyway, I understand that the rest of the code could impact this line, that's why I'm pressing for some context.
  9. We'll just need the first bit. Copy and paste it straight in if you can.By the way, the size of the script doesn't matter. I can make one page into 8 if I changed things like this: $one = 4;$two = 6;$sum = $one + $two into /* * A class designed to add two numbers */class Adder{ /* * The two numbers that get added */ private $one; private $two; /* * Instantiate an Adder with two numbers to be added */ public function __construct($one, $two) { $this->one = $one; $this->two = $two; } /** * Returns the sum of the two numbers */ public function getSum() { return $this
  10. Setting a cookie that expires after a certain time limit and refreshing it every time the user loads a page from your site before the cookie expires would work, too.
  11. I, for one, feel that using social media as a portal for a project is a bad idea. Social media is getting rather large, and it's purpose is very broad. If your site is geared towards a certain task, hooking it up to a social media log in really just makes it so anyone with an account on said system can log in. That includes bots. Furthermore, Facebook, for example, has been known for apps hi-jacking and posting wall updates and even IMing people's friends and family via their accounts. Tying your site to a system who hasn't been able to readily secure itself from attacks like that (I know, it'
  12. I agree one of the two is not right. I'm hoping that by getting a wider scope, we'll be able to see a more accurate representation of the code. My theory is that he just typed it straight in here himself, and I'd rather see him copy and paste a set of lines, so we'll see it all in it's actual form.
  13. You could give all of those images a certain class and do something like $("img.theClass").click(function() { update($("span#value"), $(this).attr("id")); }); Disclaimer: I just whipped that up. Hopefully is gets the point across, but I don't know if it'll actually work for your case.
  14. If may be helpful for you to give us the first 5 lines or something, so we can see that code in context. Give us everything exactly as it is for the first 5 lines or so.
×
×
  • Create New...