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
*...
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...
<!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)
{...
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>';
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="#"...
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 =...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.