vivasuzi
Programmer
- Jun 14, 2002
- 183
hello.
I want to know if this is possible b/c my boss would really like it. When we open Dispform.aspx of our list, we would like one of the fields (comments) to open up in a new window (pop up)
I know how to make the pop-up, but I don't know how to grab the data from the comments field. Is it possible to use javascript to grab data from this one field? Any ideas or help is appreciated!
Below is my javascript to make the window pop up, but right now it doesn't capture the field. I don't know if this will help but I thought it might!
*Suzanne*
I want to know if this is possible b/c my boss would really like it. When we open Dispform.aspx of our list, we would like one of the fields (comments) to open up in a new window (pop up)
I know how to make the pop-up, but I don't know how to grab the data from the comments field. Is it possible to use javascript to grab data from this one field? Any ideas or help is appreciated!
Below is my javascript to make the window pop up, but right now it doesn't capture the field. I don't know if this will help but I thought it might!
Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Rick Johnson (frj11@ev1.net) -->
<!-- Web Site: [URL unfurl="true"]http://rickjohnson.tripod.com[/URL] -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! [URL unfurl="true"]http://javascript.internet.com[/URL] -->
<!-- Begin
function popupWin() {
text = "<html>\n<head>\n<title>Pop Window</title>\n<body>\n";
text += "<center>\n<br>";
text += "Comments Text would go here";
text += "</center>\n</body>\n</html>\n";
setTimeout('windowProp(text)', 0); // delay 0 seconds before opening
}
function windowProp(text) {
newWindow = window.open('','newWin','width=340,height=250');
newWindow.document.write(text);
setTimeout('closeWin(newWindow)', 200000); // delay 100 seconds before closing
}
function closeWin(newWindow) {
newWindow.close(); // close small window and depart
}
// End -->
</script>
*Suzanne*