|
| akourkoumelis : On March 07, 2008 5:32 PM said: |
Hi,
Can I invoke server side calls from javascript without invoking a web service?
|
|
|
| JoeStagner : On March 15, 2008 12:48 PM said: |
Sure - you can use GET and OST directly.
|
|
|
| ShijuKadamala : On March 27, 2008 10:35 AM said: |
When you are calling web service class from JavaScript, remember to call with full qualifier for the web service class.
|
|
|
| darthocellaris : On March 28, 2008 12:12 PM said: |
my javascript is weak so correct me here. You misspelled 'return' in the script and the popup still shows. There is an error on the page still though. How is this possible? I would have expected no popup.
|
|
|
| eunicep : On April 07, 2008 12:42 AM said: |
darthocellaris: I had the same problem encountering javascript error stating 'SimpleService' is undefined. I figured out that a namespace is needed. Here, the namespace I used is AJAXEnabledWebSite1.
ret = AJAXEnabledWebSite1.SimpleService.SayHello(document.getElem entById('Text1').value, OnComplete, OnTimeOut, OnError);
|
|
|
| JoeStagner : On April 14, 2008 8:55 PM said: |
darth.... browsers handle JS errors differently but often try to keep going, especially if you have client errors turned off in the browser.
|
|
|
| anat2403 : On April 20, 2008 1:35 PM said: |
Suppose the Name entered is 'Anat' and I want to keep this value in a session field or somewhwere in the server. How can I use the web service to get this value?
Thankyou
Anat
|
|
|
| DarkKnight671 : On April 23, 2008 7:50 AM said: |
Anat raises an interesting point - is there a way to sync server-controls with what gets changed as a result of the callback? I.E. - if we change a list of values (say, a dropdownlist), viewstate is not updated on the server and any selections may no longer be valid...
|
|
|
| gladston_raj : On May 27, 2008 7:54 AM said: |
When i try to return a data table from the web service it is throwing a error "A circular reference has been detected while serializing an object of type 'System.Reflection.Module'
", why this error is comming and how can i over come this error
|
|
|
| JoeStagner : On May 27, 2008 1:42 PM said: |
You can't automagically pass all server side objects to your client side code.
Try manually serializing your Table to JSON or POX and then you can process the data sumply in your clint side Javascript code.
|
|
|
| hasan_houshmand : On June 01, 2008 11:29 AM said: |
Hi Sir!
I'm from Iran.
As you see my name is hasan.
These Videos are really helpfull.
Special Thanks to you.
But Ineed Your Help because really i want to learn AJAX.
When i need your help, Do you help me?
|
|
|
| ITSASPDOTNET : On June 24, 2008 9:34 PM said: |
JoeStagner, you have mentioned that we have to use GET and POST directly, to invoke invoke server side calls from javascript without invoking a web service.
Do you have any sample for this? or can you please let me know in detail how can I achieve this?
I would like to use it.
|
|
|
| Sarkie : On July 01, 2008 5:53 AM said: |
In 3.5 or 2008 it shows for the
var ret = SimpleService.SayHello(document.getElementById('Text1').val ue, OnSuccess,OnFailure, "UserContextDataHere");
Only OnSuccess and OnFailure, no OnTimeout and allows UserContext data being sent around etc.
This correct?
Sarkie
|
|
|
| JoeStagner : On July 15, 2008 8:28 AM said: |
Sarkie - that's correct. If the error is a time-out the error message will contain that data,
|
|
|
| claooigt : On July 16, 2008 5:27 AM said: |
Great show case...
Questions: If my business logic need to wait until server callback complete before I can proceed to the next line of code, how I can do it? Any sample?
For example, before save a record, I validate on duplicate entry against database records. If web method return "0", then only I proceed with the next validation. Please advise.
Thanks!
|
|
|
| toakes : On July 28, 2008 9:44 PM said: |
I'm having the same error that eunicep was having - a Javascript error that states that the service name is undefined. I'm not sure where to find the namespace for the site?
Can anyone point me in the right direction?
Thanks!
|
|
|
| toakes : On July 28, 2008 10:45 PM said: |
I solved my problem by registering the web service in VS.
|
|
|
| new_to_ajax : On August 01, 2008 3:40 PM said: |
Hi Joe,
How can I call server side method (public method in codebehind class) from javascript similar to the call that you made to web service?
Thanks,
-Asif
|
|
|
| cv_vikram : On August 06, 2008 1:26 PM said: |
It is simple and good....
|
|
|
| sonalbagdiya : On August 06, 2008 5:30 PM said: |
Hi Asif,
You can call server side method by calling onserverclick=method() on html button in source rather than calling onclick for html button.
Thanks
|
|
|
| liujack123@hotmail.com : On August 18, 2008 11:12 PM said: |
hello
I followed the vedio and do what he did in the vedio,then run the website,and i click the button,but no popup .there is nothing while I am clicking,what happened? could any one tell me about it .thank u
|
|
|
| S.Pirashanth : On August 28, 2008 6:56 AM said: |
Many thanks Joe for the excellent video series
|
|
|
| nolazabal : On September 18, 2008 5:58 PM said: |
Hello Joe,
I would be interested to know if the same calls you made in this example in an aspx page can be made from a simple html page.
The reason is that I have some existing web services I would like to use on some old html pages.
|
|
|
| nsuresh_rasr : On September 25, 2008 11:32 AM said: |
very good article... really helpful....
|
|
|
| emre.kocyigit : On October 07, 2008 7:51 PM said: |
I appreciate these series a lot htnak you!
May I ask you sth tough .. which server side types are ready to go for this and which need to be manually serialized?
string and int only I suppose .. you know web is big .. its easy just to pop up a question here .. you know the best programmer is the lazy one :)
cheers!
|
|
|
| Demien : On October 16, 2008 9:32 AM said: |
Thanks for videos!
I've got a question: is there any way to call client javascript after UpdatePanel postback is done?
|
|
|
|
|
| tajenli : On November 06, 2008 7:58 PM said: |
I open your sample project as a Web Site in VB 2008. Everything works fine.
But when I import the 2 items .aspx & .asmx into an ASP.NET web application. I keep getting "SimpleService" is undefined error.
What I need to do to fix this problem for it to run under ASP.NET web application?
Thanks
|
|