Using Javascript in Web Services

H

hashamkhan

Dear All,

I have build a web services that returns product information. In that
web services I want to display some text in the Footer. To get this I
have a .js file constructed. Now I want to use or consume this file in
my web services.

I tried adding the javascript as below
[WEBMETHOD(Description="<script language=javascript
src=/footer.js></script>")]

But its not diaplying the text i wanted rather its displaying "<script
language=javascript src=/footer.js></script>".

Can any one please help me in solving the issue.

Thanks
Hasham
 
G

Guest

(e-mail address removed) wrote in @u72g2000cwu.googlegroups.com:
Dear All,

I have build a web services that returns product information. In that
web services I want to display some text in the Footer. To get this I
have a .js file constructed. Now I want to use or consume this file in
my web services.

I tried adding the javascript as below
[WEBMETHOD(Description="<script language=javascript
src=/footer.js></script>")]

But its not diaplying the text i wanted rather its displaying "<script
language=javascript src=/footer.js></script>".

Can any one please help me in solving the issue.


What client are you using? IE? In this case, IE's web service rendering
does not support consuming of Javascript.

I don't know of any web service clients that CAN consume javascript - but
of course your application might...
 
V

Vins

Hi Hasham

I have a same problem. If you happen to get the solution, do let me
know ;-)

Thanx
Vini

Spam said:
(e-mail address removed) wrote in @u72g2000cwu.googlegroups.com:
Dear All,

I have build a web services that returns product information. In that
web services I want to display some text in the Footer. To get this I
have a .js file constructed. Now I want to use or consume this file in
my web services.

I tried adding the javascript as below
[WEBMETHOD(Description="<script language=javascript
src=/footer.js></script>")]

But its not diaplying the text i wanted rather its displaying "<script
language=javascript src=/footer.js></script>".

Can any one please help me in solving the issue.


What client are you using? IE? In this case, IE's web service rendering
does not support consuming of Javascript.

I don't know of any web service clients that CAN consume javascript - but
of course your application might...
 
H

hashamkhan

Hi

http://groups.google.co.in/group/mi...&q=".asmx"+page&rnum=2&hl=en#27f2aedf7c93fbc6

http://www.perfectxml.com/ASPNetWebSvc.asp?p=1


the above links helped me a bit but again I got error in web.config
file.
Hi Hasham

I have a same problem. If you happen to get the solution, do let me
know ;-)

Thanx
Vini

Spam said:
(e-mail address removed) wrote in @u72g2000cwu.googlegroups.com:
Dear All,

I have build a web services that returns product information. In that
web services I want to display some text in the Footer. To get this I
have a .js file constructed. Now I want to use or consume this file in
my web services.

I tried adding the javascript as below
[WEBMETHOD(Description="<script language=javascript
src=/footer.js></script>")]

But its not diaplying the text i wanted rather its displaying "<script
language=javascript src=/footer.js></script>".

Can any one please help me in solving the issue.


What client are you using? IE? In this case, IE's web service rendering
does not support consuming of Javascript.

I don't know of any web service clients that CAN consume javascript - but
of course your application might...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top