Jump to content


Staff Alumni
  • Posts

  • Joined

  • Last visited

Posts posted by ober

  1. billtotal = 30,000.00 at the start


    I have this:

    var totalboxes = document.getElementById('boxcount').value;
        var billtotal = document.getElementById('billtotalx').value;
        var billtotalbox = document.getElementById('billtotal');
        var i=0;
            if(document.getElementById('bill'+i).value != null)
                billtotal += document.getElementById('bill'+i).value;


    I have 8 fields that are being added to an existing total.  This is an onkeyup function and the alert shows this as it loops:











    The fields that it is adding contains:











    So it looks like it is appending instead of adding.  What am I doing wrong??



    I swear, you people need to freaking read.  IT Freelancer != web development.  I need someone that can manage a network with servers and workstations!  "in the Detroit, Michigan area" != I will take you if you swear that you are awesome but you're from India.



  3. Yeah, I've done the whole AJAX thing and I don't have any issues there.  My only new issue is that I've never dealt with one of these grids and I don't know how the data is stored or read or retrieved after updating.  I'll play around with what Mchl posted and see what I can do with it.  Honestly, this is a lot of work when I probably could have created this interface with pure PHP a lot faster... but I want the end user experience to be good so I'm trying to go above and beyond.

  4. So, I spent the past few hours implementing this great EXTJS editor grid: http://www.extjs.com/deploy/dev/examples/grid/edit-grid.html


    I wrote a routine to pull data out of the database (MSSQL) and dump it to XML so this grid could read and display it.  And then I realize that I somehow have to figure out how to get the data BACK INTO the database.  Since I can't write the data to anything and store that back to the server using JS... how the hell am I supposed to use this thing?  Have I just wasted several hours of research and coding??


    I guess one approach would be sending all the data back via AJAX, but there has to be a cleaner approach, right?


    Has anyone dealt with this?

  5. haku, thanks for the info.  I did some research into that and tried a few other things, but zoom:1; doesn't seem to have any effect on the problem.


    On the pop-up, I guess what I don't understand is that the code is the same on the home page and the sub-pages... and that portion that displays that menu is exactly the same.  So I don't understand why it would do that.  And I don't think it's controlled by JS... I think it's a CSS thing.  There are no mouseover or mouseout events for those items.

  6. So I have a site designed and it looks great in both IE8 and Firefox.  But when I turn on compatibility mode in IE, I have 4 issues:


    http://www.americanbeautytools.com/v2/ - logo does not appear in upper left

    http://www.americanbeautytools.com/v2/intldist - any other subpage (not the product pages), the main portion of the menu does not appear

    http://www.americanbeautytools.com/v2/intldist - the red box with the 5 links in the lower left (found on the homepage) is completely missing on all the subpages.

    http://www.americanbeautytools.com/v2/models/rs/108 - any subpage, the box that appears if you hover over "Site Search" or "Dealer Search" in the upper right corner does not disappear when you mouse-out.  It works correctly on the homepage.


    Can anyone help me correct these issues?  And please let me know if you need any of the source or more information.


    CSS hates me, I swear.

  7. *snip*


    Look at the teaser bar in the bottom right.  See how the images sit lower than the gray bars that provide the navigation on the teaser bar?  I can't figure out why it's sitting lower.  And if I change the top position on the li elements, it moves them up but the tops of the images disappear.  It's like there is something sitting on top of it that has a higher z-index or something.  Can anyone help me figure out how to line them up?

  8. To put it bluntly, don't use relative paths. (I could explain at length that that is the solution, with pretty examples and such but it wouldn't really say anything other than that.)

    Thinking about this further, I guess I could use PHP to dynamically build the absolute path.  Just seems like a hassle.

  9. To put it bluntly, don't use relative paths. (I could explain at length that that is the solution, with pretty examples and such but it wouldn't really say anything other than that.)

    So then I have to change every path in every file when I move everything to the final (production) location?  No thanks.  I'd rather deal with the 'less than pretty' URLs.

    Hey Ober,


    Long time no see :)


    Anyways, something like this *might* work:

    RewriteCond %{REQUEST_FILENAME} !^.*\.css$

    RewriteCond %{REQUEST_FILENAME} !^.*\.jpg$


    I pulled it from a htaccess, so apologies if it doesn't work, but it might give you an idea.



    Good to see you too Steve.  Yeah, been too busy to hit this place up lately.  I'll give that a whirl.

  10. <link rel="stylesheet" href="style/DefaultNew.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="style/Print.css" type="text/css" media="print">
    <link rel="stylesheet" href="style/CSS.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="style/search.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="style/home.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="style/200803.css" type="text/css" media="screen, projection, print">
    <link rel="stylesheet" href="style/200811.css" type="text/css" media="screen, projection, print">
    <script type="text/javascript" src="libs/jquery-1.js"></script>
    <script type="text/javascript" src="libs/Default.js"></script>
    <script type="text/javascript" src="libs/swfobject.js"></script>
    <script type="text/javascript" src="libs/__utm.js"></script><script language="JavaScript1.5">_ujv='1.5';</script>
    <script type="text/javascript" src="libs/redesign.js"></script>

  11. So here is my structure:



      /site -> production site

      /v2 -> testing site


    I've added a .htaccess file to the v2 directory to play with rewriting the urls.


    I want www.test.com/v2/models/ab/75 to be the URL and for it to actually display www.test.com/v2/index.php?req=prod&cat=ab&model=75


    I'm using the following rule in the .htaccess file at the v2 level:


    RewriteRule ^models/([a-z]+)/([0-9]+)$ v2/index.php?req=prod&cat=$1&model=$2 [NC,L]


    It works, and loads the page, and the URL stays as I would like, but all of my CSS/JS/ and images do not load because they all use relative paths.  Any ideas how I can get around that?

  12. So FCKeditor got upgraded to "CKeditor 3.0".  Great... no built-in file browser but they're pushing CKFinder... which has a steep license fee.


    Anyone know of a decent web file browser/managers that can be integrated with other rich editors?

  13. At the very least, hopefully you learned to never do work without an agreement in writing.

    :qft:  And ALWAYS add a clause to your contracts that gives you the power to remove or disable any work you provide if payment is not received.


    Also, never release anything to the client without final payment.  Always develop locally and transfer to their server upon payment.

  14. 100% sure.  If I change the query to cause a different error, it throws that error.


    It isn't requesting it twice (I am using FF however) but I know the variables are not empty.... and regardless, there is no 'and' in the query to begin with.


    I think there is a permissions problem with that table.  I attempted to add the field to a different table and I can update that one just fine.  Now I'm wondering if there is a "repair" type function for MSSQL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.