Hi seasiders. I think it would make for faster debugging if I could just see what the html is going to look like (also might make it easy to unit test).
thanks much. larry
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Larry, Inspect the below to get started, WARenderCanvas builder render: [:html | html render: WAStatus new] HTH, -Boris From: [hidden email] [mailto:[hidden email]] On Behalf Of Larry White Hi seasiders. Is there an easy-ish way to open an inspector on the bit of html that would be rendered by an arbitrary seaside component? I think it would make for faster debugging if I could just see what the html is going to look like (also might make it easy to unit test). thanks much. larry _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Perfect. Thank you. This will be really handy.
On Fri, Sep 30, 2011 at 5:07 PM, Boris Popov, DeepCove Labs <[hidden email]> wrote:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Also, you can feed any ‘renderable’ thing directly to #render: WARenderCanvas builder render: WAStatus new WARenderCanvas builder render: 'Hello, World' WARenderCanvas builder render: [:html | html strong: 'Hello, World'] -Boris From: [hidden email] [mailto:[hidden email]] On Behalf Of Larry White Perfect. Thank you. This will be really handy. On Fri, Sep 30, 2011 at 5:07 PM, Boris Popov, DeepCove Labs <[hidden email]> wrote: Larry, Inspect the below to get started, WARenderCanvas builder render: [:html | html render: WAStatus new] HTH, -Boris From: [hidden email] [mailto:[hidden email]] On Behalf Of Larry White Hi seasiders. Is there an easy-ish way to open an inspector on the bit of html that would be rendered by an arbitrary seaside component? I think it would make for faster debugging if I could just see what the html is going to look like (also might make it easy to unit test). thanks much. larry
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Perfect!!! That is just I needed.
Some days ago, when I was using the JQmqFeatureInfo widget I had to return HTML in a js function, which is showed inside a popup window (when you click on a feature...). See contents option: http://mapquery.org/docs/jquery.mapquery.mqFeatureInfo.js.html#jquery.mapquery.mqFeatureInfo.js Becouse I did not know how, I just copy the function from the example in MapQuery page, resulting this: html document addLoadScript: ((html jQuery id: idFeatureInfo) mqFeatureInfo map: '#' , idMap; contents: '"<p>" + feature.data.id + "</p>"'). But now, using #render: I can return generated HTML with seaside (from subcomponents for example). 2011/9/30 Boris Popov, DeepCove Labs <[hidden email]>
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Something like work fine html document addLoadScript: ((html jQuery id: idFeatureInfo) mqFeatureInfo map: '#' , idMap; contents: ('"', (WARenderCanvas builder render: [:h | h strong: 'Hello, World']),'"')). but of course that is very poor solution... Maybe the option contents of MapQuery should not expect to be returned html code to it, but just run the function and there do what you want... I dont know that is better or most used in this case where it opens a popup, any idea?
2011/9/30 Gastón Dall' Oglio <[hidden email]> Perfect!!! That is just I needed. _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by larrry
2011/9/30 Larry White <[hidden email]>:
> Hi seasiders. > Is there an easy-ish way to open an inspector on the bit of html that would > be rendered by an arbitrary seaside component? > I think it would make for faster debugging if I could just see what the html > is going to look like (also might make it easy to unit test). > thanks much. There are also the halos with allow you to toggle source view. Cheers Philippe _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by larrry
Hello,
Is the support for Audio in HTML 5 working? I can't seem to get it to work. I found this issue: > audio (interestingly, a WAAudioTag class exists with no call from the > canvas) #audio, even has tests > track missing indeed Although this renders a control: (html audio) url: 'http://upload.wikimedia.org/wikipedia/commons/9/94/Mix.ogg'; autoplay: true; controls: true; loop: true; preload: true nothing plays. Any thoughts? If HTML 5 audio is completely broken, can I generate code to use Dewplayer through Flash? Regards, Larry
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
So, I'm replying to my own post. Am I right in thinking that I can write an
html object statement that will play the mp3 files through Dewplayer, or something else? Larry On Oct 5, 2011, at 5:05 PM, Lawrence Kellogg wrote:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hello Larry,
I copied and pasted your audio code into a renderContentOn: method and it works as expected. There must be some other issue. John
On Wed, Oct 5, 2011 at 8:55 PM, Lawrence Kellogg <[hidden email]> wrote:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
And I qualify "works as expected" with: in Chrome. In IE8 not so much
John
On Wed, Oct 5, 2011 at 9:37 PM, John McKeon <[hidden email]> wrote: Hello Larry, _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Thanks, John, interesting. I was in Safari. I'll try again. In, IE8, what does "not so much" mean? ;-) Does it play? How are people playing back sound files? Maybe that's the question I should be asking. What if I record to CAF. Do I have to convert everything to MP3? Larry On Oct 5, 2011, at 9:52 PM, John McKeon wrote: And I qualify "works as expected" with: in Chrome. In IE8 not so much _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
IE doesn't really support HTML5 or CSS3 well. The beta version I guess has some support, but is missing some tags. I dunno the specifics.
RS From: [hidden email] Subject: Re: [Seaside] Playing audio from Seaside, broken? Date: Wed, 5 Oct 2011 22:04:57 -0400 To: [hidden email] Thanks, John, interesting. I was in Safari. I'll try again. In, IE8, what does "not so much" mean? ;-) Does it play? How are people playing back sound files? Maybe that's the question I should be asking. What if I record to CAF. Do I have to convert everything to MP3? Larry On Oct 5, 2011, at 9:52 PM, John McKeon wrote: And I qualify "works as expected" with: in Chrome. In IE8 not so much _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Larry Kellogg
On Wed, Oct 5, 2011 at 10:04 PM, Lawrence Kellogg <[hidden email]> wrote:
It means IE8 does not support the audio tag. Add a with: message to your audio tag render code: with: 'this browser does not support the audio tag'.
It should render that string if <audio> is unsupported.
Dunno, Youtube uses the embed tag. I've used the object tag for an IE plugin.
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |