|
Man, that sounds like fun!
It depends on when you need to refresh. What is the case where you will need the clients to refresh and what is the case where they don't need to refresh?
One thought ... if all of your clients are using Windows machines then you can create the Microsoft.XMLHTTP ActiveX object with JavaScript to do a small check if the browser should refresh or not. I know you said that you don't want to overload the server with unwanted requests but if you kept it to a small "Yes" or "No" answer then it shouldn't be that taxing.
function shouldIReload() {
var obj = new ActiveXObject("Microsoft.XMLHTTP");
obj.Open('GET', 'Refresh.aspx');
obj.Send();
if (obj.responseText == "yes") {
document.location.reload();
}
}
setTimeout(shouldIReload, 1000);
This way you don't reload the entire page unecessarily and it's rather transparent to the end-user. You could even prompt the user with a confirmation box, or something friendly like that, to let the user know you are about to refresh the page and they should not crap their pants because something is happening when they didn't even click anything
The Refresh.aspx page would do a simple check of whatever criteria and only do a simple Response.Write("yes") or Response.Write("no") accordingly.
Let me know if this helps at all ...
Wally Atkins Newport News, VA, USA
|
|
|
|
|
I think that this could be helpful...
I will have to try it and I will tell you...
Thanx for the tip...
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
SQL = "UPDATE questions SET request.form("R1") = votec WHERE ID = request.form("ID") "
how do you get this to work if request.form("r1") = a1
votec is a number entering a fld with datatype of number
and request.form("ID") may be a positive or negative number
THanks in advance
|
|
|
|
|
Anonymous wrote:
how do you get this to work if request.form("r1") = a1
Is the a1 field within the same DB or a differernt DB??
Tony
"Hey" "You aint Tony"
|
|
|
|
|
a1 is a fld in the same database and table as everything else
|
|
|
|
|
Since votec is a number, and you're constructing a string, you might try an explicit cast of votec to a string representation; ie, CStr(votec) instead of merely 'votec'.
"Ask not for whom the bell tolls; It tolls for thee..."
|
|
|
|
|
Yes that will work, or you can use If Else ElseIf.
Tony
"Hey" "You aint Tony"
|
|
|
|
|
Thanks allot dudes that helped
|
|
|
|
|
I am using Session variables to control flow through a website. One ASP page tests the value of Session("update") on entry; if it's set to "No" the script allows a record to be edited, after which it changes Session("update") to "Yes" and reloads the same page. If the value is "Yes" it is supposed to Update the DB with the new values from the edit phase. The value of the session variable is initialized in global.asa using the Session_OnStart subroutine. The trouble is that this variable never gets set! The other three variables I use for other things all get initialized correctly, but this one consistently gets skipped.
Is there something about session variables that I'm missing? Is "update" a reserved word or something? Is there a smarter way to do this?
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
Dunno, but if each user is supposed to have Session("Update") initialised to "No", you could do something like:
If Session("Update") <> "Yes" Then
...do the update...
Session("Update") = "Yes"
Response.Redirect ("MyPage.asp")
End If
...other code in page...
|
|
|
|
|
That's a possibility, but I really hate the idea of leaving anything undefined, however briefly. This should be working - the variable should be set at the opening of the session. But it isn't, and the others that I define in the same section are being set correctly and reliably. Very strange and frustrating!
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
Is there any site that I can find some web template in it?
Mazy
No sig. available now.
|
|
|
|
|
Hey Mazy! Long time, no see!
Try FreeWebTemplates.com[^].
"Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom
|
|
|
|
|
Glad to see you Roger after a long time. Thanks for link.
Mazy
No sig. available now.
window.open=NS_ActualOpen;
orig_onload = window.onload;
orig_onunload = window.onunload;
window.onload = noopen_load;
window.onunload = noopen_unload;
|
|
|
|
|
What happend to my sig?
Mazy
No sig. available now.
|
|
|
|
|
Good.. thanks
I wish, I can give more votes...
I was born intelligent Education ruined me!.
|
|
|
|
|
Here is another one for you
http://www.freelayouts.com/[^]
Stephen
->->->->->->->->->->->->->->->->->->->->->
"Police arrested two kids yesterday, one was drinking battery acid, the other was eating fireworks. They charged one and let the other one off."
Tommy Cooper
|
|
|
|
|
Mazdak wrote:
Is there any site that I can find some web template in it?
http://www.templatemonster.com/[^] is one.
Paul Watson Bluegrass Cape Town, South Africa
brianwelsch wrote:
I find my day goes by more smoothly if I never question other peoples fantasies. My own disturb me enough.
|
|
|
|
|
Thanks Paul.
Mazy
No sig. available now.
|
|
|
|
|
Hi,
i want to create a htmlhelp .chm file and want to send a tcard message to a calling .exe. in order to do that i included the control
<object id="training" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="TCard" />
<param name="Button" value="Text: Ok" />
<param name="Item1" value="5555, MyText" />
<param name="Font" value="Arial,8,0,," />
Now i want to change the line <param name="Item1" value="5555, MyText" /> dynamically, but i can't manage it. it is not possible to 'appendChild' to the <object> nor is it to do it via 'document.all.training.Item1.value="0, NewString"...
Unfortunately the text 'MyText' seems to be limited to 255 characters in htmlhelp workshop (a further problem).
Does anybody know why?
Thyx
Steve
|
|
|
|
|
sorry, i did not preview my question and so the above message isn't legible.
PARAM name="Command" value="TCard"
PARAM name="Button" value="Text: Ok"
PARAM name="Item1" value="5555, MyText"
PARAM NAME="Font" VALUE="Arial,8,0,,"
the PARAM Tags to the OBJECT. I want to replace the 'Item1' dynamically
|
|
|
|
|
If u r using ASP....
swes wrote:
PARAM name="Item1" value="5555, MyText"
PARAM name="<%=varName%>" value="5555, MyText"
I was born intelligent Education ruined me!.
|
|
|
|
|
Hello all,
Im sorry, I know this is going to be a totally stupid, but I rarely do html, and im so frusterated. How can I put 5 spaces in this title:
Getting StartedResource Accountability Course
I want there to be 5 spaces between getting started and resource accountability course.
Thanks so much,
Ryan
|
|
|
|
|
<div ID="dHdr" style="position:absolute;top:-42px;left:170;width:600;height:30; visibility:hidden;" class="MainHdr"><span STYLE="color:FFCC00;">Getting Started</span>Resource Accountability Course</div>
|
|
|
|
|
Try putting the space character - & nbsp; (without spaces) for 5 times
I was born intelligent Education ruined me!.
|
|
|
|