hamster
Posts: 12
|
| Posted: 07/15/2008, 6:00 AM |
|
Hey,
Im busy working with a record form inside an update panel. (using php & CCSv4)
When I want to redirect it refreshes the panel only. And displays the whole new page inside the panel.
I want to reload the whole page. Any ideas?
Thanks
|
 |
 |
marcwolf
Posts: 361
|
| Posted: 07/15/2008, 4:02 PM |
|
I have had a similar scenario when I was experimenting with CCS4.
Be most interested in a solution
Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 07/18/2008, 2:43 AM |
|
Hamster
What is your construct here?
Page 1, Grid with link to RecordForm on page 2
Page 2, Record Form on Update Panel, with a link to Page 3
Page 3, something or other
When on Page2 the link is clicked Page 3 appears on the UpdatePanel?
Is that your situation? If not please describe, sounds interesting.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
har
Posts: 9
|
| Posted: 04/15/2009, 5:18 PM |
|
Hi all,
I´m standing in front of the exact same problem at the moment.
I have a page with an update panel and inside the update panel a record.
When I submit the record a new page should be loaded...
That happens as described above... but with the problem, that the new page is not loaded in the whole window but only inside the update panel...
So I get a page inside the page... how can I load the new page "outside" of the update panel as is should be...?
Hope someone have got some solution, THX
Best,
har
|
 |
 |
damian
Posts: 838
|
| Posted: 04/16/2009, 2:31 AM |
|
have you tried using different target parameters like "_parent" or "_top"?
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
har
Posts: 9
|
| Posted: 04/16/2009, 8:32 AM |
|
The problem is not with "normal" links, I have to use the $Redirect attempt...
So after page´s event Before Unload there will be some php: header(":.."); function called...
For example after some record update the page should redirect to another...
The page does redirect... but inside that Panel the record is inside.
Thx for your help!
|
 |
 |
damian
Posts: 838
|
| Posted: 04/16/2009, 3:33 PM |
|
can you post the actual function?
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
har
Posts: 9
|
| Posted: 04/17/2009, 12:52 AM |
|
It´s all in the CCS generated php code... nothing strange, all default:
//Execute Components @1-A367D274
$Header->Operations();
$Footer->Operations();
$user->Operation();
$changePass->Operation();
$changeMail->Operation();
$deleteUsr->Operation();
//End Execute Components
//Go to destination page @1-A7FBF8DD
if($Redirect)
{
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBConnection1->close();
header("Location: " . $Redirect);
$Header->Class_Terminate();
unset($Header);
$Footer->Class_Terminate();
unset($Footer);
unset($user);
unset($changePass);
unset($changeMail);
unset($deleteUsr);
unset($Tpl);
exit;
}
//End Go to destination page
//Show Page @1-33B956D7
$Header->Show();
$Footer->Show();
$UPanel1->Show();
$UPanel2->Show();
$unregistrate->Show();
$UPanel3->Show();
$UPanel4->Show();
$Tpl->block_path = "";
$Tpl->Parse($BlockToParse, false);
if (!isset($main_block)) $main_block = $Tpl->GetVar($BlockToParse);
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeOutput", $MainPage);
if ($CCSEventResult) echo $main_block;
//End Show Page
Header, Footer are include pages...
UPanel1234 are update panels containing the records user, changePass, changeMail, deleteUsr
When I submit a record inside UPanel1 the Redirect Page loads inside that Panel... So I get the page in page... What I don´t want...
Hope you can understand the problem,
har
|
 |
 |
damian
Posts: 838
|
| Posted: 04/17/2009, 5:40 AM |
|
php redirect can only redirect inside the calling layer, frame or page... i dont think that there is a solution for this. you may need to redesign your work flow - not use the tabbed elements or have the return page be something that does make sense in the tab.
javascript refresh/redirect can target a different layer, frame or page...
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
har
Posts: 9
|
| Posted: 04/17/2009, 10:38 AM |
|
Ok, I can understand your point...
But can you tell me how exactly the CC Update Panels are realized? I can find no frames anywhere... also where are that layers? Is it connected with some Ajax usage, what exactly are that "layers" you talk about?
Today I could solve the problem by some redesign, I was able to move the important record out of the update panel... But I´m still interested in this problem case. Thx for your help!
Best,
har Quote damian:I´m testing the quote
|
 |
 |
datadoit
|
| Posted: 04/17/2009, 1:32 PM |
|
You could possibly redirect by calling javascript within PHP:
echo "<script>parent.location='yourpage.php';</script>;
|
|
|
 |
|