Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9236

window[funcName] showing undefined in javascript error in EP 7.3

$
0
0

Hi All,

 

In JavaScript am using this code, I am calling this method using button click.

I am getting value as undefined at window[funcName].

 

This JavaScript code is working in EP 7.0, But its not working in EP 7.3,

 

function ownerSelect(){

var funcName = htmlb_formid+"_getHtmlbElementId";        

func = window[funcName];     // func value is undefined                          

var val1 = eval(func("teParticipants"));

 

this.control = val1; // Initialize the Dropdown

this.htmlbId = this.control.id; // initialize the ID

var query = document.getElementById(this.htmlbId).value;      

}

 

In html

 

<hbj:textEdit  id="teOwners" >

              <%

                  TextEdit te = new TextEdit("teOwners");

                te.setJsObjectNeeded(true);        

              %>

   </hbj:textEdit>

 

<hbj:button  id="ownerSelect" onClientClick="ownerSelect()" />

 

 

Please help me in this error..

 

Thanks & Regards,

Preethi Ande


Viewing all articles
Browse latest Browse all 9236

Trending Articles