OK so I have a menubar, then a menubarpopup item that opens a new window in a window area. By using this code:
<e:handler event="click" type="application/xml">
<c:load url="catalog.php" destination="id('waMain')" mode="firstChild" />
</e:handler>
<c:load url="catalog.php" destination="id('waMain')" mode="firstChild" />
</e:handler>
Then catalog.php contains this:
<?php
include("functions/functions.php");
header("Content-type: application/xml");
echo "<?xml version='1.0' encoding='UTF-8'?>";
$windowid = generatePassword();
$windowid = "Catalog-" . $windowid;
?>
<b:window xmlns="http://www.w3.org/1999/xhtml"
xmlns:b="http://www.backbase.com/2006/btl"
xmlns:c="http://www.backbase.com/2006/command"
xmlns:d="http://www.backbase.com/2006/tdl"
xmlns:e="http://www.backbase.com/2006/xel"
xmlns:xi="http://www.w3.org/2001/XInclude"
width="400px" height="400px" b:open="true" id="<?php echo $windowid; ?>" label="Catalog Request">
<p>Catalog Request Stuff Here-php</p>
<p><?php echo $windowid; ?></p>
</b:window>
include("functions/functions.php");
header("Content-type: application/xml");
echo "<?xml version='1.0' encoding='UTF-8'?>";
$windowid = generatePassword();
$windowid = "Catalog-" . $windowid;
?>
<b:window xmlns="http://www.w3.org/1999/xhtml"
xmlns:b="http://www.backbase.com/2006/btl"
xmlns:c="http://www.backbase.com/2006/command"
xmlns:d="http://www.backbase.com/2006/tdl"
xmlns:e="http://www.backbase.com/2006/xel"
xmlns:xi="http://www.w3.org/2001/XInclude"
width="400px" height="400px" b:open="true" id="<?php echo $windowid; ?>" label="Catalog Request">
<p>Catalog Request Stuff Here-php</p>
<p><?php echo $windowid; ?></p>
</b:window>
the function generatePassword simple generates a 4 character unique identifier to stop the "Multiple ID" errors.
Anyway, in IE, I always get the same unique key, thus getting Multiple ID errors. But in Firefox 2.0.0.11 I get what I expect, multiple windows with multiple unique IDs. Is there any way to fix this problem or any better way to accomplish what I'm trying to accomplish?
Thanks for the help,
-David

if I load the catalog.php
22 January, 2008 - 18:12 — infringerif I load the catalog.php file directly in my IE window, and hit refresh, the random-key changes every time. But it does not seem to load a new page when issuing the load command from a menubaritem, rather just showing the last catalog.php page it loaded when it should be opening new pagees.
Can anyone else confirm/deny/offer a suggestion?
Thanks,
-David
any ideas?
23 January, 2008 - 23:28 — infringerI hate be a forum spammer, my bosses are pushing me to get a couple demo applications out for them to look at. If I can't get this simple thing figured out, I don't know how the rest of the application will work as I can see needing to do this quite a bit. But if it is just going to generate the exact same information each time this does me no good.
I have edited the catalog.php file on the server after loading a window and it STILL shows me the exact same window & body.
What we are working on is a program that we use in-house. But that we are going to begin selling once we feel it is ready, but I need to find the best framework. Backbase seems to be the most full-featured, but I need some help to figure this out.
If you need the files I can zip them and send them to you or add it here.
Thanks in advance,
-David
Caching
24 January, 2008 - 06:37 — jbrantlyDavid,
I'm not 100% sure, but it sounds like it might be a caching problem. IE is simply caching the request to catalog.php and thus the same ID is being used over and over. One sure-fire way to stop the caching is to change the URL each time. Ex:
See how that does for you. It essentially adds a different bit to the URL each time so that IE is forced to go grab a new copy. There are many other ways to help reduce caching by using HTTP headers. Some to look up are: Expires, Cache-Control, and Pragma.
- James Brantly
Thank You
24 January, 2008 - 16:53 — infringerThank you very much James!!
I had not even thought about caching, I had tried everything else I could think of.
I actually just edited my catalog.php file, and added:
And now everything works beautifully.
Thank you!