/    Sign up×
Community /Pin to ProfileBookmark

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( &lt;%=
wwWebUtils.EncodeJsString(“http://www.mydistributor_api.asp?id=8731&amp;switch=1”)
%&gt; );</script></span></span><br>

It doesn’t seem to work though! I’m new to coding web pages, any help anyone has would be appreciated!!!

Bill

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@billbo1970authorJun 18.2010 — minor correction, had an editor error in part of my script there:

<script>alert( <%=

wwWebUtils.EncodeJsString("http://www.mydistributor_api.asp?id=8731&amp;switch=1")

%>; );</script>
Copy linkTweet thisAlerts:
@CFHuttonJun 18.2010 — 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( &lt;%=

wwWebUtils.EncodeJsString("http://www.mydistributor_api.asp?id=8731&amp;switch=1")

%&gt; );</script></span></span><br>


It doesn't seem to work though! I'm new to coding web pages, any help anyone has would be appreciated!!!


Bill[/QUOTE]


Try this forum: forum
Copy linkTweet thisAlerts:
@billbo1970authorJun 18.2010 — Thanks for the response CF. I've posted it there, but that forum doesn't quite seem to fit. It's a client side issue, not server. If I put my query directly into a browser, it does return results. I just can't get those results to embed in my page, next to "Stock: " ?
×

Success!

Help @billbo1970 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...