Results 1 to 2 of 2
  1. moserjj's Avatar
    Posts
    468 Posts
    Global Posts
    470 Global Posts
       #1  
    Anybody have some working code for this method? All i get is errors using it like:

    this.controller.setClipboard(false, this.myvalue);

    or

    Mojo.Controller.setClipboard(false, this.myvalue);

    or

    Mojo.Controller.stageController.setClipboard(false, this.myvalue);

    or

    Mojo.Controller.stageController.setClipboard(escapeHTML:false, this.myvalue);

    Crummy documentation at http://developer.palm.com/palm-sdk/j...#.setClipboard
  2. #2  
    Quote Originally Posted by moserjj View Post
    Anybody have some working code for this method? All i get is errors using it like:

    this.controller.setClipboard(false, this.myvalue);

    or

    Mojo.Controller.setClipboard(false, this.myvalue);

    or

    Mojo.Controller.stageController.setClipboard(false, this.myvalue);

    or

    Mojo.Controller.stageController.setClipboard(escapeHTML:false, this.myvalue);

    Crummy documentation at Palm Mojo Framework - Mojo.Controller.StageController
    The "S" in "Mojo.Controller.StageController" should be capitalized. If that doesn't work, I'd try:

    this.controller.stageController.setClipboard(false, this.myvalue);

    When calling it in this way, the "s" in "stageController" is lower-case.

    Also make sure "this.myvalue" is defined. And if you're in an event handler, make sure it was referenced with bind(this) or "this" will be undefined.

Posting Permissions