Search results

  1. W

    Need some javascript help

    It seems to work fine for me. If I go to http://dev.fyepro.com/index.php?reload=1 and then click on Chat and close it, it alerts with '?reload=1' and reloads the index page after that. Perhaps you have security settings blocking JS from reloading pages?
  2. W

    Need some javascript help

    Well that means that for some reason the current URL has no query. Does the alert box show on page load or when you click a link? How exactly are you adding reload=1 to the query of the URL?
  3. W

    Need some javascript help

    Try adding 'alert(location.search);' right before 'var queryString...'. If you get no alert box or if you don't see reload=1 in the message, then the code isn't the problem. I just wanna narrow down exactly what the problem is.
  4. W

    Need some javascript help

    Ah, that's most likely your problem then since params isn't defined there. Try changing it to this: function tb_remove() { $("#TB_imageOff").unbind("click"); $("#TB_closeWindowButton").unbind("click")...
  5. W

    Need some javascript help

    Alright, so you're placing that code inside of the tb_show() function? At which part exactly? Right after this code? var queryString = url.replace(/^[^\?]+\??/,''); var params = tb_parseQuery( queryString );
  6. W

    Need some javascript help

    Oh so you *want* to use the params variable? Well in that case I need to see the definiton for the url variable.
  7. W

    [PHP Tut] Creating Excel XLS for download

    I haven't tried this code in particular, but it looks fine. Although I would recommend using an OOP style or at least procedural so it would be easier to use in other scripts as well. This is a very good tut, though. Perhaps it's just that it's beyond the understanding of a lot of people around...
  8. W

    Need some javascript help

    Try using this instead: if (location.search.match('reload=1')) { location.search = location.search.replace(/&?reload=1/, ''); }
  9. W

    Diablo III

    Oh yes, I agree. I wasn't trying to say it looked like a disappointment. The gameplay and AI seem to have been improved on a lot. And while the graphics aren't mind-blowing, they're certainly not poor. Which is a good thing since that means people don't have to buy a new computer or update their...
  10. W

    Help fixing PHP error in PhpBB

    Yeah, it's coming back to me now -- my hate for phpbb that is :P I found the mod pretty easily actually, it was like the 6th or 7th down on google. Anyway, I believe the problem is being caused by phpbb's rather unstable template system. It could be the template for the donate part, or perhaps...
  11. W

    Diablo III

    Anyone else watch the gameplay trailer? It's ~800mb for 19mins of video for some reason, but a good preview nonetheless. The graphics aren't much of an improvement over d2 in my opinion, but Blizzard has always been good at making excellent games that don't require cutting-edge computers. And it...
  12. W

    PHP & SQL help

    The .= is just like += or -= but for concatenation. That is, $sql .= "asc"; is the same as $sql = $sql . "asc";. Anyway, I believe your problem with this is that you have no condition to handle descending order, only one for ascending. And you don't need even a condition for ascending since...
  13. W

    [Game Programming] Highlander

    Unless you did something stupid like stealing the plot of the movie, you should be fine just basing it on it. As you plan for it to be an MMORPG rather than a single-player, chances are you can't use much from the movie other than that everyone is trying to kill each other to be the last one...
  14. W

    cgi troubles

    Have you changed the permissions of the script to 755? If so, post your script here as there's probably a bug in it.
  15. W

    Help fixing PHP error in PhpBB

    PHP doesn't name variables in an error, it would say something like 'unexpected T_VARIABLE' in that case. $end refers to the end of the script, and unfortunately it can be hard to find the cause of this error. Most likely you have an open code block which isn't closed somewhere. If you could...
  16. W

    Is it possible to add a time delay in PHP?

    Since that script clearly says "This script is NOT freeware!", I'd remove it before a mod on a power trip scolds you :P Anyway, I believe the real drag occurs within this foreach: foreach ($image_list as $key => $val) { Or to be more exact the create_thumbnail() function, considering that it...
  17. W

    [Game Programming] Highlander

    You're crazy :P Really though, you guys could just *base* the game on Highlander and not reference it in any way. Then you're not infringing on any copyrights ;-)
  18. W

    iframe javascript problem

    I don't see any problem with that code. I even just tested it and it works fine. It's better to post the exact code that you're using so that problems such as syntax errors can be identified.
  19. W

    PHP Warrings:

    getimagesize() returns an array where index 0 is the width and index 1 is the height. My guess would be that the image you specified doesn't exist, so false is returned. Which means that both the height and width are being set to null and then cast as 0 when you divide them. Make sure the image...
  20. W

    need help with form submit script

    Unfortunately, you can't use 'this.form' in an object that isn't a form element. An anchor isn't considered part of a form, so you have to access the form through the document object.
Top