Jump to content

Webworldx

Members
  • Posts

    347
  • Joined

  • Last visited

Everything posted by Webworldx

  1. Hi Boen_Robot, have you tried dropping Maxthon on top of IE7? After a bit of GUI manipulation to give it a simpler look - I think it adds every feature you could need for web browsing.
  2. Webworldx

    Search

    We are not going to write the full script for you here - but yes, it is possible to do.
  3. Have you tried the old WebFX way?http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html
  4. Apologies, it was unanswered and was wondering why Glad you got it working
  5. Will the file holding the data always have the days in order, or could they appear randomly?If it's in order, then you could always check [x-1] to see if it's the same as the current [x] value (if it is, don't print the date).If not, you could sort the data first then do the above, or you could hold all the dates in a temporary array as you find them, and query that list every time [x] increases?
  6. If your clients are running FireFox, have you tried SVG? There's no "nice" way to do it in Javascript unfortunately, so either mass pixel copying or do it in Flash.
  7. Without knowing what browser he's using - and what (if any) extensions he has running i'm not sure what we can do for you.
  8. ECMA-262 3ed is all you're looking for in a browser really. I wrote about the 1.7 -> 2.0 phase of JS in my blog a couple of months ago: http://blogs.ifcode.com/webworldx/56/javas...t-20-proposals/
  9. I'm probably a bit lost here, but what's wrong with:my_array[0] = [ "Name" , "Value" ]my_array[1] = [ "Name" , "Value" ]??
  10. Webworldx

    Alert boxes

    Just add<script type='text/javascript'>alert('Some Text Here');</script>Into your HTML somewhere
  11. Unless the setTimeout is changing every time, setInterval seems a better option. You can't keep the object local unfortunately either, due to the nature of the function combined with the setInterval/setTimeout (can you imagine the memory leakage?). A global variable/array as adservio suggested would be a good idea, and easy to keep track of
  12. Give each archiveCell an id on creation, and pass it to your ajax call back?
  13. Combined with AJAX technologies, have a look at: http://www.componentart.com/demos/callback...r/WebForm1.aspxAnd all of the componentart demos I think they highlight the power and usefulness of Javascript well.
  14. Have you thought about setInterval() instead?
  15. It looks like you're writing the table faster than the AJAX can execute. Your code seems to go I could be wrong, but an alert() in your stateChanged should tell you when it's being executed, and how much of the table has been created at the time.
  16. What does your regular expression involve? Surely there's a better (neater/more efficient) way than executing it across the whole page?
  17. It's not the problem, but it's not a good solution to use. Think about it, document.body.innerHTML.replace(/</g,"") destroys the entire DOM tree in an instant, and you'll probably end up with an operation aborted or similar. Also, the script you use will probably end up inside the body of the page 60% of the time, so any innerHTML replace of an exact text in the body also replaces it in the script. You can see where the errors come in...
  18. Nope, just PMed an admin and asked him to do it
  19. Really, don't do a document.body.innerHTML.replace... it's asking for trouble
  20. You may have seen: http://dean.edwards.name/my/misbehaviors/ which might be useful for you.
  21. I was around last night - but world cup is on!!
  22. Is this in relation to a previous post?
  23. Instead of window.location, FRAMENAME.location.href =...
  24. You can't use XMLHttpRequest cross site, so that's not an option.How about something like: <script type='text/javascript'>function site_noexist(){ alert('there was an error loading the image from the site');}//This will work, as the image exists on the site, and can be reached.var testSite = new Image();testSite.onerror = site_noexist;testSite.src = 'http://www.google.co.uk/intl/en_uk/images/logo.gif';//This will fail, as the site gogle does not hold the image.var testSite = new Image();testSite.onerror = site_noexist;testSite.src = 'http://www.gogle.co.uk/intl/en_uk/images/logo.gif';</script>
×
×
  • Create New...