function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MaxFrielMaxFriel 

onLoad actionSupport of an iframe

There is a lot more going on in my VF page and controller but basically I have this iframe in a repeat section...

<apex:iframe >
<apex:actionSupport event="onLoad" action="{!id}">
<apex:param name="firstParam" assignTo="{!plId}" value="{!aciId + '.' + aci['Field_Name__c']}"/>
</apex:actionSupport>
</apex:iframe>

 And this code in the controller...

public String plId {get;set;}

public void id(){
 System.debug('plId:' + plId);
}

 When I load the page, that statement never gets written to the logs.  What I am trying to do here is pass in a parameter for a get method later in the loop so a single get method could return different values.  Is this the best way to do this?  Why isn't it working? 

sfdcfoxsfdcfox

I don't believe that you can call functions on a remote VF page that way. You could, of course, add the ID as a URL parameter, which should work nicely.