|
||||||
| JavaScript and CSS Extensible Markup Language, Java Script, and CSS questions here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||
|
Ahh, that is easy. I had this in class. I'll paste the info.
HTML Code:
<html> <head> <title>"Dynamic Window with a URL"</title> <script language="JavaScript"> <!-- Hide var myBars = 'directories=yes,location=yes,menubar=yes'; myBars += ',status=yes,titlebar=yes,toolbar=yes'; var myOptions = 'scrollbars=yes,width=380,height=440,resizable=yes'; var myFeatures = myBars +','+myOptions; function openWindow() { var newWin = window.open('', 'myDoc', myFeatures); with (newWin.document) { writeln("<html>"); writeln("<head>"); writeln("<title>Dynamic HTML Page</title>"); writeln("<script language='JavaScript'>"); writeln(" function msg() {"); writeln(" alert('Hello'); }"); writeln("</script>"); writeln("<style type='text/css'>"); writeln(" body { font-family: arial;"); writeln(" font-size: 10pt; "); writeln(" color: yellow; "); writeln(" background: red; }"); writeln("</style>"); writeln("</head>"); writeln("<body>"); writeln("<h3>This is a Dynamic Page</h3><br />"); writeln("<br /><br />"); writeln("<form name='form1'>"); writeln("<input type=button value='Display Message'"); writeln("name='DisplayMessage'"); writeln("onclick='msg()'>"); writeln("<br /><br />"); writeln("<input type=button value='Close Window'"); writeln("name='CloseWin'"); writeln("onclick='self.close()'>"); writeln("</form>"); writeln("</body>"); writeln("</html>"); close(); } } // --> </script> </head> <body> <form name="form1"> <input type = "button" name="openWin" value="Open Window" onclick="openWindow()"> </form> </body> </html> This will create a dynamic page which is what I believe you are requesting. Let me know. |
|
|||||
|
Cheers chan! Wasn't 100% wha I was looking for, but it DOES allow me to do what I wanted so thats awesome!
Thanks!
__________________
. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Programming Languages: Java, VB6, VB2005 (.NET2) Web Languages: HTML, CSS, JS Website: To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Opportunity is missed by most people because it is dressed in overalls and looks like work. |
|
|||||
|
What else do you need? I may be able to help.
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Don't hesitate to ask any questions that you have! Check out our To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ! |
|
|||||
|
Well, it wasnt what I had thought of originally, but it turns out this works BEAUTIFULLY. All I had to do was at "writeln(tt);" to add the tacktime to the window.
However, I do have another question and I guess ill just stick it here. I'm trying to insert text into a table. Basically, instead of opening a new window, to insert the text into a table. I guess I would do this by adding a textarea into the table and then calling it to write into this. I think I know how to do this but, by all means, send me the code. Also, when done, I'll stick up a link to the finished content. Just so you can see how it worked out Thanks guys!
__________________
. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Programming Languages: Java, VB6, VB2005 (.NET2) Web Languages: HTML, CSS, JS Website: To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Opportunity is missed by most people because it is dressed in overalls and looks like work. |
| Sponsored Links |
|
|
|
|||||
|
OK, well screw what I said above. I kinda got it working but now my problem is that when I insert the text into the textfield it disappears the second. And I have no idea why!!!
__________________
. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Programming Languages: Java, VB6, VB2005 (.NET2) Web Languages: HTML, CSS, JS Website: To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Opportunity is missed by most people because it is dressed in overalls and looks like work. |
|
|||||
|
How are you writing it? It should look like:
HTML Code:
document.formName.textBoxName.value = "Text"; HTML Code:
<form name="formName"> <textarea name="textBoxName"></textarea> </form>
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Don't hesitate to ask any questions that you have! Check out our To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ! |
|
|||||
|
Cheers Jordan.
Ok the finished "product" is online here:Teknek Task Timer And I can post the code here if you want.
__________________
. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Programming Languages: Java, VB6, VB2005 (.NET2) Web Languages: HTML, CSS, JS Website: To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Opportunity is missed by most people because it is dressed in overalls and looks like work. |
|
|||||
|
Nice looking! Good Job!
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Don't hesitate to ask any questions that you have! Check out our To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ! |
|
|||||
|
Just in case anyone cares, its now all just one page and has outputs on screen rather than the dynamic window. Thanks all the same Chan - I think they look cooler bt then again, what the boss says goes!
Cheers guys!
__________________
. To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Programming Languages: Java, VB6, VB2005 (.NET2) Web Languages: HTML, CSS, JS Website: To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Opportunity is missed by most people because it is dressed in overalls and looks like work. |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ! Need urgent help ! Drawing program using cygwin | siren | C and C++ | 0 | 05-26-2007 10:51 PM |
| Creating a Custom Cursor | ahsan16 | Tutorials | 2 | 01-13-2007 05:03 PM |
| Java:Tutorial - Adding more objects to your window | John | Java Tutorials | 0 | 01-11-2007 02:09 PM |
| Java:Tutorial - Making A Window | John | Java Tutorials | 0 | 01-11-2007 02:02 PM |
| Which Linux Window Manager do you use? | Dan | General Programming | 5 | 07-03-2006 10:42 AM |
| Xav | ........ | 1276.19 |
| MeTh0Dz|Reb0rn | ........ | 1048.58 |
| morefood2001 | ........ | 879.43 |
| John | ........ | 872.39 |
| marwex89 | ........ | 869.98 |
| WingedPanther | ........ | 761.06 |
| Brandon W | ........ | 684.87 |
| chili5 | ........ | 294.12 |
| Steve.L | ........ | 216.18 |
| dargueta | ........ | 192.86 |
Goal: 100,000 Posts
Complete: 81%