WebTechNZ
04-29-2007, 07:25 AM
1) Script Title: Ajax Tabs Content script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe problem:
I am sure there is an easy explaination for this but I cannot find the answer to it. I am trying to run .asp files inside the list items below. It works if I rename the files to .htm but the asp code does not run accordingly. Can someone please advise me on how I can run .asp files as content within Ajax Tab's?
<ul id="maintab" class="shadetabs">
<li class="selected"><a href="representative.asp" rel="ajaxcontentarea">REPRESENTATIVE</a></li>
<li><a href="customer.asp" rel="ajaxcontentarea">CUSTOMER</a></li>
<li><a href="freetrial.asp" rel="ajaxcontentarea">FREE TRIAL</a></li>
</ul>
<div id="ajaxcontentarea" class="contentstyle">
</div>
<script type="text/javascript" language="Javascript">
//Start Ajax tabs script for UL with id="maintab" Separate multiple ids each with a comma.
startajaxtabs("maintab")
</script>
I found this comment (below) from one of the other members on this site in regards to this but can't quite get the gist of it:
"You cannot include PHP code in an HTML document (with the extension .html, unless you have the MIME type set as application/x-httpd-php). The AJAX can call any type of web document (such as PHP, ASP, Perl, XML, HTML, etc) as long as the page exists on the server."
I would appreciate any help you good people can offer.
Thanks in advance.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe problem:
I am sure there is an easy explaination for this but I cannot find the answer to it. I am trying to run .asp files inside the list items below. It works if I rename the files to .htm but the asp code does not run accordingly. Can someone please advise me on how I can run .asp files as content within Ajax Tab's?
<ul id="maintab" class="shadetabs">
<li class="selected"><a href="representative.asp" rel="ajaxcontentarea">REPRESENTATIVE</a></li>
<li><a href="customer.asp" rel="ajaxcontentarea">CUSTOMER</a></li>
<li><a href="freetrial.asp" rel="ajaxcontentarea">FREE TRIAL</a></li>
</ul>
<div id="ajaxcontentarea" class="contentstyle">
</div>
<script type="text/javascript" language="Javascript">
//Start Ajax tabs script for UL with id="maintab" Separate multiple ids each with a comma.
startajaxtabs("maintab")
</script>
I found this comment (below) from one of the other members on this site in regards to this but can't quite get the gist of it:
"You cannot include PHP code in an HTML document (with the extension .html, unless you have the MIME type set as application/x-httpd-php). The AJAX can call any type of web document (such as PHP, ASP, Perl, XML, HTML, etc) as long as the page exists on the server."
I would appreciate any help you good people can offer.
Thanks in advance.