spsarolkar
Members-
Content Count
5 -
Joined
-
Last visited
Everything posted by spsarolkar
-
Adding Rows & Columns In Html Table Using Javascript
spsarolkar replied to Inspiron's topic in Programming
you can add row dynamically using javascript dom <html><head><script type="text/javascript">function insRow(){var x=document.getElementById('myTable').insertRow(0);var y=x.insertCell(0);var z=x.insertCell(1);y.innerHTML="NEW CELL1";z.innerHTML="NEW CELL2";}</script></head><body><table id="myTable" border="1"><tr><td>Row1 cell1</td><td>Row1 cell2</td></tr><tr><td>Row2 cell1</td><td>Row2 cell2</td></tr><tr><td>Row3 cell1</td><td>Row3 cell2</td></tr></table><br /><input type="button" onclick="insRow()" value="Insert row"></body></html> -
Problems With Trying To Validate Ajax Called Html
spsarolkar replied to sonesay's topic in Programming
There are two ways to do it you can use web developer plugin for firefox which allows you to see generated source code,you can download it here https://addons.mozilla.org/en-US/firefox/addon/web-developer/ you can use php function htmlentities() to print the output and validate it with dreamweaver -
Swapping First And Last Nodes In A Linked List by only moving pointers
spsarolkar replied to nroot1's topic in Programming
I have rewritten your function node *firstNode = s; node *lastNode = s->p; // make first node as last node firstNode->p = NULL; //make last node as first node lastNode->p = firstNode; } else { node *cur = s; //reverse order node *firstNode=s; node *secondNode=s->p; node *secondlastNode=NULL; while (cur->p != NULL) { if(cur->p->p==NULL) { secondlastNode=cur; } cur=cur->p; } //make firstNode as last node firstNode->p=NULL; secondlastNode->p = firstNode; //make make last node as first node s=secondlastNode->p; s->p=secondNode; } } _linenums:0'>void reverse( node * & s) { if(s == NULL || s->p == NULL) //0 or 1 node { //do nothing } else if(s->p->p == NULL) //2 nodes { node *firstNode = s; node *lastNode = s->p; // make first node as last node firstNode->p = NULL; //make last node as first node lastNode->p = firstNode; } else { node *cur = s; //reverse order node *firstNode=s; node *secondNode=s->p; node *secondlastNode=NULL; while (cur->p != NULL) { if(cur->p->p==NULL) { secondlastNode=cur; } cur=cur->p; } //make firstNode as last node firstNode->p=NULL; secondlastNode->p = firstNode; //make make last node as first node s=secondlastNode->p; s->p=secondNode; }} -
You have to set focus to the flash when window loads, you can use on load event of window to to do it, as followswrite your body tag as follows <body onload='setFocus()'>//html content</body>and in javascript write function function setFocus(){document.getElementById('myFlashId').focus();}replace 'myFlashId' with your id.
-
Can i see my house from outer space? Outer Space In Google Earth (new)
spsarolkar replied to iGuest's topic in The Internet
There are plent other softwares which are similar to google earth you can try out the following links:- World Wind - an open source 3D Earth-viewing software developed by NASA that accesses NASA JPL database. World Wind lets you zoom from satellite altitude into any place on Earth. Leveraging Landsat satellite imagery and Shuttle Radar Topography Mission data, World Wind lets you experience Earth terrain in visually rich 3D, just as if you were really there. You can download World Wind here Blue Marble: Next Generation offers greater spatial detail of the surface and spans a longer data collection period than the original. The original Blue Marble was a composite of four months of MODIS observations with a spatial resolution (level of detail) of 1 square kilometer per pixel. You can download blue marble from here