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. linchat

    @property, magic methods and IDE's

    Not sure if this is the right forum or not. I am looking for an IDE which supports PHPDOCs @properties which allows you to document and autocomplete magic methods. /** * show off @property, @property-read, @property-write * * @property mixed $regular regular read/write property *...
  2. linchat

    Converting object name to string for eval and innertext

    I tweaked your code for my project and everything works out great. Object will pass, question is, why? Why did your code: a.onclick = function() { fillNewCol(obj.tablename, 1); } Versus my code innerHTML = '<a href="#" onclick="fillNewCol(obj,1)">Add More +</a>'; Are they not...
  3. linchat

    Converting object name to string for eval and innertext

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script> function objTable1() { this.tablename = "testTag"; this.intRowSize = 2; this.intColSize = 2; } var mainTable = new objTable1(); function makeTestTag(obj) {...
  4. linchat

    Converting object name to string for eval and innertext

    I messed up on the above post, part of it should read: This below would give me the above statement. cell.innerHTML = '<a href="#" onclick="fillNewCol(mainTable,1)">Add More +</a>';
  5. linchat

    Converting object name to string for eval and innertext

    One more thing, basically I want the result of the innerHTML statment, if you could see it on a page... To look like this. EXAMPLE: <a href="#" onclick="fillNewCol(mainTable,1)">Add More +</a> This below would give me the above statement. cell.innerHTML = '<a href="#"...
  6. linchat

    Converting object name to string for eval and innertext

    When I do that, I get an error saying obj is not defined. Maybe I should have clarified. var mainTable = new objTable1(); mainTable.tablename = "grid"; mainTable.intRowSize = 2; mainTable.intColSize = 2; /* * obj.tablename contains the name of a table. */ function test(obj) { cell.innerHTML =...
  7. linchat

    Converting object name to string for eval and innertext

    In the below code I have "mainTable" which is the name of an object I am using in my code. This code as it is, works fine. But..... cell.innerHTML = '<a href="#" onclick="eval(\'fillNewCol(mainTable,1)\')">Add More +</a>'; If I change it to this obj.tablename, I am getting errors. It as if...

Part and Inventory Search

Back
Top