So I am new to this stuff and I have a page with links right now that open up a new page. I want to make it so that when you click the link, an area that wasn't previously displayed on the bottom of the page. They only lead I have is in the .aspx page
CODE
<div id="checklistarea" runat="server"></div>
I am using javascript and AJAX through a ScriptManager if that matters.
Could anyone give me an idea?
EDIT:
I have this much:
At the end of my .aspx is the code above, then my VB page calls this javascript function:
CODE
function OpenChecklistForm(id,uut){
var divchklist=document.getElementsByTagName('checklistarea');
PageMethods.DisplayChecklist(id, uut, CallbackDiv, CallbackAlert, 'divchecklist')
Then the pagemethod is simply:
CODE
Public Shared Function DisplayChecklist(ByVal id As String, ByVal uutnumber As String) As String
Dim ret As String = ""
'Checklist area
ret &= "<br /><fieldset>"
ret &= "<legend>Checklist area</legend>"
ret &= "</fieldset>"
Return ret
End Function
And the callback on success function (CallbackDiv) is:
CODE
function CallbackDiv(ret,destctl){
var d=document.getElementById(destctl);
if (d){d.innerHTML=ret;}
}
On clicking the link, nothing happens. There are no errors in Firefox addon's web dev kit's error panel, and in IE, there is no errors or warnings after the click.
EDIT 2: Nevermind, got it!
This post has been edited by cdietschrun: 24 Jun, 2009 - 06:16 AM