Ask a Question related to ASP.NET General, Design and Development.
-
John E #1
ASP.NET /JavaScript Problem - Image onload
I have created an ASP.NET user control (.ascx) which controls whether to
show or hide a bunch of divs on my page. This event is controlled through
the onlclick event of an image (with each ASCX). The hiding and showing
works part works fine.
What I can't get to work is the initialisation of each separate div/control.
My initial thoughts were to use the onload event of each image, but I can't
seem to get it to fire.
The image HTML tag in the .NET user control is:
<img src="e.gif" id="expand" onclick="expand_div(<%=_expand_div_id%>,
this);" onload="Test();" />
The onload attribute seems to do absolutely nothing. I've tried it without
empty parenthesis at the end but it makes no difference.
How do I get the onload event in the image to work so that it initialises
each div?
John E Guest
-
XML onLoad problem
I'm calling an external xml file and loading it into Flash. I can only pull the varables out in the onLoad function. Here it is. var... -
control emitting javascript for document.onload
If a control needs to execute some client-side script when the document is loaded, it's easy enough to register a script. Using... -
Sending email, problem with onLoad question
Everyone, I have a form that was created in Flash MX2004 Professional. The form is located on a layer called form and startes on frame 10. The... -
Javascript swap image problem
Help me understand how to start. Lets rock.. this is the problem.. Script --> ---------------------------------------------------- <script>... -
swap image onload?
Richard: Yes. Use the same method you would use for normal frames. -- Murray --- ICQ 71997575 Team Macromedia Volunteer for Dreamweaver MX...



Reply With Quote

