• deepak Chamola
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
I need to fetch all unique records from an object and display them on the screen and then on the basis of that selection i need to do the same process for a different object.
Hey guys,

I applied JSENCODE in my VF page like :
<apex:outputText value="Please Wait... {!JSENCODE(outputText)}" escape="false"
                    rendered="{!IF(outputText=='',false,true)}" style="color:red;" />


and my controller for the same page has this variable 'outputText', a string variable which contains :

outputText = 'Call Script is Launching..<script>window.top.location.href =\'' + redirectUrl + '\'</script>';

but when i launch it, it should go to a new page but instead its just printing the whole string as it is.

Please Wait... Call Script is Launching..\u003Cscript\u003Ewindow.top.location.href =\'/apex/mypageurl\'\u003C/script\u003E 

any help would be great.