May 12, 2006 #1 borntorun MIS Joined Oct 16, 2003 Messages 82 Location GB HI, I have a javascript loop that gets a users settings, from this i would like to dynamically on a web page create the users html links. For example she selects companies i will create links to the companies they selected. Thanks.
HI, I have a javascript loop that gets a users settings, from this i would like to dynamically on a web page create the users html links. For example she selects companies i will create links to the companies they selected. Thanks.
May 12, 2006 #2 BabyJeffy Programmer Joined Sep 10, 2003 Messages 4,189 Location GB Excellent. Let us know if you run into any difficulties. Cheers, Jeff [tt]Jeff's Page @ Code Couch http://www.codecouch.com/jeff/blog/http://www.coedit.co.uk/[/tt] What is Javascript? FAQ216-6094 Upvote 0 Downvote
Excellent. Let us know if you run into any difficulties. Cheers, Jeff [tt]Jeff's Page @ Code Couch http://www.codecouch.com/jeff/blog/http://www.coedit.co.uk/[/tt] What is Javascript? FAQ216-6094
May 12, 2006 Thread starter #3 borntorun MIS Joined Oct 16, 2003 Messages 82 Location GB Can you help me add the links? How do i dynamically generate html links for a list of say 5 to 10 items? Thanks. Upvote 0 Downvote
Can you help me add the links? How do i dynamically generate html links for a list of say 5 to 10 items? Thanks.
May 12, 2006 1 #4 BillyRayPreachersSon Programmer Joined Dec 8, 2003 Messages 17,047 Location GB Many ways: Code: document.write('<a href="something.html">link</a>'); or Code: document.getElementById('linkContainer').innerHTML = '<a href="something.html">link</a>'; ... <div id="linkContainer"></div> are two of the many ways. Hope this helps, Dan Coedit Limited - Delivering standards compliant, accessible web solutions [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt] Upvote 0 Downvote
Many ways: Code: document.write('<a href="something.html">link</a>'); or Code: document.getElementById('linkContainer').innerHTML = '<a href="something.html">link</a>'; ... <div id="linkContainer"></div> are two of the many ways. Hope this helps, Dan Coedit Limited - Delivering standards compliant, accessible web solutions [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt]
May 12, 2006 Thread starter #5 borntorun MIS Joined Oct 16, 2003 Messages 82 Location GB Perfect thanks Upvote 0 Downvote