Click here to Skip to main content
15,921,694 members
Home / Discussions / Web Development
   

Web Development

 
Generalcss compatibility Pin
23-Dec-00 23:22
suss23-Dec-00 23:22 
GeneralEncoding Pin
23-Dec-00 21:37
suss23-Dec-00 21:37 
GeneralCSS usage Pin
18-Dec-00 8:02
suss18-Dec-00 8:02 
GeneralRe: CSS usage Pin
Chris Maunder18-Dec-00 9:57
cofounderChris Maunder18-Dec-00 9:57 
GeneralRe: CSS usage Pin
10-Jan-01 16:07
suss10-Jan-01 16:07 
GeneralASP: FSO how to check if a file exists Pin
13-Dec-00 1:55
suss13-Dec-00 1:55 
GeneralRe: ASP: FSO how to check if a file exists Pin
Chris Maunder18-Dec-00 11:43
cofounderChris Maunder18-Dec-00 11:43 
GeneralJavascript object wierdness Pin
11-Dec-00 12:43
suss11-Dec-00 12:43 
I'm building an app in which I am dynamically creating a bunch of SPAN elements. I'm doing this by creating an object, which makes its own DIV element in which these SPAN will live (a menu app in case you haven't guessed).

The SPANs are made in a method of the menu object. Here's the wierdness:

I can set properties with ease: SPANelement.text = sometext
But when I try to set the onmouseover or any other event, the eventhandler only stays in scope (rather the assignment of said eventhandler) within the method. Once my menu object has finished creating the SPANs, the eventhandlers are "forgotten."

here's a snippet of what I've done.

funciton addItem(itemName, otherStuff)
{
itemText = "";
menu.innerHTML += itemText;
newItem = eval(itemName);

Smile | :) newItem.text = "Hiya";
Smile | :) newItem.otherProperty = "Interesting info";
Frown | :( newItem.onmouseover = itemOver; // itemOver is my handler
Frown | :( newItem.onmouseout = itemOut; // itemOut is also mine

}

menu1.addItem("item1", otherStuff);

any thoughts?
TNX
GeneralASP with MS Access: Username & Password Access Pin
ShAGgE_InC.7-Dec-00 12:00
ShAGgE_InC.7-Dec-00 12:00 
GeneralASP Pin
Amol Pargaonkar6-Dec-00 19:12
Amol Pargaonkar6-Dec-00 19:12 
GeneralASP as interface for a Win32 APP Pin
Alexandre Wendt Shima1-Dec-00 5:18
Alexandre Wendt Shima1-Dec-00 5:18 
GeneralHOWTO: Run an App from a web page Pin
jerry0davis29-Nov-00 22:44
jerry0davis29-Nov-00 22:44 
GeneralJavaScript Menu does not work in Netscape Pin
Maureen25-Nov-00 17:07
Maureen25-Nov-00 17:07 
GeneralRe: JavaScript Menu does not work in Netscape Pin
Chris Maunder28-Nov-00 5:54
cofounderChris Maunder28-Nov-00 5:54 
GeneralRe: JavaScript Menu does not work in Netscape Pin
Santosh Rao19-Aug-01 20:10
Santosh Rao19-Aug-01 20:10 
GeneralHelp: CGI Programs using MFC can't find DLLs Pin
24-Nov-00 3:02
suss24-Nov-00 3:02 
GeneralRe: Help: CGI Programs using MFC can't find DLLs Pin
28-Nov-00 6:25
suss28-Nov-00 6:25 
GeneralBrand new to Perl and need HELP!!! Pin
Maureen17-Nov-00 8:30
Maureen17-Nov-00 8:30 
GeneralRe: Brand new to Perl and need HELP!!! Pin
skfnmuislædmufaæoi17-Nov-00 13:10
skfnmuislædmufaæoi17-Nov-00 13:10 
Generalcgi/perl free internet server Pin
17-Nov-00 1:29
suss17-Nov-00 1:29 
Generalhere it is Pin
28-Nov-00 18:47
suss28-Nov-00 18:47 
GeneralThanks ~~~ Pin
28-Nov-00 23:30
suss28-Nov-00 23:30 
GeneralThat is all right,Can we be friends? Pin
29-Nov-00 13:51
suss29-Nov-00 13:51 
GeneralBrowser Compatability - need help Pin
Lior4-Nov-00 21:53
Lior4-Nov-00 21:53 
GeneralIncluding asp content from another server Pin
nprice19-Oct-00 3:06
nprice19-Oct-00 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.