Project

General

Profile

Defect #266

addCallback and executeClientSideJS don't work properly

Added by Bogdan Udrescu about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Start date:
04/19/2011
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

Hey,

I have two things that don't run for me:

1. The plugins.WebClientUtils.addCallback generates a Wicket that don't call the server from the browser.
I'm calling the method like this:
body += '\
<script type="text/javascript" charset="utf-8"> \
scheduler.showLightbox = function(reservation_id) { \
' + plugins.WebClientUtils.addCallback(editReservation, ['reservation_id']) + ' \
} \
\
</script>';

2. The plugins.WebClientUtils.executeClientSideJS is not called from onShow method of the current form. It's called only first time when the form is shown, but only then. After that, no more. If I switch to another form and then come back and display the form that should call executeClientSideJS in onShow method, that call will not get to execute the javascript in the browser. I also don't receive any exception, as far as I saw.
If I make the call of executeClientSideJS from a button action, it will work, but I need it on the onShow event.

I also have two posts on Servoy forum:
http://forum.servoy.com/viewtopic.php?f=22&t=15821
http://forum.servoy.com/viewtopic.php?f=22&t=15995

I would really appreciate if you can help me with these.
Thanks,
Bogdan.

History

#1

Updated by P Bakker about 13 years ago

  • Status changed from New to In Progress
  • Assignee set to P Bakker

Please create separate issues for separate items

The second item cannot be reproduced.

The first item is being investigated.

Paul

#2

Updated by P Bakker about 13 years ago

  • Status changed from In Progress to Closed

We couldn't reproduce the first item either.

We did update the plugin though with some code improvements and support for specifying String values inside the optional arguments array for the callback method.

Please test with the updated plugin and if you run into specific issues, please file new cases, one per issue found, with reproducible samples.

Paul

Also available in: Atom PDF