Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-27-2010, 02:57 AM   PM User | #1
Vizionz
New to the CF scene

 
Join Date: Jun 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Vizionz is an unknown quantity at this point
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 03:07 AM..
Vizionz is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:43 AM.


Advertisement
Log in to turn off these ads.