It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming JavaScript Forum

javascript popup problem

javascript popup problem

Postby arny on Wed Jun 03, 2009 11:51 am

I am trying to print a asp.net gridview by using javascript,i've put the entire gridview inside a div element and send it to javascript file,it is working perfectly,the only problem I have is to remove the STYLE that I have in ASP page and instead add a new style in javascript file,I have this piece of code:

could anybody help me out with this problem?

var oldHTML = document.getElementById(print_area).innerHTML;
var newHTML = "<div style='background-color:Blue'>" + oldHTML + "</div>";
document.getElementById(print_area).innerHTML = newHTML;
pp.document.writeln(newHTML);
arny
 
Posts: 3
Joined: Wed Jun 03, 2009 11:40 am

Who is online

Users browsing this forum: No registered users and 6 guests