how can javascript call a python method?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iaminlost
    New Member
    • Feb 2008
    • 1

    how can javascript call a python method?

    for example.
    Code:
    in python :
       def MyMethod(self):
          print "MyMethod"
    [/CODE}
    then i use wx.lib.iewin load a url,
    in this url,have a javascript code like this
    [CODE ]
    window.external.Mythod()
    i want this javascript language can call the python method,
    what else should i do?

    in vc++ ,this can be created easy,
    but in python ,i can't find the same method to do this job.

    my computer:
    window xp
    python 2.5
    wxpython 2.5
    pywin32 for python2.5
    ie 7
Working...