9 messages in com.googlegroups.google-mashup-editorRe: Help with rough spots in my mashup
FromSent OnAttachments
jackAtFloridata11 Dec 2007 20:32 
jackAtFloridata12 Dec 2007 16:27 
jackAtFloridata12 Dec 2007 19:00 
Jason13 Dec 2007 08:32 
Jason13 Dec 2007 16:12 
Jason15 Dec 2007 16:27 
jackAtFloridata17 Dec 2007 17:10 
Jason20 Dec 2007 10:12 
jackAtFloridata27 Dec 2007 16:35 
Subject:Re: Help with rough spots in my mashup
From:Jason (gmej@google.com)
Date:12/20/2007 10:12:18 AM
List:com.googlegroups.google-mashup-editor

Hi jack. No, they were separate issues as it turns out. Your problem was caused by a quirk in IE's CSS engine; apparently it's not a good idea to style GME components directly. The screencast gallery, meanwhile, suffered from a good old-fashioned bug in my source, which I have since corrected. I'll be more thorough in my testing before releasing future samples.

- Jason

On Dec 17, 5:11 pm, jackAtFloridata <Flor@gmail.com> wrote:

THANKS Jason! That fixed those problems. I'll try putting in a custom loading message next and then as soon as my Google Base items are finished updating I can publish - I was wondering if whatever was keeping the screencast from running on IE was the same problem that prevented my mashup from running on that browser... thanks again for the help jack

On Dec 15, 7:27 pm, Jason <gmej@google.com> wrote:

Hi jack. I'm sorry again for the wait. The rest of your questions are answered inline below:

1. on the Search Tab I'd like to put a "Loading..." message - not just for the page to load but also for a Select menu that loads and initializes - I think I can use dynamic CSS but is there a better way in GME ?

A loading animation automatically appears when new data is being loaded into a gm:list. For a custom loading animation, check out the DanceMaps mashup and its accompanying article:

2. Sometimes - not always - the "Plant Info" tab is "set" even though this is only supposed to happen when it receives a "Select" event - however it seems that some of the gm:list's "repaint" events are triggering the function that sets the "Plant Info" tab

I'll have to look into this one a bit more to determine whether it's a bug. In the meantime, I recommend changing your event listeners slightly by adding a listener for your gm:list and modifying your gm:item like so:

<gm:list id="myList" data="${tmp}" pagesize="10" template="plantList"> <gm:handleEvent event="select" execute="setPlantInfoTab(event.entry);"/> </gm:list> ... <gm:item id="detail" data="${myList}" template="detailTemplate"> <gm:handleEvent src="myList"/> </gm:item>

Whenever an entry is selected in myList, setPlantInfoTab() should execute. And because the gm:item is listening for myList events, its data source should be updated as well. Let me know if you continue to experience oddities after making these changes.

3. On the "Buy Plant" tab I display the selected item at the top of the Tab when an item in the Product List below is clicked... When the "next" or "prev" link of the gm:pager is clicked, it appears that the gm:item is receiving a "Select" event from the pager (Does the pager "select" one of the list items by default?

A gm:item comprises exactly one entry and is perfect for displaying "master-detail" parings just as you have with your application -- select a list entry and display its details using a gm:item. I'm guessing that every time you paged through the gm:list, its select event would fire since an entry was being deselected and as a result, setPlantInfoTab() was executing. The above change won't fix that but a quick change to your JavaScript function should:

// Pseudocode function setPlantInfoTab(entry) { if (entry) { // Show tab }

}

If the select event is fired after an entry is deselected (such as when the gm:list is paged), the argument should be null. My slight modification only switches tabs when the argument is not null.

5. Many of the titles in the entries that I pull from the GBase (Product types) are HTML. It doesn't seem like the <gm:link> tag's labelref attribute displays the contents of an atom:title as HTML but as plan text so all of the encoding characters are displayed (see Product details on "Buy Plant" tab

gm:link tags cannot currently display encoded characters such as entity references (&amp; and so forth). I'll file a request and it may be added in a subsequent release.

I've noticed your issues with IE, but I haven't discovered the source of the problem just yet. I'll continue to debug and I'll report back here when I discover the problem(s). Thank you for calling it to my attention and thanks for your patience.

- Jason

On Dec 13, 4:13 pm, Jason <gmej@google.com> wrote:

Hi jack. Can you republish your mashup so I can take a look at your source? Otherwise, just send me the source directly.

As far as the questions I can answer:

4. Yes, all &nbsp; entity references are now stripped from the source during compilation. &#160; still works, however.

6. Yep, since all of your questions are related to a single mashup, it is perfectly fine to include them all in a single post.

Please send me a link to your original source so I can help you further. Thanks!

- Jason

On Dec 11, 8:32 pm, jackAtFloridata <Flor@gmail.com> wrote:

I published my mashup (here's the link: http://floridoogle.googlemashups.com/ ) and it's working pretty good but there are a few things that need polishing or fixing that I hope Jason or someone can help me with:

1. on the Search Tab I'd like to put a "Loading..." message - not just for the page to load but also for a Select menu that loads and initializes - I think I can use dynamic CSS but is there a better way in GME ?

2. Sometimes - not always - the "Plant Info" tab is "set" even though this is only supposed to happen when it receives a "Select" event - however it seems that some of the gm:list's "repaint" events are triggering the function that sets the "Plant Info" tab

3. On the "Buy Plant" tab I display the selected item at the top of the Tab when an item in the Product List below is clicked... When the "next" or "prev" link of the gm:pager is clicked, it appears that the gm:item is receiving a "Select" event from the pager (Does the pager "select" one of the list items by default?

4. The GME is erasing any &nbsp; that I include in the markup - is that supposed to happen?

5. Many of the titles in the entries that I pull from the GBase (Product types) are HTML. It doesn't seem like the <gm:link> tag's labelref attribute displays the contents of an atom:title as HTML but as plan text so all of the encoding characters are displayed (see Product details on "Buy Plant" tab

6. Is it OK to ask a bunch of questions like this on a single post or should I have posted each separately?

Thanks for any help !