Hi all, I am starting with Seaside and I would like to put a local file.html in an Iframe... I have to say that I am stuck with this. Any idea how I should do that ?_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Do you mean local on the server or local on the client?
Am 05.02.2015 15:26 schrieb Pierre CHANSON <[hidden email]>: > > Hi all, > > I am starting with Seaside and I would like to put a local file.html in an Iframe... I have to say that I am stuck with this. Any idea how I should do that ? > > Thanks a lot !! > > Pierre _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Pierre Chanson
Did you see WAIFrameFunctionalTest>>#renderContentOn: ?
In any case, you will have to serve the file somehow, for which there are several options. Why do you want to do this ? What is in it ? Because if you generated it yourself, you could just as well serve it directly on demand. > On 05 Feb 2015, at 15:26, Pierre CHANSON <[hidden email]> wrote: > > Hi all, > > I am starting with Seaside and I would like to put a local file.html in an Iframe... I have to say that I am stuck with this. Any idea how I should do that ? > > Thanks a lot !! > > Pierre > _______________________________________________ > 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 |
Hi Joachim and Sven, thanks ! actually it's a html file generated in the server side but as I have both client and server here I thought I could just use a file path for now, which would be turned into an url in localhost/file...This html could be any local html that would have been generated separately. 2015-02-05 11:54 GMT-03:00 Sven Van Caekenberghe <[hidden email]>: Did you see WAIFrameFunctionalTest>>#renderContentOn: ? _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
hi, now I can add a file in LBFileLabrary and put it in an iframe. I am trying to do the same with the html file using:-=-=-=-=-=-=-=-=-=-=-=-=-= f := html iframe attributeAt: 'width' put:'500'; attributeAt: 'height' put:'300'; document: (LBFileLibrary new sunHtml) mimeType: 'text/html'. -=-=-=-=-=-=-=-=-=-=-=-=-= 2015-02-05 12:56 GMT-03:00 Pierre CHANSON <[hidden email]>:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside sun.html (316K) Download Attachment |
Hi again, I am sorry maybe this post is not that interesting but I really do have something I don't understand... -=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= html iframe attributeAt: 'width' put:'500'; attributeAt: 'height' put:'300'; document: '<!DOCTYPE html> <html> <body> <p>Creating a JavaScript Variable.</p> <p id="demo"></p> <script> var car = "Fiat"; document.getElementById("demo").innerHTML = car; </script> </body> </html>' mimeType: 'text/javascript'. -=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= And I just obtain this... 2015-02-06 17:45 GMT-03:00 Pierre CHANSON <[hidden email]>:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
problem with the image :D 2015-02-10 12:13 GMT-03:00 Pierre CHANSON <[hidden email]>:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside javascriptNotworking.png (18K) Download Attachment |
In reply to this post by Pierre Chanson
Hi Piere, you’re setting your mimetype to javascript, yet you return HTML. Maybe you should change the mimetype to text/html. Karsten -- Karsten Kusche - Dipl. Inf. (FH) - [hidden email] Georg Heeg eK - Köthen Handelsregister: Amtsgericht Dortmund A 12812 Am 10. Februar 2015 bei 16:13:47, Pierre CHANSON ([hidden email]) schrieb:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
hi Karsten, yes I tried with this mimeType too but always the same problem. 2015-02-10 12:19 GMT-03:00 Karsten Kusche <[hidden email]>:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Oh no you are right actually it worked with this example... damn ^^. But it doesn't work with all. The following file is also returning a text/html but nothing appears in the Iframe. 2015-02-10 12:35 GMT-03:00 Pierre CHANSON <[hidden email]>:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside pie.html (5K) Download Attachment |
Free forum by Nabble | Edit this page |