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

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top