jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Cross origin Cross origin #82545

    hankBrown
    Blocked

    Do the answers get any more helpful if you buy the product?

    Does anyone else understand what I am asking?

    Has anyone implemented jqwidgets cross domain without JSONP ?

    Has anyone adapted jquery/jqwidgets to use the OPTIONS protocol instead?

    in reply to: Yii2 samples? Yii2 samples? #82399

    hankBrown
    Blocked

    Thank you for your reply.

    It does seem that jqwidgets has been abandoned by the yii2 community.

    There was a lot of useful stuff for 1.0, but nobody has taken up the torch for yii2.

    In case anyone else is trying to evaluate yii2 and jqwidgets with JSONP, I found one way to get going was to override ActiveDataProvider::getModels

    public function getModels()
    {
        $this->prepare();
        return ['data' => parent::getModels(), 'callback' => $_REQUEST['callback'] ];
    }

    I notice others are returning similar, but directly from a rest controller rather than the data provider.

    in reply to: Cross origin Cross origin #82398

    hankBrown
    Blocked

    Thank you for your reply.

    Please let me try to make the question simpler.

    Is it possible to use jqwidgets for cross-domain calls without JSONP?

    I am asking because my server-side is already coded for ajax calls with the pre-flight OPTIONS and credentials

    (eg http://techblog.constantcontact.com/software-development/using-cors-for-cross-domain-ajax-requests/ )

    If I must switch to JSONP, I must also write and debug extra code to do what is already working and tested.

    Not a jquery guy here, but their docs seems to indicate they support pre-flight requests with credentials.

    At this time I cannot guess if/how that plays nice with jqwidgets.

    I hope this is clearer. Thank you.

Viewing 3 posts - 1 through 3 (of 3 total)