|
You are using the web page in a quite peculiar way. You are using it as if it were a console window, not a web page. There is no way to clear the screen, at least not the way you are thinking of.
The normal way for a web page to operate is that the entire page is created, then the user interacts with it. If you want to change the contents of the page as the user interacts with it, you create elements and add them into the document structure of the page. You can also hide or remove objects from the document.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks Guffa,
I had thought as much. That was the method the TAFE lecturer asked us to use. You are right, once the page is written, it has to stay there.
Again, thank you for your time and advice.
Moggers69
I'm new here, so please forgive my ignorance.
|
|
|
|
|
In line with what you said, how then would I make the page display a renewable console that opens, displays the results, waits for confirmation of closure or repetition? This is at the moment, beyond my experience.
If it's too much inconvenience, thanks for your time all the same, I do appreciate any help.
Moggers69
I'm new here, so please forgive my ignorance.
|
|
|
|
|
Here's a little example. It's a place holder and a form. When you press the button the text is added in an element in the place holder.
<html>
<head>
<title>Demo</title>
<script type="text/javascript">
function Add(text) {
var placeHolder = document.getElementById('List');
var obj = document.createElement('div');
obj.innerHTML = text;
placeHolder.appendChild(obj);
}
</script>
</head>
<body>
<div id="List"></div>
<form>
<input type="text" name="Text">
<input type="button" value="add" onclick="Add(this.form.Text.value);this.form.Text.value='';">
</form>
</body>
</html>
---
b { font-weight: normal; }
|
|
|
|
|
Many thanks Guffa,
Your code is not what I was thinking about, but it solves 3 of my other problems before I even ask... are you psychic?
muy gracias muchacho ,
l8r
Moggers69
I'm new here, so please forgive my ignorance.
|
|
|
|
|
I'm not sure if I understand the problem correctly but here goes my 2c
You could put the whole page in a <table> like this:
<body><br />
<table id="some_name"><br />
put your stuff here in tr/td..<br />
</table><br />
</body>
and in JS, just do something like
getElementById('some_name').visible = false;
That should do it..
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
http://sprd.12.forumer.com
Our forum features..err..nothing. You're welcome to contribute.
In the end, war is not about who's right, it's about who's left.
|
|
|
|
|
Thanks Titan,
That comes a lot closer to the mark than my efforts.
I appreciate your help
Moggers69
I'm new here, so please forgive my ignorance.
|
|
|
|
|
Hm.. I'm not sure this will work, but you might try it anyway:
<table id="the_table"><br />
-your stuff inside-<br />
</table>
and in JS, maybe you could do something like:
document.getElementById('the_table').innerHtml = "";
and then start writing in it again, with something like:
document.getElementById('the_table').innerHtml += "<tr><td>stuff</td></tr>";
It's just a theory, but do let me know if it works
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
http://sprd.12.forumer.com
Our forum features..err..nothing. You're welcome to contribute.
In the end, war is not about who's right, it's about who's left.
|
|
|
|
|
To Guffa, T1TAN, et al:
Many thanks for your interest, attention and VERY helpful hints and directions. I have gained a better understanding of the language, its limitations and capabilities, all due to your splendid help.
In broad answer, the TAFE course involves JavaScript. This will show you just how dumb some guys (pointing at myself here) can be. I had no knowledge that there was even a difference between JavaScript and JScript... yeah, I know, REAL blonde....
Again, thanks,
I shall try not to waste everyones time with such trivial questions in the future
appreciatively yours,
Moggers69
I'm new here, so please forgive my ignorance.
|
|
|
|
|
Hi, there,
I would like to know how to Highlight the items in the listbox during onmouseover event. I want it to look the same as the choice list box, in which the mouseover will highlight the item.
when I hold on left mouse button and move cursor over list box, the mouseover will highlight the item. How can I do it without holding the left mouse button?
Is there a way to do this?
Thank you very much.
bin
|
|
|
|
|
I am getting the following error message in Security tab of the Web Site Administration tool:
Value cannot be null. Parameter name: virtualPath
I have only noticed this error when I host the web site on my local IIS in a directory that is not under c:\inetpub\wwwroot\. That is, I have created a separate folder that I web shared to use as the web application folder. The web application runs fine, showing that the web shared folder is set up correctly on the local IIS, but I cannot set up the security / users/ roles in the Web Site Admin tool. I do not observe this problem if the web site folder is under c:\inetpub\wwwroot. Has anyone come accross this problem?
|
|
|
|
|
Hi,
I've this error when I directing to another page.
Unable to find script library '/aspnet_client/system_web/1_1_4322/WebUIValidation.js'. Try placing this file manually or reinstall by running 'aspnet_regiis -c'.
I've done reinstall many times but I still got this message. I replace the file manually and still doesn't solve. I replace it in 'C:\inetpub\wwwroot'. Is this the correct location ?
Please help.
Thanks in advance,
Chiari
|
|
|
|
|
it should be placed in the folder -
C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_4322 (if the path doesn't exist try creating it)
where is the WebUIValidation.js file currently?
|
|
|
|
|
There is already has a copy at the location you mentioned. But it still said it can't find the location.
Thanks,
Chiari
|
|
|
|
|
Hi,
I'm trying to write something on Session Timeout. I want to display a message box before it redirects the page to the login page. I'm using .ASP net.I have configure the web.config under the sessionstate as timeout 1 min, but the Session_OnEnd event I wrote doesn't fire. Can anyone help me on it?
Thanks in advance,
Chiari
|
|
|
|
|
Thats because the session hasn't ended and just timed out. If you close the browser window you should be able to see the event being fired.
|
|
|
|
|
Closing the browser window doesn't fire the Session_OnEnd event.
---
b { font-weight: normal; }
|
|
|
|
|
You can't interact with the user in any way from the Session_OnEnd method. You can't display a message box. You can't redirect any page as there is no page that is created.
Once the page is sent to the browser, the server knows nothing about the page. There is no connection from the server to the page, so you can't do anything to the page once it is sent to the browser. It doesn't help that the page is still shown in the browser, the server doesn't know that.
I'm sure that the Sesson_OnEnd event fires just fine, but you are trying to do something that simply is not supported by the http protocol.
---
b { font-weight: normal; }
|
|
|
|
|
Is there a solution for me? I want the message box to be show and redirect to the login page after the session time out.
Thanks,
Chiari
|
|
|
|
|
You can't send anything from the server to the client without the client asking for it.
You could request the status from the server periodically, but then the session would never time out, so you would have to manage the timeout completely by yourself.
---
b { font-weight: normal; }
|
|
|
|
|
Hello I have downloaded your web based active directory login and need some help.
when I try to lunch it I am told:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/hrdev/login/login.asp, line 6
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
Can anyone please help me with this?
Thank you
Heather
|
|
|
|
|
Could you tell us more about your environment i.e. what version of iis you are using and what version of windows? Also post the code were the error is happening.
|
|
|
|
|
Hi everybody,
I hava a IFrame on my web to write in it. When it page load I call a JavaScript function to change designMode property:
mytext.document.designMode="On";
I want to capture onkeyup event so I have in the same function:
mytext.attachEvent("mytext.document.onkeyup", funcion());
The problem is this event only throw when page is loading. Then, writing in IFrame event does not throw. I try this too, but does not work:
mytext.document.onkeyup = funcion();
Thank you very much,
iAtreyu
|
|
|
|
|
When you want to reference a function, skip the parentheses. If you put the parentheses after the function name, you will be calling the function and then put the return value of the function in the event reference.
---
b { font-weight: normal; }
|
|
|
|
|
This was the problem.
Thank you very much.
iAtreyu
The computers are silly very rapid
-- modified at 9:54 Thursday 6th October, 2005
|
|
|
|