User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Ajax Page [1]  
Spontaneous
All American
27372 Posts
user info
edit post

Is there anyway to use Ajax to:
a) retrieve HTML pages
and
b) retrieve HTML pages through the anchor tag onclick method and a div element? eg
<a onclick="some_ajax_request()">link</a>
<div> My HTML will appear here </div>

7/8/2009 8:02:16 PM

FroshKiller
All American
51908 Posts
user info
edit post

Yes!



[Edited on July 8, 2009 at 8:03 PM. Reason : although you should use proper event handlers in a good javascript library]

7/8/2009 8:03:28 PM

Ernie
All American
45943 Posts
user info
edit post

http://docs.jquery.com/Ajax

7/8/2009 8:27:50 PM

EuroTitToss
All American
4790 Posts
user info
edit post

Quote :
"Yes!"

7/8/2009 9:39:54 PM

RSXTypeS
Suspended
12280 Posts
user info
edit post

Use prototypejs.org it's really clean and easy to use

tutorials and examples on their site on how to use it. You can use a Ajax updated to update a div with the retrieved HTML page or subcontainer as I like to call them since they aren't full HTML pages with headers and body tags.

7/8/2009 11:35:12 PM

BigMan157
no u
103352 Posts
user info
edit post

FUCK PROTOTYPE USE JQUERY RAWR RAWR RAWR

7/9/2009 8:19:36 AM

philihp
All American
8349 Posts
user info
edit post

FUCK JQUERY USE JAVASCRIPT

7/9/2009 7:42:26 PM

EuroTitToss
All American
4790 Posts
user info
edit post

FUCK JAVASCRIPT USE ELECTRONS

7/9/2009 8:57:42 PM

kiljadn
All American
44689 Posts
user info
edit post

FUCK ELECTRONS USE JESUS

7/9/2009 9:17:51 PM

GenghisJohn
bonafide
10244 Posts
user info
edit post

eh, never messed with jquery.

not to be a fag, but i've been enjoying mootools a lot lately.

[Edited on July 9, 2009 at 11:41 PM. Reason : though obviously its for a lot more than just ajax requests]

7/9/2009 11:40:43 PM

dakota_man
All American
26584 Posts
user info
edit post

lol, web development.

7/10/2009 12:14:27 AM

 Message Boards » Tech Talk » Ajax Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.