Arya Mehta
Arya Mehta

Reputation: 151

In flexpaper I want to show next and previous page using right and left button using its API

I am using this to button using onclick

<input type="submit" value="Invoke" onclick="getDocViewer().nextPage()">
<input type="submit" value="Invoke" onclick="getDocViewer().prevPage()">

but it throw error 'Cannot call method 'getApi' of undefined'

how do I fix this ?

Upvotes: 0

Views: 301

Answers (1)

Rahul Gupta
Rahul Gupta

Reputation: 10141

<input type=submit value="Invoke" 
       onclick="$FlexPaper('id_of_the_documentViewer_element').nextPage()">
<input type=submit value="Invoke" 
       onclick="$FlexPaper('id_of_the_documentViewer_element').prevPage()">

Upvotes: 0

Related Questions