saseow
Posts: 744
|
Posted: 05/16/2012, 4:09 AM |
|
I have a real problem with some URL parameters that contain "&".
I have no idea what causes this as in some links the parameters are fine and in others the "amp" stuff is added. Example:
param_editor.php?rec_id=12¶m_id=3
This means that CCGetParam does not get the value of param_id.
Any help Please!! All code (html and PHP) looks good. I just don't know.
|
|
|
DataDoIT
|
Posted: 05/16/2012, 6:17 AM |
|
Specify your version please.
Your URL isn't getting properly encoded. For explanation see: http://www.w3schools.com/tags/ref_urlencode.asp
If you've not done anything custom with how or if you're redirecting,
such as a custom header() redirect, then I'd suggest contacting support,
particularly if you're using version 5.
|
|
|
saseow
Posts: 744
|
Posted: 05/16/2012, 7:01 AM |
|
I am using latest ver. 5.
The link is calling a popup window. In the beforeshowrow of the grid containing the link I have this php code:
$lnk=$student_custom_params->Link1->GetLink();
$newlnk="$lnk\" onclick=\"javascript:window.open(this.href,'param_editor.php','width=1024,height=400,top=15,left=0,scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes');return false;";
$student_custom_params->Link1->SetLink($newlnk);
In the HTML of the link there is this code:
<a href="{Link1_Src}" id="ContentPanel1student_custom_paramsLink1_{student_custom_params:rowNumber}" class="Button" onclick="param_editor=window.open('param_editor.php','param_editor','toolbar=no,location=yes,directories=no,status=yes, menubar=no,scrollbars=no,resizable=no,width=1024,height=400'); return false;">Edit</a>
I am thinking that perhaps the two are causing the problem yet I have to pass the parameters to the popup window.
Thanks for the reply datadoit!
|
|
|
DataDoIT
|
Posted: 05/16/2012, 7:14 AM |
|
Have a look here: http://examples.codecharge.com/ExamplePack/PopUpList/PopUpList.php
and see a somewhat cleaner way of handling a popup in CCS. It'll get
you going in learning how to pass and retrieve parameter values.
|
|
|
|