IIS ASP - How to call an asp-page by a clientside Javascript (syndication)

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > March 2006 > How to call an asp-page by a clientside Javascript (syndication)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to call an asp-page by a clientside Javascript (syndication)
dany

2006-03-19, 12:02 pm

Hello

I want to syndicate some content to other users. (no RSS)

Anybody should be able to publish some information from my
server/database by placing some javascript like:

<script language="JavaScript"
src="http://www.myserver.com/mypage.asp?param1=loremipsum¶m2=dolorsit"></script>

How can I code an ASP-page (on my server) so it returns and inserts
information into a location in an existing webpage (other servers).

Anyone who can help me? A tutorial or some example code would be great

Thx!

dany
Doug

2006-03-25, 11:59 am

Not sure I understand the relationship between the servers, but your asp can
access the parameters through:
<%
dim param1,param2
param1=Request.QueryString("param1")
param2=Request.QueryString("param2")
%>
What you do with them from there could be anything from display...
<% Response.Write(param1) %>
to inserting into a cookie, saving as a session variable, or inserting it
into a database... To help you further requires more information on what you
are trying to do.
--
Doug
Dougs Graphics


"dany" wrote:

> Hello
>
> I want to syndicate some content to other users. (no RSS)
>
> Anybody should be able to publish some information from my
> server/database by placing some javascript like:
>
> <script language="JavaScript"
> src="http://www.myserver.com/mypage.asp?param1=loremipsum¶m2=dolorsit"></script>
>
> How can I code an ASP-page (on my server) so it returns and inserts
> information into a location in an existing webpage (other servers).
>
> Anyone who can help me? A tutorial or some example code would be great
>
> Thx!
>
> dany
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com