Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

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 10-09-2009, 11:37 AM   PM User | #1
gioscarab
New to the CF scene

 
Join Date: Oct 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
gioscarab is an unknown quantity at this point
JQuery put text into a div onclick

Hi guys I learn how to let blink links with fading onclick.
But now I would like to put text and pictures in a page div when I click on a link without load again the page. How can I script it?
This is my noob script for links:
<script type="text/javascript">
$("a").click(function(event){
event.preventDefault();
$(this).fadeOut("slow");
$(this).fadeIn("slow");
});
</script>
gioscarab is offline   Reply With Quote
Old 10-09-2009, 05:16 PM   PM User | #2
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
The ajax function load() will fill in a div (or whatever container) from another source (such as an html page or PHP script or whatever).

http://docs.jquery.com/Ajax/load#urldatacallback
__________________
Fumigator 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 03:12 AM.


Advertisement
Log in to turn off these ads.