From: Clark M. <cpm...@ma...> - 2006-12-12 07:25:49
|
Heh, sorry. I have a talent for writing long winded e-mails. Seems you've caught on. :-) I'll try to keep 'em shorter. So, ahem. To summarize this e-mail in a couple of sentences: My YUIPanels are popping up all by themselves, but only when there are components from the Ajax.framework involved in them. But if an AjaxUpdateLInk happens to be on the page (whether or not it has anything to do with the actual YUIPanel), they don't do that, and behave as expected. Why might that be? Clark On 11 Dec 06, at 3:09 PM, Anjo Krank wrote: > Hi Clark, > > no offense... but my reading schedule is kinda filled by 800 page > russian novels. > > From just glancing through the report, i assume that it has sth to > to with the Ajax frameworks, which are none of my beef anyway, but > can you - uh - illustrate your point a bit with some screenshots or > at least add a paragraph or two? > > Pretty, pretty please?? > > Cheers, Anjo > > Am 11.12.2006 um 22:37 schrieb Clark Mueller: > >> Hi all, >> >> As some of you might have noticed a couple of weeks ago, I'm playing >> with reusable YUIPanels that act as forms or are used for data >> display, as described in this thread: http://sourceforge.net/ >> mailarchive/forum.php?thread_id=31150974&forum_id=8222. I recently >> thought I had gotten those sorted out, but I've made a discovery this >> morning that makes it look like maybe this isn't going to be as easy >> as I thought it was. The basic problem is... my YUIPanels are popping >> up by themselves a lot of the time when the page that contains them >> loads. There are two use cases I'll mention. >> >> 1. This one makes it really easy to illustrate the issue. I have one >> YUI panel that's not wrapped in its own component. It has a >> YUIShowPanelLink that triggers it from the main page. The panel is >> contained by an AjaxUpdateContainer. It also has a WORepetition and a >> form for a new item to be added to the repetition. The form is >> submitted by an AjaxSubmitButton, whose main purpose in life is to >> tell the update container to update. This panel pops up by itself >> whenever I load that page, UNLESS I comment out both the update >> container and the submit button. Commenting out only one or the other >> does not cause the form to stop popping up, only if I do both. This >> is a new component that I built this week, so it has no real history, >> and I left the problem to deal with later. So, at this point, here I >> am thinking that maybe there's an incompatibility between >> Scriptaculous & YUI, but... >> >> 2. This is the kicker: I don't remember this problem happening >> before, with the aforementioned news article example. But one of the >> features of my news feed is that articles drop off after 14 days. As >> soon as that started happening with some of my test postings this >> morning, and there were no current news items (meaning there were no >> news links in the repetition to display the news details panel), THAT >> panel started popping up as well (with none of the data entered in >> it, since there was no article selected for display). Even weirder, >> that particular page also has another application of the same >> AjaxUpdateLink repetition, as well as one other panel that is a >> simple YUIShowPanelLink/YUIPanel with no update container. If there >> is a news item in the repetition, all of the other panels stay hidden >> as they should. If not, they all display. The conclusion I've drawn >> is that if there is any AjaxUpdateLink on the page, the problem goes >> away... If I post new news, the problem disappears... if I remove the >> news... the problem comes back. FWIW, while all this is happening, >> the action that gets fired by the AjaxUpdateLink never does get >> called unless I actually click the link. Huh? >> >> So armed with that information, I went back to the component in >> example 1, and instead of using a YUIShowPanel link, I use an >> AjaxUpdateLink with no action binding to simply tell the panel to >> show >> (). That works properly. If I remove the link from the page (leaving >> the panel code there), the panel displays by itself again... I also >> created an AjaxUpdateLink whose function was NOT to show the panel, >> but just called some other JavaScript function, and it too kept the >> panel from appearing. So that's a fix for that particular case, but >> that solution will NOT work for the news, since there's not always >> going to be one there. >> >> So umm... thoughts? Has anyone else seen something like that? Bad >> idea to try and make Ajax.framework and YUI.framework play ball? >> >> Thanks & regards, >> Clark >> >> --------------------------------------------------------------------- >> ---- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys - and earn >> cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Wonder-disc mailing list >> Won...@li... >> https://lists.sourceforge.net/lists/listinfo/wonder-disc > |