Re: [WebDNA] Some JS help please
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105070
interpreted = N
texte = I now have it working as a button, but want it to be text.=http://t3.idfk.net/categories/travel-and-work-and-play/desk-accessories/le=xtra-mouse-rug/RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.auOn 18/03/2010, at 3:05 PM, Stuart Tremain wrote:> Marc>=20> Sorry but it makes no difference.>=20> I can't get the text to change after it has triggered 3 times.>=20>=20> Regards>=20> Stuart Tremain> IDFK Web Developments> AUSTRALIA> webdna@idfk.com.au>=20>=20>=20>=20> On 18/03/2010, at 2:37 AM, Marc Thompson wrote:>=20>> Stuart,>> Try this instead. Untested, but it should work? What the script>> essentially does is toggle the height attribute of the ="infocontainer">> div from 80px to auto.>>=20>> function toggleText2() {>> var ele =3D document.getElementById("infocontainer");>> var text =3D document.getElementById("infotrigger");>> if(ele.style.height =3D=3D "80px") {>> ele.style.display =3D "visible";>> text.innerHTML =3D "[+] more info";>> }>> else {>> ele.style.display =3D "block";>> text.innerHTML =3D "[-] less info";>> }>> }>>=20>> Marc>>=20>> Stuart Tremain wrote:>>> A development site I am working on:>>>=20>>> =http://t3.idfk.net/categories/travel-and-work-and-play/desk-accessories/le=xtra-mouse-rug/>>>=20>>> The red "[+] more info" will show more text when clicked and then =less when "[-] less info" is clicked.>>>=20>>> Now click "[+] more info" again and instead of seeing "[-] less =info" you see "[+] more info" .>>>=20>>> How do I fix this ?>>>=20>>> Regards>>>=20>>> Stuart Tremain>>> IDFK Web Developments>>> AUSTRALIA>>> webdna@idfk.com.au>>>=20>>>=20>>>=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>>> old archives: http://dev.webdna.us/TalkListArchive/>>> Bug Reporting: =http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288>>> .>>>=20>>=20>> --=20>> ------------------------------------------->> Marc Thompson>> Software Engineer>> Office of Information Technology>> University of Utah>> 801.585.9264>> marc.thompson@utah.edu>> ------------------------------------------->> --------------------------------------------------------->> 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>> old archives: http://dev.webdna.us/TalkListArchive/>> Bug Reporting: =http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288>=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> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: =http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288
Associated Messages, from the most recent to the oldest:
I now have it working as a button, but want it to be text.=http://t3.idfk.net/categories/travel-and-work-and-play/desk-accessories/le=xtra-mouse-rug/RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.auOn 18/03/2010, at 3:05 PM, Stuart Tremain wrote:> Marc>=20> Sorry but it makes no difference.>=20> I can't get the text to change after it has triggered 3 times.>=20>=20> Regards>=20> Stuart Tremain> IDFK Web Developments> AUSTRALIA> webdna@idfk.com.au>=20>=20>=20>=20> On 18/03/2010, at 2:37 AM, Marc Thompson wrote:>=20>> Stuart,>> Try this instead. Untested, but it should work? What the script>> essentially does is toggle the height attribute of the ="infocontainer">> div from 80px to auto.>>=20>> function toggleText2() {>> var ele =3D document.getElementById("infocontainer");>> var text =3D document.getElementById("infotrigger");>> if(ele.style.height =3D=3D "80px") {>> ele.style.display =3D "visible";>> text.innerHTML =3D "[+] more info";>> }>> else {>> ele.style.display =3D "block";>> text.innerHTML =3D "[-] less info";>> }>> }>>=20>> Marc>>=20>> Stuart Tremain wrote:>>> A development site I am working on:>>>=20>>> =http://t3.idfk.net/categories/travel-and-work-and-play/desk-accessories/le=xtra-mouse-rug/>>>=20>>> The red "[+] more info" will show more text when clicked and then =less when "[-] less info" is clicked.>>>=20>>> Now click "[+] more info" again and instead of seeing "[-] less =info" you see "[+] more info" .>>>=20>>> How do I fix this ?>>>=20>>> Regards>>>=20>>> Stuart Tremain>>> IDFK Web Developments>>> AUSTRALIA>>> webdna@idfk.com.au>>>=20>>>=20>>>=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>>> old archives: http://dev.webdna.us/TalkListArchive/>>> Bug Reporting: =http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288>>> .>>>=20>>=20>> --=20>> ------------------------------------------->> Marc Thompson>> Software Engineer>> Office of Information Technology>> University of Utah>> 801.585.9264>> marc.thompson@utah.edu>> ------------------------------------------->> --------------------------------------------------------->> 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>> old archives: http://dev.webdna.us/TalkListArchive/>> Bug Reporting: =http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288>=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> old archives: http://dev.webdna.us/TalkListArchive/> Bug Reporting: =http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288
Stuart Tremain
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:
Cumulative Shipping charge calculations - your help please. (1997)
Confused about QTY and QTY* price updating (1998)
Color (2000)
Store builder question (2003)
Protect vs Authenicate (1997)
[group] ? (1997)
Error 551 (2000)
many-to-one problem (1998)
Re:E-Mailer (WebCatb15acgiMac) (1997)
Lookup Notfound (1998)
WCS Newbie question (1997)
WARNING: MacOS The installer is broken... (2000)
searching multiple databases in single search (1997)
Multiple Replaces? (1997)
Maybe minor bug report (1997)
bug in listwords? (1998)
Upgrading old WebCat Database Files (1997)
Error log crashes server? (1999)
Copyfile to length limit for absolute paths (2003)
can you take a look (2003)