Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class test2 {
- ApexPages.StandardController stdCtrl;
- public List<Prijava__c> links {get; private set;}
- public String contIdChosen {get; set;}
- public test2(ApexPages.StandardController std) {
- stdCtrl=std;
- links = [
- select tudent__r.Name, tudent__r.Priimek__c
- from Prijava__c
- ];
- }
- }
- <apex:page standardController="Prijava__c" extensions="test2">
- <apex:includeScript value="{!$Resource.jQueryMin}"/>
- <div id="d1">tmp1</div>
- <div id="d2">tmp2</div>
- <apex:form id="i1">
- <apex:pageBlock id="i2">
- <apex:pageBlockTable value="{!links}" var="item" id="i3" >
- <apex:column headerValue="Ime" >
- <apex:outputField value="{!item.tudent__r.Name}" />
- </apex:column>
- <apex:column headerValue="Priimek">
- <apex:outputField value="{!item.tudent__r.Priimek__c}" />
- </apex:column>
- </apex:pageBlockTable>
- </apex:pageBlock>
- </apex:form>
- <script type="text/javascript">
- $(document).ready(function() {
- document.getElementById("d1").innerHTML+="TEST";
- var data=document.getElementById('{!$Component.i1.i2.i3}');
- alert(data+" "+data.value);
- });
- </script>
- </apex:page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement