Women in Technology

Hear us Roar



Article:
  Avoid Common Pitfalls in Greasemonkey
Subject:   Another way for calling Remote Page Scripts
Date:   2006-12-13 04:53:31
From:   PhiLho
Response to: Another way for calling Remote Page Scripts

You are reinventing bookmarklets... :-)
I didn't tried, but can't you write:
window.location.href="javascript: void(returnValue = RemotePagefunction("+arguments+")");
to get the return value?
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Another way for calling Remote Page Scripts
    2007-09-17 02:15:32  .::jp::. [View]

    I think yes, but to access the var "returnValue" you would need to use "unsafeWindow.returnValue", so once you use it the easiest option would be:

    var returnValue = unsafeWindow.RemotePageFunction(arguments);