|
hi:
now,i want use javascript to break a table into two tables like below:
<table id="t1">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</table>
now,i mean that,i want add html code of "</table><table>" in "</tr><tr>",change the table of "t1" into two tables.
how can i do with javascript?
thx
One is never too old to learn
|
|
|
|
|
You can't. You have to add another table to the page and move the rows into it.
What is it that you are trying to accomplish, really?
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Hi,Guffa,thanks for your answer.maybe i know how to do it.;)
One is never too old to learn
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
<script type="text/javascript">
function createTable(rows,cols){
var table = document.createElement("TABLE");
var newAttr = document.createAttribute("border");
newAttr.nodeValue = "1px"
table.setAttributeNode(newAttr);
for(var i=0;i<rows;i++){
var row = document.createElement("TR");
for(var j=0;j<cols;j++){
var cell = document.createElement("TD");
cell.innerHTML = "Row : " + i + "Col : " + j;
row.appendChild(cell);
}
table.appendChild(row);
}
showThisInBody(table);
}
function showThisInBody(obj){
document.body.appendChild(obj);
}
</script>
</head>
<body>
<input type="button" onclick="createTable(10,2);" value="createTable(10,2)">
</form>
</body>
</html>
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
Please vote the message if it's useful.. Thanks.
|
|
|
|
|
Hello,
im trying to register a new website under IIS,but when i create DirectoryEntry object like this:
string IISPath = "IIS://" + ConfigurationManager.AppSettings["ServerName"].ToString() + "/W3SVC/1/Root";
DirectoryEntry oDE = new DirectoryEntry(IISPath);
and then try to check if it was created:
DirectoryEntry.Exists(IISPath);
application throws an exception:
Unknown error (0x80005000)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Unknown error (0x80005000)
i thought this:
http://msdn2.microsoft.com/en-us/library/ms180891(vs.80).aspx would help,but i could do nothing with that primary token maybe i understood it not properly
Can anyone help,plz?
thenk You for attention
|
|
|
|
|
|
thnx,but the code i have is almost the same...but it still throws the exception
|
|
|
|
|
|
thanx,does that mean that smth is wrong with windows on server,not with code?..But i've got win 2003 server there,not 2000..:(So,still have no solution
|
|
|
|
|
Is anyone familiar with seam cropping?
How new is this?
|
|
|
|
|
You mean that seam-carving demo a few months back? Pulling out a minimum-entropy line from an image? AFAIK its within 3 months old. Probably patented up the wazoo too
|
|
|
|
|
Yep thats the one...
And patents for sure. Do you think its possible to seam carve a website to make it smaller but still active and usable??
|
|
|
|
|
Hrmmm. Typically websites are already quite structured. The information isnt usually that "spatial" compared to a photo.
I don't think that seam carving would be the technique to reduce a page's physical size.
If this is your website you could try messing around with an "importance" factor for each piece of content - and then use some kind of dynamic layout algorithm. Laying out content based on importance using a squarified treemap algorithm may have interesting results. Then you can set a minimum importance threshold to reduce the data needed.
|
|
|
|
|
Hi,
I have a demo site up and would like to be certain that if I have the following in my page that it will definately show not show up in a search engne:
What else do I need to add to be 110% sure?
Regards
|
|
|
|
|
I think you can specify the blocked page in robots.txt..
|
|
|
|
|
Create a robots.txt file in your root directory then just write these line in it:
User-agent: *
Disallow: /
This will prevent search engines like Google, Yahoo, Msn and all those who respect Robots.txt Protocol crawling your web site.
Hope it helps !
AliAmjad(MCP)
First make it Run THEN make it Run Fast!
|
|
|
|
|
So what about search engines that do not respect robots. Would it help him to put the website in a password protected area? Or is that too much?
|
|
|
|
|
It's just a protocol and it entirely depends on the Bot whether it supports it or not and those who doesn't support it called Bad Bots. But to really protect your files from Bad bots you can setup Spider traps etc.
AliAmjad(MCP)
First make it Run THEN make it Run Fast!
|
|
|
|
|
Hey,
I'm pretty new in programming ASP.NET and C# in general so my question might be pretty easy for some of you.
I created an ASP.NET Webform. On the server, that will host the page there's another Windowsapplication running. I need to use some data of the Windowsapplication in my ASP.NET page. How do I get access to the data of the Windowsapplication? Is there any possibility that my Webform can communicate with the Windowsapplication? The webform and the winform are both written in C#.
Thanks in advance
|
|
|
|
|
Ideally you would factor the business logic of the windows app into a dll which your web app could also call.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
I have to change the grid row color dynamically by using java script. I am using Infragistics grid.
activeGridRow = igtbl_getActiveRow("UltraWebGrid1");
I got the active grid row by using the above code.
But I dont know how to change the color dyanamically.
I have tried in so many ways such as
activeGridRow.element.sytle.color="red";
activeGridRow.element.style.backgroudcolor="red";
activeGridRow.element.currentStyle.color="red"
activeGridRow.element.currentStyle.backgroudcolor="red";
activeGridRow.element.runtimeStyle.color="red"
activeGridRow.element.runtimeStyle.backgroundcolor="red"
The above code that not in the exact syntax.
None of the above are changing the color of the active selected row.
So can you please give me the solution.
Thanks in advance.
Good Is Not Good When Better Is Expected.
|
|
|
|
|
A AntonySP wrote: activeGridRow = igtbl_getActiveRow("UltraWebGrid1");
What is the return type of igtbl_getActiveRow() function? TR?
what about them??
activeGridRow.style.bgcolor="red";
OR
activeGridRow.style.backgroundColor="red";
Note: "C" should be capital letter.
OR
activeGridRow.element.style.bgcolor="red";
OR
activeGridRow.element.style.backgroundColor="red";
|
|
|
|
|
Hi,
The above four possibilities not working.
The return type of igtbl_getActiveRow() is gridRow.
Good Is Not Good When Better Is Expected.
|
|
|
|
|
A AntonySP wrote: The return type of igtbl_getActiveRow() is gridRow.
i thought it will be TR or DIV.. it seems like so much specific for infragistic product.... As I don't have that control, I'm not able to test it out.. i have checked the online demo in their sites but i found nothing.. so, as you are the customer of infragistics, you should probably contact with their tech support..
|
|
|
|
|
Thanks Michael,
As you told will contact the customer suppport of infragistics.
Good Is Not Good When Better Is Expected.
|
|
|
|