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:

can WC render sites out? (1997) What am I doing wrong? (2000) Hosting Service (1998) Mac WebCat 4.0 Day Planner Hang (2000) spell check site (2005) Problems with date math (1997) (OFF TOPIC) System 8.5.1 FINDER ERROR (1999) Busy WebCatalog (2000) PCS Frames (1997) [WebDNA] Lightbox2 for WebDNA [updated] (2008) WebCatalog f2 Installation (1997) Re:E-mailer application times out (1998) Document Contains No Data! (1997) multiple databases (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) [WebDNA] xmlparse of POST (2014) Nested vs conditional (1997) PDF (1999) Unique value creation (1999) Reports of ErrorLog.txt not being written in Linux (2000)