Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by zoldos

  1. zoldos

    how do I use browser detection JS to run specific HTML based on detection result?

    All I know is that the mod uses AJAX and was pinging my host's server repeatedly, and the CPU spiked. As soon as I disabled the mod, the CPU went back to normal. Yeah the backbone code is PHP. I don't know enough about PHP/JS to implement this anyway, and as I said, as is, it seems to really...
  2. zoldos

    how do I use browser detection JS to run specific HTML based on detection result?

    Okay, gotcha. Honestly tho, when I further tested it, the mod made my web host's CPU spike quite a bit, and it's gonna take a lot of coding to get it working. I may just forget it, and not mess with what already works with all browsers. :)
  3. zoldos

    how do I use browser detection JS to run specific HTML based on detection result?

    Why is it a terrible idea? I've already tested the code in my first post and it does exactly what I need: basic detection of IE, Chrome, and Firefox...
  4. zoldos

    how do I use browser detection JS to run specific HTML based on detection result?

    In other words, I can do this for example: if(isFirefox){ {* SHOW MY NOTIFICATIONS POPUP *} {if $notifys[1] != 0} <div align="center"> <span class='updatesboxdivider'>-=</span><span class='updatesbox'>Updates & Notifications</span><span class='updatesboxdivider'>=-</span>...
  5. zoldos

    how do I use browser detection JS to run specific HTML based on detection result?

    Okay thanks! But how do I execute standard HTML and/or more JS after the "if" statements?
  6. zoldos

    how do I use browser detection JS to run specific HTML based on detection result?

    I found this code snippet via a Google search and it is exactly what I need, but I'm not sure how to implement it. I'd like to use it to run specific code depending on browser. For example, if Firefox, then simply use linked Javascript, if IE/Chrome, then I'd like to use alternate code (HTML and...
  7. zoldos

    how do I auto-refresh a hidden JS popup so the page does not need to re-load to display the updates?

    Got it working with an ingenious bit of code from a support site for the script I'm using. I tinkered with it and what do ya know!. :) Thanks for your time!!
  8. zoldos

    how do I auto-refresh a hidden JS popup so the page does not need to re-load to display the updates?

    Okay, well I appreciate the help anyway, looks like this one is beyond my ability, and without providing you my entire source code, it doesn't seem like it can be done... For one more last ditch effort, here is the source PHP for header.tpl: <?php // PREVENT MULTIPLE INCLUSION if(...
  9. zoldos

    how do I auto-refresh a hidden JS popup so the page does not need to re-load to display the updates?

    Okay, I have some alternative code, that does the same thing, but uses almost pure HTML. Tell me what you think of it, and if it's easier to work with: {if $notifys[1] != 0} <table cellpadding='0' cellspacing='0' align='center' width='50%'> <tr><td class='header'><center>Updates &...
  10. zoldos

    how do I auto-refresh a hidden JS popup so the page does not need to re-load to display the updates?

    Okay, gotcha. I did post this question on a Smarty forum and a few other places. I can post the PHP source of the template in question for you to check out, but it's full of Smarty tags. Let me know, and thanks a bunch for your help this far!
  11. zoldos

    how do I auto-refresh a hidden JS popup so the page does not need to re-load to display the updates?

    Thanks! So there is no other (simple) way you know to refresh just that particular part of the code?
  12. zoldos

    how do I auto-refresh a hidden JS popup so the page does not need to re-load to display the updates?

    I use a pre-written script that is fully integrated with Smarty and I do various source code mods for better functionality.
  13. zoldos

    how do I auto-refresh a hidden JS popup so the page does not need to re-load to display the updates?

    I'd rather just refresh the notify section div. How do I use an Iframe for that? Here is the HTML portion of the code: <div style='display: none;' id='newupdates_popup'> <div style='margin-top: 10px;align:right;'> {assign var="notifyscount" value=$notifys[0]|@count}...
  14. zoldos

    how do I auto-refresh a hidden JS popup so the page does not need to re-load to display the updates?

    Okay I added this just after the last "}": setInterval("window.addEvent('domready', function()",15000); But it doesn't seem to work. I'm not exactly sure what part of the main JS fires to show the updates (if any) or even if my syntax of setInterval is correct. :(
  15. zoldos

    how do I auto-refresh a hidden JS popup so the page does not need to re-load to display the updates?

    Can I do it with just window.setInterval? I always have problems with jQuery despite the fact that parts of my site use it. ?? lol

Part and Inventory Search

Back
Top