Click to See Complete Forum and Search --> : HTML newbie needing help with .asp


billbo1970
06-18-2010, 07:55 AM
Hello everybody,

I'm kind of teaching myself html as I code the webpages for my site. I want to embed an .asp call into my webpage, to show the quantity in stock of a particular item.

I'm coding something like the below:
where "?id=" refers to the product ID, and "switch=1" calls up the quantity on hand at my distributor.

<span style="color: rgb(255, 0, 0);"><span
style="font-size: large;">
Stock:
<script>alert( <%=
wwWebUtils.EncodeJsString("http://www.mydistributor_api.asp?id=8731&amp;switch=1")
%> );</script></span></span><br>


It doesn't seem to work though!

It displays: Stock:

I'm new to coding web pages, any help anyone has would be appreciated!!!


Bill

yamaharuss
06-24-2010, 01:35 PM
You are not going to be able to display ASP content in an HTML document (unless the hosting server is configured to do so.. which is unlikely.)

You may need to look into doing some sort of a remote AJAX call.