Re: [WebDNA] Populate Bootstrap Modal with AJAX WebDNA

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112406
interpreted = N
texte = --Apple-Mail-2D3875A9-73AD-43AC-A0A7-FF5303E1C927 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Tom, I ended up using a "data-id" attribute in the buttons, then event.re= latedTarget to then do an AJAX call containing the ID. Seems to work... But I= 'll have a play with your code tomorrow too. Thx D. Brooke Mobile > On Aug 17, 2015, at 1:39 AM, Tom Duke wrote: >=20 > Donovan, >=20 > Hi - set up the modal on your page: >=20 >=20 >  > 
> 
> 
> 
> 
>=20 >=20 > then link to the your WebDNA page but load it in the modal >=20 > Click here >=20 > Take care > - Tom >=20 >=20 >=20 >=20 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Digital Revolutionaries > 1st Floor, Castleriver House > 14-15 Parliament Street > Temple Bar,Dublin 2 > Ireland > ---------------------------------------------- > [t]: + 353 1 4403907 > [e]: > [w]: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 >> On 16 August 2015 at 22:15, Donovan Brooke wrote: >> Hi, might anyone have a basic example of how to populate a bootstrap mod= al with WebDNA results? >>=20 >> TLDR; >> I have a list of hrefs, with different values for var=E2=80=A6 ie. =E2=80= =9C?var=3D1=E2=80=9D >>=20 >> I need that var value to be sent to the WebDNA AJAX processing script, th= en the modal populated with the relevant results. >>=20 >> Sincerely, >> Donovan >>=20 >>=20 >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- This message is s= ent to you because you are subscribed to the mailing list . To unsubscribe, E= -mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting:= support@webdna.us --Apple-Mail-2D3875A9-73AD-43AC-A0A7-FF5303E1C927 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi Tom, I ended up using a "data-id" a= ttribute in the buttons, then event.relatedTarget to then do an AJAX call co= ntaining the ID. Seems to work... But I'll have a play with your code tomorr= ow too.

Thx

D. Brooke Mobile

On Aug 17, 2015, at 1:39 AM, Tom Duke <tom@revolutionaries.ie> wrote:

Donovan,

Hi - set up= the modal on your page:


<= !-- Standard Reusable Modal -->
<div class=3D"modal fade"= id=3D"my-modal" tabindex=3D"-1" role=3D"dialog" aria-labelledby=3D"myModalL= abel" aria-hidden=3D"true">
<div class=3D"modal-dialo= g">
= <div class=3D"modal-content"></div&= gt;
= </div>
</div>


then link to the your WebDNA page but load it in the m= odal

  <a href=3D"/path-to-template.tm= pl?var1=3D1&var2=3D2" data-toggle=3D"modal" data-target=3D"#my-modal">= ;Click here</a>

Take care
- Tom





=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<= br>Digital Revolutionaries
1st Floor, Castleriver House
14-15 Parliame= nt Street
Temple Bar,Dublin 2
Ireland
-----------------------------= -----------------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionaries.ie><= br>[w]: <htt= p://www.revolutionaries.ie/>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D

On 16 August 2015 at 22:15, Donovan Brooke <dbr= ooke@euca.us> wrote:
Hi, = ; might anyone have a basic example of how to populate a bootstrap modal wit= h WebDNA results?

TLDR;
I have a list of hrefs, with different values for var=E2=80=A6 ie.  =E2= =80=9C?var=3D1=E2=80=9D

I need that var value to be sent to the WebDNA AJAX processing script, then t= he modal populated with the relevant results.

Sincerely,
Donovan


---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>= ;.
To unsubscribe, E-mail to: <talk-= leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.= webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
= --Apple-Mail-2D3875A9-73AD-43AC-A0A7-FF5303E1C927-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Populate Bootstrap Modal with AJAX WebDNA (Donovan Brooke 2015)
  2. Re: [WebDNA] Populate Bootstrap Modal with AJAX WebDNA (Donovan Brooke 2015)
  3. Re: [WebDNA] Populate Bootstrap Modal with AJAX WebDNA (Raymond Borhan 2015)
  4. Re: [WebDNA] Populate Bootstrap Modal with AJAX WebDNA (Donovan Brooke 2015)
  5. Re: [WebDNA] Populate Bootstrap Modal with AJAX WebDNA (Tom Duke 2015)
  6. [WebDNA] Populate Bootstrap Modal with AJAX WebDNA (Donovan Brooke 2015)
--Apple-Mail-2D3875A9-73AD-43AC-A0A7-FF5303E1C927 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Tom, I ended up using a "data-id" attribute in the buttons, then event.re= latedTarget to then do an AJAX call containing the ID. Seems to work... But I= 'll have a play with your code tomorrow too. Thx D. Brooke Mobile > On Aug 17, 2015, at 1:39 AM, Tom Duke wrote: >=20 > Donovan, >=20 > Hi - set up the modal on your page: >=20 >=20 >  > 
> 
> 
> 
> 
>=20 >=20 > then link to the your WebDNA page but load it in the modal >=20 > Click here >=20 > Take care > - Tom >=20 >=20 >=20 >=20 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Digital Revolutionaries > 1st Floor, Castleriver House > 14-15 Parliament Street > Temple Bar,Dublin 2 > Ireland > ---------------------------------------------- > [t]: + 353 1 4403907 > [e]: > [w]: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 >> On 16 August 2015 at 22:15, Donovan Brooke wrote: >> Hi, might anyone have a basic example of how to populate a bootstrap mod= al with WebDNA results? >>=20 >> TLDR; >> I have a list of hrefs, with different values for var=E2=80=A6 ie. =E2=80= =9C?var=3D1=E2=80=9D >>=20 >> I need that var value to be sent to the WebDNA AJAX processing script, th= en the modal populated with the relevant results. >>=20 >> Sincerely, >> Donovan >>=20 >>=20 >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- This message is s= ent to you because you are subscribed to the mailing list . To unsubscribe, E= -mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting:= support@webdna.us --Apple-Mail-2D3875A9-73AD-43AC-A0A7-FF5303E1C927 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi Tom, I ended up using a "data-id" a= ttribute in the buttons, then event.relatedTarget to then do an AJAX call co= ntaining the ID. Seems to work... But I'll have a play with your code tomorr= ow too.

Thx

D. Brooke Mobile

On Aug 17, 2015, at 1:39 AM, Tom Duke <tom@revolutionaries.ie> wrote:

Donovan,

Hi - set up= the modal on your page:


<= !-- Standard Reusable Modal -->
<div class=3D"modal fade"= id=3D"my-modal" tabindex=3D"-1" role=3D"dialog" aria-labelledby=3D"myModalL= abel" aria-hidden=3D"true">
<div class=3D"modal-dialo= g">
= <div class=3D"modal-content"></div&= gt;
= </div>
</div>


then link to the your WebDNA page but load it in the m= odal

  <a href=3D"/path-to-template.tm= pl?var1=3D1&var2=3D2" data-toggle=3D"modal" data-target=3D"#my-modal">= ;Click here</a>

Take care
- Tom





=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<= br>Digital Revolutionaries
1st Floor, Castleriver House
14-15 Parliame= nt Street
Temple Bar,Dublin 2
Ireland
-----------------------------= -----------------
[t]: + 353 1 4403907
[e]: <mailto:tom@revolutionaries.ie><= br>[w]: <htt= p://www.revolutionaries.ie/>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D

On 16 August 2015 at 22:15, Donovan Brooke <dbr= ooke@euca.us> wrote:
Hi, = ; might anyone have a basic example of how to populate a bootstrap modal wit= h WebDNA results?

TLDR;
I have a list of hrefs, with different values for var=E2=80=A6 ie.  =E2= =80=9C?var=3D1=E2=80=9D

I need that var value to be sent to the WebDNA AJAX processing script, then t= he modal populated with the relevant results.

Sincerely,
Donovan


---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>= ;.
To unsubscribe, E-mail to: <talk-= leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.= webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
= --Apple-Mail-2D3875A9-73AD-43AC-A0A7-FF5303E1C927-- Donovan Brooke

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

For those of you not on the WebCatalog Beta... (1997) 2.01 upgrade problems (1997) WebCat2b12 - nesting [tags] (1997) select multiple 2 more cents (1997) Nav. 4 probs with cart - Serious problem (1997) Restoring textarea stored in header (1998) Navigator 4.0 & tables (1997) Dummy Credit Card Number for debug? (1997) Mystery File (2005) What is WebDNA (1997) two unique banners on one page (1997) auto adding SKUs w/DB helper (1998) Apache suffix mapping for .tpl (2000) Another option (2005) WebCat2b15MacPlugin - showing [math] (1997) sendmail spaces (1997) select multiple (1997) Template transformed itself into a database? (1998) Help name our technology! I found it (1997) thankyou.tmpl (1997)