igor-alexandrov / wiselinks

If Turbolinks are not enough for you. Wiselinks makes your application work faster.
MIT License
726 stars 93 forks source link

Run Wiselinks with Javascript #113

Open hi4manohar opened 6 years ago

hi4manohar commented 6 years ago

Hi, How can I call wiselinks from Javascript. Let's say We've a table something like this:

<tr onclick="callFunction()">
    <td>Col1</td>
    <td>Col2</td>
</tr>

and JS is something:

Function callFunction() {
     // here i need to run wiselinks, and execute a url. like: http://example.com/abc and update div
}

Is there any solution to accomplish such task?