+ Start a Discussion
amarnijeramarnijer 

How to pass value form a page ( having inside a iframe) to a visualforce page?

I have a home page component at left side which shows a tree view of a logged in user and his subordinates. When User choose some users from the tree using checkbox and click a button below, I can get the Ids of all selected user. In the right side of the page I have a Custom Visualforce Page, I want to pass the Selected User Ids to the page having in right side. I am doing it wsing Javascript (top.window.location.href = "{!newUrl}"). But when The {!newUrl} string too big then the right side page not loaded. Showing blank page. How can I pass the {!newUrl} val to the right side page.

 

NOTE: {!newUrl} is the url of the right side Visualforce page with Selected Id as querystring. I want to refresh the right side page according to the selected user Id values.

 

Thanks.

vivek12345vivek12345

Hello,

 

Can you please post your page code it will help in understanding the issue in more detail.

 

Thanks

avijchakavijchak

<Script>

 var value = document.getElementById('$component.id');

</script>

 

you can use this in any java script on the page and pass to controller