FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

[closed] Ajax onclick

 


escritor
Hello. I have a page. In this page, there's a link. I want you to code an Ajax-based script that will print on the screen a div (stored in another file) when the user clicks on the link. Reward: 100Frih$.

Code:

<a href="#" title="Display images">Display images</a>

<!--
This  shall be added via Ajax only if the user clicks on the link
<div class="img">
<img src="/images/foo.png" alt="Foo" width="100" height="100" />
<img src="/images/foo2.png" alt="Foo2" width="100" height="100" />
</div>
-->


I don't know anything about Ajax. Please make it as simple as possible.


Last edited by escritor on Wed Apr 23, 2008 12:00 pm; edited 1 time in total
wumingsden
Something a little like this maybe?

http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
escritor
Yes, thank you for the link. I browsed some Dynamic Drive page but hadn't find it.
wumingsden
Are you sure thats exactly what you need before I lock the thread?

If you need help with the script then just let me know.

And thank you for the donation.
escritor
I've used this other sample and my code is working already. Thank you for your support.
Reply to topic    Frihost Forum Index -> Miscellaneous -> Marketplace

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.