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 :
[quote]
<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');
                alert(tempStr);

                if(tempStr != '')
                {
                        alert('call 1...');
                        updater('j_id0:j_id3:thePanel', 
'https://cs1.salesforce.com/apex/
my_test?sfdc.tabName=01rS00000004drs');

                }
        }

        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...');
        }


        </script>

<apex:form >



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

                </td>

                </tr>
        </table>



</apex:form>
[/quote]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to