Dynamically Loaded user control, what javascript should I run?

Sep 28, 2011 at 5:09 PM

Hello

I have a dynamically loaded user control that has this upload control on it. The problem is that in the help file I see that I should run the following code:

 

 

<script type="text/JavaScript">
// initialize on the page load
InitUploader();

// function called BEFORE ParentDiv is reloaded
function BeforeReload(){
  DisposeUploader();
}

// function called AFTER ParentDiv is reloaded
function AfterReload(){
  InitUploader();
}
</script>
<div id="ParentDiv">
  <fjx:FileUploader ID="FileUploader1" JsFunc_Init="InitUploader" JsFunc_Dispose="DisposeUploader" runat="server">
      <Adapters>
          <fjx:FileSaverAdapter Runat="server" FolderName="UploadFolder" />
      </Adapters>
  </fjx:FileUploader>
</div>

 

 

The problem stems from a JS error I am recieving telling me that "InitUploader" and "DisposeUploader" do not exist. Is the FileUploader control supposed to create this javascript on the fly when loaded? I am a bit confused as to how to implement this, and scouring this forum and others has yielded only the above code with no additional information.

 

Help me Flajaxian-won Kenobie! You're my only hope!

Sep 29, 2011 at 2:46 PM

Still struggeling with this, any thoughts or assistance would be most appreciated!

 

Thanks!