How to load a URL for an element?

J

justaguy

Hi,

Here's what I'd like to do, for a content heavy page, I'd like to
first present brief info about each item and then upon a click to
trigger ajax call to load a separate URL to provide more details info
for the item in questions.

Code snip.
<div id="a1"
onclick="document.getElementById('eng').innerHTML={ url };document.getElementById('a1detail').style.display='block'}">
Item 1
</div>
<div id="a1detal" style="display:none"></div>

How do we call the above url, be a1detail.html or else?

And we need cross browser support as well.

Thanks in advance.
 
J

justaguy

Hi,

Here's what I'd like to do, for a content heavy page, I'd like to
first present brief info about each item and then upon a click to
trigger ajax call to load a separate URL to provide more details info
for the item in questions.

Code snip.
<div id="a1"
onclick="document.getElementById('eng').innerHTML={ url };document.getElementById('a1detail').style.display='block'}">
Item 1
</div>
<div id="a1detal" style="display:none"></div>

How do we call the above url, be a1detail.html or else?

And we need cross browser support as well.

Thanks in advance.

Never mind, I've solved it, the key is xmlhttp...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top