Good day,

I have a problem by running prototype in salesforce visualforce page,
which i unable to understand and have some doubts

Below code is intend to allow user to select drop down list and able
to update <div> with value in drop down list.

Below code only able to run and call out alert on "Call 2...", it seem
like ajax.updater is not calling, anyone have idea on this, what is
wrong in my code?

Thank you for your guidance in advance !

Coding :
<apex:includeScript value="{!$Resource.jsr_class}"/>
<apex:includeScript value="{!$Resource.prototype}"/>
<apex:includeScript value="{!$Resource.scriptaculous_builder}"/>

function doTest()

                var tempStr = $F('j_id0:j_id3:prm_partnername_list');

                if(tempStr != '')
                        alert('call 1...');


        function updater(id, URL)
                var optionStr =
                        method : 'get',
                        onSuccess : function(){
                                alert('calling success....');

                alert('call 2...');
                new Ajax.updater(id, URL, optionStr);
                alert('call 3...');


<apex:form >

        <table width="100%" height="400" cellpadding="0" cellspacing="0"
border="0" style="background: #F3F3EC">
                        <td align="left" valign="top">number</td>
                                <apex:selectList id="prm_partnername_list"  
onchange="doTest();" >
                                <apex:selectOptions value="{!partnerNameList}"/>




You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to