Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Thursday, March 29, 2012

Newbie : aspx and javascript

Hello,
Is it possible to call an aspx page from an html page (via javascript)
and get some return value from the aspx? I want to get a string from
the aspx and add it to a div, something like :
myDiv.innerHTML += returnValueFromAspx;
Thanks in advance for the response.There are several ways, probably the easiest for a beginner is to use the
browser's built-in XMLHTTPRequest object, and get the string back in the
ResponseText proeperty. Then you just do
document.getElementById('myDiv').innerHTML= myXmlHttp.ResponseText;
Pete
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Bartlett" wrote:

> Hello,
> Is it possible to call an aspx page from an html page (via javascript)
> and get some return value from the aspx? I want to get a string from
> the aspx and add it to a div, something like :
> myDiv.innerHTML += returnValueFromAspx;
> Thanks in advance for the response.
>
Read this easy tutorial on Ajax
http://www.w3schools.com/ajax/default.asp
and check out the ajax section at
http://ajax.asp.net/default.aspx?tabid=47--
Regards
John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
"Bartlett" <stef_chr@.yahoo.fr> wrote in message
news:1164902904.001338.81740@.l12g2000cwl.googlegroups.com...
> Hello,
> Is it possible to call an aspx page from an html page (via javascript)
> and get some return value from the aspx? I want to get a string from
> the aspx and add it to a div, something like :
> myDiv.innerHTML += returnValueFromAspx;
> Thanks in advance for the response.
>

Newbie : aspx and javascript

Hello,

Is it possible to call an aspx page from an html page (via javascript)
and get some return value from the aspx? I want to get a string from
the aspx and add it to a div, something like :
myDiv.innerHTML += returnValueFromAspx;

Thanks in advance for the response.Read this easy tutorial on Ajax
http://www.w3schools.com/ajax/default.asp
and check out the ajax section at
http://ajax.asp.net/default.aspx?tabid=47--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
"Bartlett" <stef_chr@.yahoo.frwrote in message
news:1164902904.001338.81740@.l12g2000cwl.googlegro ups.com...

Quote:

Originally Posted by

Hello,
>
Is it possible to call an aspx page from an html page (via javascript)
and get some return value from the aspx? I want to get a string from
the aspx and add it to a div, something like :
myDiv.innerHTML += returnValueFromAspx;
>
Thanks in advance for the response.
>

Monday, March 26, 2012

Newbie client side JavaScript debugging issue

Hello.

I apologise for the potential stupidity of this question in advance.

After doing a lot of server side ASP.NET coding and debugging, I've
had to do a little bit of client side java script.

My problem is that I've made a mistake somewhere, and all the browser
tells me is "Error on page". I've tried setting break points inside
Visual Studio.NET, but they don't get "fired".

As a result of this, I don't have any idea what mistake/s I have made.

Basically, can someone please give this newbie some advice as to how I
can effectively debug and track down my client side javascript bugs
inside Visual Studio.NET

Thank you very much.

Robert.Does this help you?

http://support.microsoft.com/defaul...kb;en-us;317094
http://msdn.microsoft.com/library/d...application.asp
http://msdn.microsoft.com/library/d...ptdebugging.asp

--
Carsten Thomsen
Enterprise Development with Visual Studio .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
".NET Developer" <pleasereplytogroups@.hotmail.com> wrote in message
news:66900ea6.0308020327.dd6c318@.posting.google.co m...
> Hello.
> I apologise for the potential stupidity of this question in advance.
> After doing a lot of server side ASP.NET coding and debugging, I've
> had to do a little bit of client side java script.
> My problem is that I've made a mistake somewhere, and all the browser
> tells me is "Error on page". I've tried setting break points inside
> Visual Studio.NET, but they don't get "fired".
> As a result of this, I don't have any idea what mistake/s I have made.
> Basically, can someone please give this newbie some advice as to how I
> can effectively debug and track down my client side javascript bugs
> inside Visual Studio.NET
> Thank you very much.
> Robert.
Many thanks Carsten!
- Robert.

"CT" <carstent@.spammersgowaydotnetservices.biz> wrote in message news:<ueK3zuOWDHA.1480@.tk2msftngp13.phx.gbl>...
> Does this help you?
> http://support.microsoft.com/defaul...kb;en-us;317094
> http://msdn.microsoft.com/library/d...application.asp
> http://msdn.microsoft.com/library/d...ptdebugging.asp
> --
> Carsten Thomsen
> Enterprise Development with Visual Studio .NET, UML, and MSF
> http://www.apress.com/book/bookDisplay.html?bID=105
> ".NET Developer" <pleasereplytogroups@.hotmail.com> wrote in message
> news:66900ea6.0308020327.dd6c318@.posting.google.co m...
> > Hello.
> > I apologise for the potential stupidity of this question in advance.
> > After doing a lot of server side ASP.NET coding and debugging, I've
> > had to do a little bit of client side java script.
> > My problem is that I've made a mistake somewhere, and all the browser
> > tells me is "Error on page". I've tried setting break points inside
> > Visual Studio.NET, but they don't get "fired".
> > As a result of this, I don't have any idea what mistake/s I have made.
> > Basically, can someone please give this newbie some advice as to how I
> > can effectively debug and track down my client side javascript bugs
> > inside Visual Studio.NET
> > Thank you very much.
> > Robert.

Thursday, March 22, 2012

newbie in asp.net need help

Hi everyone,
I have a asp:listbox control. I want to have a javascript function that
detect the onselectedindexchanged and then make another textbox visible.
It just like the old fashion way in asp <select onchanged="myfunction()" >.
But with asp.net control i can't do that anymore on client-side
Please help ...Yes, you can.
myListBox.Attributes["onchanged"]="myfunction()";
Eliyahu
"hoaian" <hoaian@.yahoo.com> wrote in message
news:uA3mP8JWGHA.1084@.TK2MSFTNGP04.phx.gbl...
> Hi everyone,
> I have a asp:listbox control. I want to have a javascript function that
> detect the onselectedindexchanged and then make another textbox visible.
> It just like the old fashion way in asp <select onchanged="myfunction()"
> Please help ...
>
>

newbie in asp.net need help

Hi everyone,

I have a asp:listbox control. I want to have a javascript function that
detect the onselectedindexchanged and then make another textbox visible.
It just like the old fashion way in asp <select onchanged="myfunction()" >.
But with asp.net control i can't do that anymore on client-side

Please help ...Yes, you can.

myListBox.Attributes["onchanged"]="myfunction()";

Eliyahu

"hoaian" <hoaian@.yahoo.com> wrote in message
news:uA3mP8JWGHA.1084@.TK2MSFTNGP04.phx.gbl...
> Hi everyone,
> I have a asp:listbox control. I want to have a javascript function that
> detect the onselectedindexchanged and then make another textbox visible.
> It just like the old fashion way in asp <select onchanged="myfunction()"
> >. But with asp.net control i can't do that anymore on client-side
> Please help ...
>