In IE4(?)+ you can try using an .hta (HTML Application) file. This is only a viable solution in limited situations, since the browser forces you to download or open the file, much like an EXE. So it will work well for a corporate intranet app, but probably not for public internet consumption...
I wrote a solution, but only tested it with IE6. My Changes are in bold:
<html><body>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<script language="JavaScript" src="overlib2.js"></script>
Welcome, please login below:<BR><BR>
<FORM NAME="Login"...
I am just curious, but why do you want to set focus to a div element?
Anyways, on a whim, I tried the code below; it appeared to work:
<div tabindex="0" id="benluc">Here you go</div>
<script>
document.getElementById("benluc").focus();
</script>
The key is the addition of tabindex="0" to...
I know this isn't a 'turnkey' ::pukes:: solution, but it might shove you in the right direction: Ashlet IT - Remote Scripting.
Hope that helped,
jared@eae.net - http://webfx.eae.net
Among other differences, JScript's 'reflection' capabilities will show significant differences:
BR = "<br>";
literal_string = "";
object_string = new String();
document.write("typeof(literal_string) is " + typeof(literal_string)+BR);
document.write("typeof(object_string) is " +...
Whenever I attempt to add a web server that is not local (ie, that is over the internet) in the Server Explorer window, I receive an error to the effect of:
You have entered an Internet address or an IP address outside the local domain. Connections to Internet addresses or to external domains...
Wow. What a useful feature to leave out of such a great productivity tool. What on earth were they thinking :-/ ?
Thanks for answering though.
jared@eae.net - http://webfx.eae.net
Hello, thank you for taking the time to read this.
I am coming to C# from a background in heavy dhtml and asp work. My tool of choice when working with those technologies has always been HomeSite (originally an Allaire product, but it has since been picked up by Macromedia).
One of the...
Thank you for the advice; it certainly does make sense. I do, however, still look forward to finding a proven design method that a standalone programmer can use...
Thanks again,
Jared N
jared@eae.net - http://webfx.eae.net
I'm not sure this is the proper forum for this question, so my apologies in advance if it indeed is not...
When constructing software in an object-oriented (or really any) fashion, one must implicitly or explicitly use a design process to structure their tasks; ie, vision, requirements...
Your code is a little confusing, but maybe you want to do something like this:
theelement = document.forms[count].elements[count]
theelementtype = theelement.type
theelementname = theelement.name
That should give you the two variables that you want, IF I understand your problem correctly...
For which version of javascript are you writing this application? I'm not familiar with "int" being a valid javascript keyword.
Anyways, the statement means:
Create a (n integer) variable called "newSize". If the value stored in the variable "size" is greater than...
This works for me:
teamleader = new String(Request("teamleader"))
if(teamleader=="undefined")
{
teamleader = "" //default value
}
Note well, the .QueryString isn't necessary (though I bet it trivially increases performance). Note also, I convert the Request...
Oh. But the purpose of the aforementioned line of code is to check to see if document.getElementById exists. If it does exist, then you know that the browser being tested has at least minimal DOM capabilities.
jared@eae.net - http://webfx.eae.net
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.