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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. electricphp

    attribute change not being recognized by function

    here is a a simplified version of my page: <html> <head> <script language = "Javascript"> function makeYel(cb,ar,typerow){ activeRow = ar.parentNode.parentNode.rowIndex; alert(document.getElementById("myTable").rows[activeRow].bgColor)...
  2. electricphp

    attribute change not being recognized by function

    The activerow is the rowindex of the table, so for example the row in position 6. I'll have to post all the code when I get back to the apartment, as I'm typing this from my mobile.
  3. electricphp

    attribute change not being recognized by function

    well, if I do: alert(document.getElementById("myTable").rows[activeRow].style.backgroundColor); I get nothing, so what should I do then?
  4. electricphp

    attribute change not being recognized by function

    I have this function that changes the background color of a table row but it's not working correctly. function changeColor(activeRow){ alert(document.getElementById("myTable").rows[activeRow].bgColor); if (document.getElementById("myTable").rows[activeRow].bgColor == '#a2dd51')...
  5. electricphp

    add new row in move table row script

    I have this script that allows me to move a table row up and down in a table. var activeRow = 0; function setActiveRow(el) { var rows = document.getElementById('movingTable').rows; for(var i = 0; i < rows.length; i++) { if(rows[i] == el) {activeRow = i;} } } function...
  6. electricphp

    problm with != in query

    yes, this did it: SELECT * FROM messages WHERE ifnull(receiver_del,'no') != 'yes' seems like an awful lot of code for such a simple task
  7. electricphp

    problm with != in query

    Why does this return results: SELECT * FROM messages WHERE receiver_del = 'yes' but this doesn't SELECT * FROM messages WHERE receiver_del != 'yes' There should be one result returned. there is one record that has the value in receiver_del set as yes. The rest of the records have that...
  8. electricphp

    Compatibility issue with simple script, does not work in IE

    Thanks for pointing that out... it works now!
  9. electricphp

    Compatibility issue with simple script, does not work in IE

    here you go guys: http://chromapr.com/test.php works in firefox not in ie8 for me.
  10. electricphp

    Compatibility issue with simple script, does not work in IE

    <span id="siteTotal"></span> That's all the code. I may switch to radio boxes if I can't get this to work.
  11. electricphp

    Compatibility issue with simple script, does not work in IE

    I am using IE8. this works in FF: var dropdownValue = document.getElementById('ship').value; but not in IE. however if I do something like this: var dropdownValue = document.getElementById('ship').selectedIndex; it will show 0, 1, 2...etc in IE I already tried setting the name and id both...
  12. electricphp

    Compatibility issue with simple script, does not work in IE

    I have this little script that works fine in firefox but not IE: var dropdownIndex = document.getElementById('ship').selectedIndex; var dropdownValue = document.getElementById('ship')[dropdownIndex].value; document.getElementById("siteTotal").innerHTML = dropdownValue; it is invoked by...
  13. electricphp

    cross domain scripting / possible with ajax

    Feherke, please don't make any assumptions about my goals. You know what they say about assumptions. They make an a.. out off u & me. If you can't help withe the scope of the project, please refrain your comments. The point of the project is that I have a client who uses a number of portals for...
  14. electricphp

    problem with DHTML menus in IE

    I am using the following script which works perfectly in Firefox, but in Internet Explore it's not working as expected. Basically, sometimes, the rollover effect works, and sometimes it doesn't. Also the menu rolls out slower in IE than in firefox. Any help in debugging this issue would be...
  15. electricphp

    cross domain scripting / possible with ajax

    This is no good. Your answer assumes that I would have control or access to all the portals' individual files, which I don't. There must however be a way to do this. What about accessing the login info in FF's remember me feature, if that data can be somehow manipulated.
  16. electricphp

    cross domain scripting / possible with ajax

    I've been scratching my head for many hours trying to figure out if this is possible. Basically I have a client who uses a number of different web portals, and he wants a remote login system. Essentially he would log into his site, and we would have a page with links for each one of these...
  17. electricphp

    Problem with LIKE selection in query

    How would i need to modify the following query SELECT ads.* FROM ad_categories INNER JOIN ads ON ads.id = ad_categories.ad_id WHERE ad_categories.cat_name = 'Wine and Cheeses' If I had another table named ad_cities, that has the fields "ad_id" and "city" in it, and has the same...
  18. electricphp

    Problem with LIKE selection in query

    ok thanks for your help
  19. electricphp

    Problem with LIKE selection in query

    yes it does, there is one other thing and since i have to reformat the whole db I may as well do it right. There is another table called subcategories. This table is a subset of each individual category, so it references the categories table. So in reality I'm supposed to pick records that...
  20. electricphp

    Problem with LIKE selection in query

    what is the point of creating this table? CREATE TABLE categories ( cat_name VARCHAR(99) NOT NULL PRIMARY KEY ); if the category names are contained in the table ad_categories, which contains an id field that can be referenced.

Part and Inventory Search

Back
Top