dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: HTML newbie needing help with .asp

  1. #1
    Join Date
    Jun 2010
    Location
    Long Island, NY
    Posts
    5

    HTML newbie needing help with .asp

    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

  2. #2
    Join Date
    Jan 2008
    Location
    Florida
    Posts
    1,227
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles