how do i append an image to a dom element using javascript

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

how do i append an image to a dom element using javascript

fugee ohu
how do i append an image to a dom element using javascript

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a3f1366c-1bbb-4363-8a06-65b538719a32%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: how do i append an image to a dom element using javascript

Walter Lee Davis
https://lmgtfy.com/?q=how+do+i+append+an+image+to+a+dom+element+using+javascript

> On Jan 29, 2020, at 12:18 AM, fugee ohu <[hidden email]> wrote:
>
> how do i append an image to a dom element using javascript
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a3f1366c-1bbb-4363-8a06-65b538719a32%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/537A0271-F027-4A15-8C70-398D9F0BFBDF%40wdstudio.com.
Reply | Threaded
Open this post in threaded view
|

Re: how do i append an image to a dom element using javascript

fugee ohu


On Wednesday, January 29, 2020 at 8:18:28 AM UTC-5, Walter Lee Davis wrote:
<a href="https://lmgtfy.com/?q=how+do+i+append+an+image+to+a+dom+element+using+javascript" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flmgtfy.com%2F%3Fq%3Dhow%2Bdo%2Bi%2Bappend%2Ban%2Bimage%2Bto%2Ba%2Bdom%2Belement%2Busing%2Bjavascript\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHIDt2mz8UP-I-UYURL1uS1lqAZFA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flmgtfy.com%2F%3Fq%3Dhow%2Bdo%2Bi%2Bappend%2Ban%2Bimage%2Bto%2Ba%2Bdom%2Belement%2Busing%2Bjavascript\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHIDt2mz8UP-I-UYURL1uS1lqAZFA&#39;;return true;">https://lmgtfy.com/?q=how+do+i+append+an+image+to+a+dom+element+using+javascript

> On Jan 29, 2020, at 12:18 AM, fugee ohu <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Lveq67zFEgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fuge...@...> wrote:
>
> how do i append an image to a dom element using javascript
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Lveq67zFEgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/a3f1366c-1bbb-4363-8a06-65b538719a32%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/a3f1366c-1bbb-4363-8a06-65b538719a32%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/a3f1366c-1bbb-4363-8a06-65b538719a32%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/a3f1366c-1bbb-4363-8a06-65b538719a32%40googlegroups.com.

Thanks I'm trying to write an action cable chat app Eventually I want it to include video but for now I've got text working but I don't have images working yet Do all action cable chat solutions rely on javascript (?) because I notice there's an app/channels folder and an app/javascript/channels folder Does that mean I don't need to be using javascript?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/62555a89-a69e-485b-8117-f17394a5b676%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: how do i append an image to a dom element using javascript

Ariel Juodziukynas
The client part requires javascript, the backend part requires no javascript, I strongly recommend you read this https://guides.rubyonrails.org/action_cable_overview.html

Sometimes it looks like you just ask questions without reading about the subject you try to use. The official guide shows you what file goes where.

El mié., 29 ene. 2020 a las 13:08, fugee ohu (<[hidden email]>) escribió:


On Wednesday, January 29, 2020 at 8:18:28 AM UTC-5, Walter Lee Davis wrote:
https://lmgtfy.com/?q=how+do+i+append+an+image+to+a+dom+element+using+javascript

> On Jan 29, 2020, at 12:18 AM, fugee ohu <[hidden email]> wrote:
>
> how do i append an image to a dom element using javascript
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a3f1366c-1bbb-4363-8a06-65b538719a32%40googlegroups.com.

Thanks I'm trying to write an action cable chat app Eventually I want it to include video but for now I've got text working but I don't have images working yet Do all action cable chat solutions rely on javascript (?) because I notice there's an app/channels folder and an app/javascript/channels folder Does that mean I don't need to be using javascript?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/62555a89-a69e-485b-8117-f17394a5b676%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcA1qCtFT1JEUaFqmEs-UoMnRj4VAkoGoiPORAwxungSGQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: how do i append an image to a dom element using javascript

fugee ohu


On Wednesday, January 29, 2020 at 11:28:49 AM UTC-5, Ariel Juodziukynas wrote:
The client part requires javascript, the backend part requires no javascript, I strongly recommend you read this <a href="https://guides.rubyonrails.org/action_cable_overview.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fguides.rubyonrails.org%2Faction_cable_overview.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRs4DRflpoJw2cTNGFT1WAFco7UQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fguides.rubyonrails.org%2Faction_cable_overview.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHRs4DRflpoJw2cTNGFT1WAFco7UQ&#39;;return true;">https://guides.rubyonrails.org/action_cable_overview.html

Sometimes it looks like you just ask questions without reading about the subject you try to use. The official guide shows you what file goes where.

El mié., 29 ene. 2020 a las 13:08, fugee ohu (<<a href="javascript:" target="_blank" gdf-obfuscated-mailto="yvGXGCDQEgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fuge...@...>) escribió:


On Wednesday, January 29, 2020 at 8:18:28 AM UTC-5, Walter Lee Davis wrote:
<a href="https://lmgtfy.com/?q=how+do+i+append+an+image+to+a+dom+element+using+javascript" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flmgtfy.com%2F%3Fq%3Dhow%2Bdo%2Bi%2Bappend%2Ban%2Bimage%2Bto%2Ba%2Bdom%2Belement%2Busing%2Bjavascript\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHIDt2mz8UP-I-UYURL1uS1lqAZFA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flmgtfy.com%2F%3Fq%3Dhow%2Bdo%2Bi%2Bappend%2Ban%2Bimage%2Bto%2Ba%2Bdom%2Belement%2Busing%2Bjavascript\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHIDt2mz8UP-I-UYURL1uS1lqAZFA&#39;;return true;">https://lmgtfy.com/?q=how+do+i+append+an+image+to+a+dom+element+using+javascript

> On Jan 29, 2020, at 12:18 AM, fugee ohu <[hidden email]> wrote:
>
> how do i append an image to a dom element using javascript
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/a3f1366c-1bbb-4363-8a06-65b538719a32%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/a3f1366c-1bbb-4363-8a06-65b538719a32%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/a3f1366c-1bbb-4363-8a06-65b538719a32%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/a3f1366c-1bbb-4363-8a06-65b538719a32%40googlegroups.com.

Thanks I'm trying to write an action cable chat app Eventually I want it to include video but for now I've got text working but I don't have images working yet Do all action cable chat solutions rely on javascript (?) because I notice there's an app/channels folder and an app/javascript/channels folder Does that mean I don't need to be using javascript?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="yvGXGCDQEgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/62555a89-a69e-485b-8117-f17394a5b676%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/62555a89-a69e-485b-8117-f17394a5b676%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/62555a89-a69e-485b-8117-f17394a5b676%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/62555a89-a69e-485b-8117-f17394a5b676%40googlegroups.com.

Yes Thanks I'll read that I've been reading active storage overview trying to work out a better understanding of the attachment/s object how to render attachments because I'm having trouble with it

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9c2320fa-db27-4659-9634-c3f4724fd96d%40googlegroups.com.