Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After filtering <input in decorator stop working #644

Closed
imonteiro opened this issue Jan 18, 2013 · 2 comments
Closed

After filtering <input in decorator stop working #644

imonteiro opened this issue Jan 18, 2013 · 2 comments

Comments

@imonteiro
Copy link
Member

Original author: hampson....@gmail.com (April 18, 2010 08:08:09)

What steps will reproduce the problem?
1.Added decorator with input in:
$left->position('left')->name('Get Details')->decorator("<input
type='image' src='/irisalesmon/public/images/detail.png' name='get details'
onClick=$OnClickstring>");

    $grid-&gt;addExtraColumns($left);

2.Go to live site new windows opens with expected page
3.Filter grid contents
4.Press the input image and new window open with error message

Why is the link working before filtering but not after?

What is the expected output? What do you see instead?
Expected output is a php page which works fine. After filtering (even if
the filter is then removed) I get the following error message:
Fatal error: Uncaught exception 'Zend_Json_Exception' with message
'Decoding failed: Syntax error' in
C:\xampplite\htdocs\IRISalesMon\library\Zend\Json.php:93 Stack trace: #0
C:\xampplite\htdocs\IRISalesMon\library\Bvb\Grid.php(873):
Zend_Json::decode('ShowMeetingDeta...') #1
C:\xampplite\htdocs\IRISalesMon\library\Bvb\Grid.php(1959):
Bvb_Grid->_buildFiltersValues() #2
C:\xampplite\htdocs\IRISalesMon\library\Bvb\Grid\Deploy\Table.php(1208):
Bvb_Grid->deploy() #3
C:\xampplite\htdocs\IRISalesMon\application\controllers\SiteController.php(248):
Bvb_Grid_Deploy_Table->deploy() #4
C:\xampplite\htdocs\IRISalesMon\library\Zend\Controller\Action.php(513):
SiteController->basicAction() #5
C:\xampplite\htdocs\IRISalesMon\library\Zend\Controller\Dispatcher\Standard.php(289):
Zend_Controller_Action->dispatch('basicAction') #6
C:\xampplite\htdocs\IRISalesMon\library\Zend\Controller\Front.php(954):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
Object(Zend_Controller_Response_Http)) #7 C:\xampplite\ in
C:\xampplite\htdocs\IRISalesMon\library\Zend\Json.php on line 93

Please insert the appropriate values;
Zend Framework version:(one supplied with sample)
ZFDatgrid Version (Bvb_Grid::getVersion()):0.6
Operating system:XP
PHP Version:5
Database Server and version:Mysql5
Source Adatapter:???

Please provide any additional information below.

Original issue: http://code.google.com/p/zfdatagrid/issues/detail?id=254

@imonteiro
Copy link
Member Author

From hampson....@gmail.com on April 20, 2010 06:25:00
I should have included the $onClick string that is used:
$OnClickstring="window.open('./ShowMeetingDetails.php?MI={{outMeetingID}}','showmeeting','height=700,width=700,toolbar=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=no');";

@imonteiro
Copy link
Member Author

From bento.vi...@gmail.com on April 23, 2010 15:57:45
Hi,

Insert the full URL before ./ShowMeetingDetails.php or remove the first . (dot).

That way, browser won't prepends the url in address bar

Best Regards,
Bento Vilas Boas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant