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...
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...
In case anyone missed it, you can emulate Request.QueryString functionality (client-side) with this object that I've created:
//only properly handles querystrings in the following format:
// http://thepage.htm?mykey1=value1&mykey2=value2
function QSHandler()
{
var i,j,tmparray,strata,prlen...
I have experienced much difficulty in forcing a text file that I write to include (visible) line breaks. When I open the file in 'Notepad', the supposed line breaks appear as odd rectangluar symbols, and do not force a carraige return.
I have attempted to solve this problem with the following...
The code in question is:
function createFile(path,txt)
{
var fso,fil,srm;
fso = new ActiveXObject("Scripting.FileSystemObject");
fil = fso.CreateTextFile(path); //error here
srm = fil.OpenAsTextStream(ForWriting,TristateFalse);
srm.Write(txt);
srm.Close();
}
The error states...
Me and my friend (erik arvidsson) came up with this. Just make sure you remember that if you click a button or soemthing, the cursor position is lost, so you need to do it onkeydown or something like that :
function getCursorPosition(obj)
{
var selrange,r;
selRange =...
Not sure if anyone is interested, but this should allow you to set the cursor position in any text input element ( textarea, various input types, others? ).
/*
obj is the element object
pos is the position in the string the cursor should appear
*/
function setCursor(obj,pos)
{
if(pos<0) throw...
Please visit all the links too :-) It's important that we as developers start looking at it this way!
http://www.scottandrew.com/index.php jared@aauser.com - http://webfx.eae.net
everyone should take a look at:
http://webfx.eae.net/
It has some very nice advanced javascript articles and some really cool widgets, including my first addition to the webfx widget set, a dhtml ComboBox. jared@aauser.com
This discovery amazed me. Apparently, in Netscape 6, all HTML elements inherit from a base object called HTMLElement. Because of this, we can add methods to this base object using prototype, and all of our elements will have these methods(/properties?) available to them. For a simple example...
We are currently involved in a project to do data base reporting and would like to use a pivot table interface. Does anyone know of any JAVA based pivot table componets available? jared@aauser.com
Let me start off by saying Im new to this whole Java thing.
All right, heres my problem:
public String encryptIt(String txt,int key)
{
int len = txt.length();int dx;String xi;
String numstr = "";Random r2=new Random();
char chararray[] = txt.toCharArray()...
Anyone know what Netscapes version of document.offSetWidth is? Any help would be great...
jaredn
jared@aauser.com
ps sorry i havent been here to help in a while, been reaaallllyy busy
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.