0

Using a dropdown menu in webview

I'm not super experienced with javascript and I'm a bit confused trying to get this code to work with a page I have running in rv. It creates the dropdown no problem, but it never reaches the function I want it to go to. I followed the instructions on this page here:

http://www.codeproject.com/Articles/656/Using-JavaScript-to-handle-drop-down-list-selectio

I've also wrapped the creation of the dropdown in <form> tags and tried it with 'javascript:' in front of my call to the function.

Also on an unrelated note, I seem to be missing something on how rvsession.pyevaluate() works.

This line produces nothing in rv's console from an html page, inside of a function within script tags. (Other commands in the function are working, so I know it's actually getting to the code)

~Corey

 

[Edit] I got it to call the function. It needed langauge="javascript" along with the type="text/javascript" code. However, my other question still stands about pyevaluate.

1 comment

  • 0
    Avatar
    Jon Morley

    Hi Corey,

    I am glad you were able to get your script to load. I would like to help assist you with your pyevaluate question. Can you please elaborate on what you are trying to call? Can you please share the code you are calling?

    Thanks,

    Jon

Please sign in to leave a comment.