Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ajax Link in Div

    Basically i have no idea where to put this since its basically a outside script from joomla framework but i will be calling it from the joomla site with php.


    anyway how can i display a link based on a variable

    this doesnt and i know it, What would be the right way to send a link to the div?
    Code:
    document.getElementById('composer').innerHTML = "<b>Read More About</b>: <a href= "<a href='http:/sitename.com/folder/" + aj_results[8]> linkname</a>">;
    basically i would like to know how to get the above example to work. then from just that is it possible. to then make linkname another variable
    Code:
    document.getElementById('composer').innerHTML = "<b>Read More About</b>: <a href= "<a href='http:/sitename.com/folder/" + aj_results[8]> " + aj_results[9]</a>">;
    this works to display the url where result 5 is to make a image show up
    Code:
    document.getElementById('picture').innerHTML = "<img src=http://sitename.com/folder/" + aj_results[5] +" width='150' height='150'>";
    Last edited by Vizionz; 06-27-2010 at 04:07 AM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •