What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: [OT] help with a javascript alert

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52565
interpreted = N
texte = Pedro Rivera sent me a better example privately (I say 'better' because his javascript is all self-contained in the link itself, which means I do not have to create my own function) ... and he mentioned the potential problem with the quotes, so here's the code I'm actually using: [founditems] [text]details=[grep search='&replace="][recordDetails][/grep][/text] details [/founditems] By using the onMouseOver I was also able to replace the javascript that appears in the browser's status bar with the same text that's in the alert. This means the visitor only has to pass the cursor over the link to see what's in the recordDetails field -- rather than actually click the link -- which makes this solution even nicer than I was originally hoping for! I didn't test the results by putting a ' character into the recordDetails field but I'm assuming that the grep will take care of it if ever that character appears in the field. I did not try the convertchars solution but it might be better than my grep approach, because the default convertchars db already does the entity conversion of ' as well as other problematic characters. >The thing to keep in mind is that any signle quotes will break this. So you >will need to change the single quotes to the HTML special character that >represents the single quote either in the related.db or use a convert chars >on the href="javascript:alertme('[convertchars][relateddbfield][/convertchars]')"> >and set it in the convetchars database. > > >----- Original Message ----- >From: "Alain Russell" >To: "WebDNA Talk" >Sent: Wednesday, August 27, 2003 11:04 PM >Subject: Re: [OT] help with a javascript alert > > >> >> >> [founditems] >> the text link >> [/founditems] >> >> should so the trick .. >> Alain >> >> On Thursday, 28 August 2003, at 5:47 PM, Kenneth Grome wrote: >> >> > In my founditems context I want to create links that (when clicked) >> > make an alert box pop open and display the contents of the related db >> > field. >> > >> > I do not want to go to another page, I simply want the alert to pop >> > open so I can read what's in the db field, and then I want to click >> > the "close" button and make the alert go away. >> > >> > My browser is Opera 5 on MacOS9 but I'm hoping that the javascript >> > used for this feature will be simple enough to work on all web >> > browsers that have javascript enabled. >> > >> > Any help is appreciated, thanks. >> > >> > :) >> > >> > -- >> > >> > Sincerely, >> > Kenneth Grome >> > ------------------------------------------------------------- >> > Outsource your WebDNA programming for $18 an hour or less! >> > ------------------------------------------------------------- >> > >> > ------------------------------------------------------------- >> > This message is sent to you because you are subscribed to >> > the mailing list . >> > To unsubscribe, E-mail to: >> > To switch to the DIGEST mode, E-mail to >> > >> > Web Archive of this list is at: http://webdna.smithmicro.com/ >> > >> > >> >> -- >> Alain Russell >> Blackpepper Interactive Ltd >> p. 09 520 6280 | m. 021 446 169 >> http://www.blackpepper.co.nz >> >> >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to > >> Web Archive of this list is at: http://webdna.smithmicro.com/ > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to > >Web Archive of this list is at: http://webdna.smithmicro.com/ -- Sincerely, Kenneth Grome ------------------------------------------------------------- Outsource your WebDNA programming for $18 an hour or less! ------------------------------------------------------------- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [OT] help with a javascript alert ( Kenneth Grome 2003)
  2. Re: [OT] help with a javascript alert ( "WebDna @" 2003)
  3. Re: [OT] help with a javascript alert ( Alain Russell 2003)
  4. [OT] help with a javascript alert ( Kenneth Grome 2003)
Pedro Rivera sent me a better example privately (I say 'better' because his javascript is all self-contained in the link itself, which means I do not have to create my own function) ... and he mentioned the potential problem with the quotes, so here's the code I'm actually using: [founditems] [text]details=[grep search='&replace="][recordDetails][/grep][/text] details [/founditems] By using the onMouseOver I was also able to replace the javascript that appears in the browser's status bar with the same text that's in the alert. This means the visitor only has to pass the cursor over the link to see what's in the recordDetails field -- rather than actually click the link -- which makes this solution even nicer than I was originally hoping for! I didn't test the results by putting a ' character into the recordDetails field but I'm assuming that the grep will take care of it if ever that character appears in the field. I did not try the convertchars solution but it might be better than my grep approach, because the default convertchars db already does the entity conversion of ' as well as other problematic characters. >The thing to keep in mind is that any signle quotes will break this. So you >will need to change the single quotes to the HTML special character that >represents the single quote either in the related.db or use a convert chars >on the href="javascript:alertme('[convertchars][relateddbfield][/convertchars]')"> >and set it in the convetchars database. > > >----- Original Message ----- >From: "Alain Russell" >To: "WebDNA Talk" >Sent: Wednesday, August 27, 2003 11:04 PM >Subject: Re: [OT] help with a javascript alert > > >> >> >> [founditems] >> the text link >> [/founditems] >> >> should so the trick .. >> Alain >> >> On Thursday, 28 August 2003, at 5:47 PM, Kenneth Grome wrote: >> >> > In my founditems context I want to create links that (when clicked) >> > make an alert box pop open and display the contents of the related db >> > field. >> > >> > I do not want to go to another page, I simply want the alert to pop >> > open so I can read what's in the db field, and then I want to click >> > the "close" button and make the alert go away. >> > >> > My browser is Opera 5 on MacOS9 but I'm hoping that the javascript >> > used for this feature will be simple enough to work on all web >> > browsers that have javascript enabled. >> > >> > Any help is appreciated, thanks. >> > >> > :) >> > >> > -- >> > >> > Sincerely, >> > Kenneth Grome >> > ------------------------------------------------------------- >> > Outsource your WebDNA programming for $18 an hour or less! >> > ------------------------------------------------------------- >> > >> > ------------------------------------------------------------- >> > This message is sent to you because you are subscribed to >> > the mailing list . >> > To unsubscribe, E-mail to: >> > To switch to the DIGEST mode, E-mail to >> > >> > Web Archive of this list is at: http://webdna.smithmicro.com/ >> > >> > >> >> -- >> Alain Russell >> Blackpepper Interactive Ltd >> p. 09 520 6280 | m. 021 446 169 >> http://www.blackpepper.co.nz >> >> >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to > >> Web Archive of this list is at: http://webdna.smithmicro.com/ > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to > >Web Archive of this list is at: http://webdna.smithmicro.com/ -- Sincerely, Kenneth Grome ------------------------------------------------------------- Outsource your WebDNA programming for $18 an hour or less! ------------------------------------------------------------- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Kenneth Grome

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:

Number searching/formats (1998) Need help... (1997) supressing math results (1997) Uploading out of FMP (2001) Word wrapping (1997) Trouble with formula.db (1997) RE: [WebDNA] Webstar (2008) [ShowNext] (1997) how to set a new cart number periodically (1999) Clear/Reset form with JavaScript (2001) [WebDNA] Conditional Javascript and WebDNA (2009) How do I get WebCatalog to interpret WebDNA tags in .html files? (1997) WebCat2b13 Command Reference Doc error (1997) Email header munger in [sendmail] (2004) Order not created error (1997) Not reading code (1997) unable to launch acgi in WebCat (1997) [Sum] function? (1997) WebCatalog 3.0.4 alias crash bug? (2000) Unknown error: OrderNotCreated (1997)