Ask a Question related to ASP.NET General, Design and Development.
-
Krishna #1
Calling Javascript function
Hi all,
Can i call my javascript functions from the web controls.Any appropriate
site which will be tell more on this will be helpfull.
Regards..,
Krishna
Krishna Guest
-
Calling Flash function from Javascript
Hi everyone, I am desperately trying to call a Flash function (myfunction) from javascript... I believe the function has to be made accessible by... -
Calling a javascript function from flash
Is it possible to call script functions from a flash object that the flash object will only be able to access once it is placed on an html page? ... -
Calling Javascript function using MM_Menu code
Hello All, I am trying to call a javascript function in a drop-down menu create from Fireworks the old "MM_Menu" code. I want my javascript to... -
calling a flash function from Javascript
Hello everybody I want to call an ActionScript from the Website maybe using fscommand, but I don't know how to do it. Can anybody help me to... -
Calling an external javascript function from within Flash
Hello all: I'm a bit of a newbie in Flash, so if this has been adressed elsewhere, please forgive cause I can't find it. I would like to be... -
Teemu Keiski #2
Re: Calling Javascript function
I have discussed about similar feature on ASP.NET Forums:
[url]http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=267756[/url]
--
Teemu Keiski
MCP, Designer/Developer
Mansoft tietotekniikka Oy
[url]http://www.mansoft.fi[/url]
ASP.NET Forums Moderator, [url]www.asp.net[/url]
AspAlliance Columnist, [url]www.aspalliance.com[/url]
Email:
[email]joteke@aspalliance.com[/email]
"Krishna" <gk_ananth@hotmail.com> wrote in message
news:ufxMCZLRDHA.1560@TK2MSFTNGP12.phx.gbl...> Hi all,
>
> Can i call my javascript functions from the web controls.Any appropriate
> site which will be tell more on this will be helpfull.
>
> Regards..,
> Krishna
>
>
Teemu Keiski Guest
-
Kevin Spencer #3
Re: Calling Javascript function
JavaScript executes on the client side. It is sent to the client as
scripting embedded in the HTML of a page. Therefore, you cannot interact
directly with JavaScript on the server side. You CAN, however, add
JavaScript to a page on the server, which will execute when the page loads
in the browser. You can do this by using the
Page.RegisterClientScriptBlock() and Page.RegisterStartupScript() methods.
HTH,
Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
[url]http://www.takempis.com[/url]
Some things just happen.
Everything else occurs.
"Krishna" <gk_ananth@hotmail.com> wrote in message
news:ufxMCZLRDHA.1560@TK2MSFTNGP12.phx.gbl...> Hi all,
>
> Can i call my javascript functions from the web controls.Any appropriate
> site which will be tell more on this will be helpfull.
>
> Regards..,
> Krishna
>
>
Kevin Spencer Guest
-
pat sinnott #4
Re: Calling Javascript function
Hi
I don't actually think it is this complicated.
You call use Javascript with server side controls exactly
as you use it with normal clientside HTML controls. There
are however a few caveats.
If the name of a server side event clashes with the name
of the client side event this will lead to a problem.
So for instance if you are programming javascript against
a webform button control you will need to use the
onMousedown client side event rather than the onclick
event as the there is an event named onclick on the server
side.
You will have no intellisense when you write the
javascript code against the server side controls as these
controls do not actually exist till they are rendered as
HTML when the application executes.
Also when referencing the control reference it as
document.all rather than document.Form1, I have sometimes
had problems with the latter syntax.
Regards,
Pat Sinnott MCSD
client as>-----Original Message-----
>JavaScript executes on the client side. It is sent to thecannot interact>scripting embedded in the HTML of a page. Therefore, youhowever, add>directly with JavaScript on the server side. You CAN,when the page loads>JavaScript to a page on the server, which will executePage.RegisterStartupScript() methods.>in the browser. You can do this by using the
>Page.RegisterClientScriptBlock() andcontrols.Any appropriate>
>HTH,
>
>Kevin Spencer
>Microsoft FrontPage MVP
>Internet Developer
>[url]http://www.takempis.com[/url]
>Some things just happen.
>Everything else occurs.
>
>"Krishna" <gk_ananth@hotmail.com> wrote in message
>news:ufxMCZLRDHA.1560@TK2MSFTNGP12.phx.gbl...>> Hi all,
>>
>> Can i call my javascript functions from the web>>> site which will be tell more on this will be helpfull.
>>
>> Regards..,
>> Krishna
>>
>>
>
>.
>pat sinnott Guest
-
Kevin Spencer #5
Re: Calling Javascript function
?????
HTH,
Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
[url]http://www.takempis.com[/url]
Some things just happen.
Everything else occurs.
"pat sinnott" <pat.sinnott@equitant.com> wrote in message
news:89a401c34564$41ad7a00$a401280a@phx.gbl...> Hi
>
> I don't actually think it is this complicated.
>
> You call use Javascript with server side controls exactly
> as you use it with normal clientside HTML controls. There
> are however a few caveats.
>
> If the name of a server side event clashes with the name
> of the client side event this will lead to a problem.
> So for instance if you are programming javascript against
> a webform button control you will need to use the
> onMousedown client side event rather than the onclick
> event as the there is an event named onclick on the server
> side.
>
> You will have no intellisense when you write the
> javascript code against the server side controls as these
> controls do not actually exist till they are rendered as
> HTML when the application executes.
> Also when referencing the control reference it as
> document.all rather than document.Form1, I have sometimes
> had problems with the latter syntax.
>
> Regards,
>
> Pat Sinnott MCSD
>
>> client as> >-----Original Message-----
> >JavaScript executes on the client side. It is sent to the> cannot interact> >scripting embedded in the HTML of a page. Therefore, you> however, add> >directly with JavaScript on the server side. You CAN,> when the page loads> >JavaScript to a page on the server, which will execute> Page.RegisterStartupScript() methods.> >in the browser. You can do this by using the
> >Page.RegisterClientScriptBlock() and> controls.Any appropriate> >
> >HTH,
> >
> >Kevin Spencer
> >Microsoft FrontPage MVP
> >Internet Developer
> >[url]http://www.takempis.com[/url]
> >Some things just happen.
> >Everything else occurs.
> >
> >"Krishna" <gk_ananth@hotmail.com> wrote in message
> >news:ufxMCZLRDHA.1560@TK2MSFTNGP12.phx.gbl...> >> Hi all,
> >>
> >> Can i call my javascript functions from the web> >> >> site which will be tell more on this will be helpfull.
> >>
> >> Regards..,
> >> Krishna
> >>
> >>
> >
> >.
> >
Kevin Spencer Guest
-
Kevin Spencer #6
Re: Calling Javascript function
Thanks Pat! You had me lost there!
Kevin Spencer
..Net Developer
Microsoft MVP
[url]http://www.takempis.com[/url]
Big things are made up
of lots of little things
"Pat Sinnott" <Pat.sinnott@equitant.com> wrote in message
news:064401c3461c$fcf15990$a001280a@phx.gbl...> Hi Kevin
>
> Sorry I thought the query related to calling javascript
> functions from the HTML representation of the server
> control.
>
> Pat.> exactly> >-----Original Message-----
> >?????
> >
> >HTH,
> >
> >Kevin Spencer
> >Microsoft FrontPage MVP
> >Internet Developer
> >[url]http://www.takempis.com[/url]
> >Some things just happen.
> >Everything else occurs.
> >
> >"pat sinnott" <pat.sinnott@equitant.com> wrote in message
> >news:89a401c34564$41ad7a00$a401280a@phx.gbl...> >> Hi
> >>
> >> I don't actually think it is this complicated.
> >>
> >> You call use Javascript with server side controls> There> >> as you use it with normal clientside HTML controls.> against> >> are however a few caveats.
> >>
> >> If the name of a server side event clashes with the name
> >> of the client side event this will lead to a problem.
> >> So for instance if you are programming javascript> server> >> a webform button control you will need to use the
> >> onMousedown client side event rather than the onclick
> >> event as the there is an event named onclick on the> these> >> side.
> >>
> >> You will have no intellisense when you write the
> >> javascript code against the server side controls as> sometimes> >> controls do not actually exist till they are rendered as
> >> HTML when the application executes.
> >> Also when referencing the control reference it as
> >> document.all rather than document.Form1, I have> the> >> had problems with the latter syntax.
> >>
> >> Regards,
> >>
> >> Pat Sinnott MCSD
> >>
> >>
> >> >-----Original Message-----
> >> >JavaScript executes on the client side. It is sent to> you> >> client as
> >> >scripting embedded in the HTML of a page. Therefore,> helpfull.> >> cannot interact
> >> >directly with JavaScript on the server side. You CAN,
> >> however, add
> >> >JavaScript to a page on the server, which will execute
> >> when the page loads
> >> >in the browser. You can do this by using the
> >> >Page.RegisterClientScriptBlock() and
> >> Page.RegisterStartupScript() methods.
> >> >
> >> >HTH,
> >> >
> >> >Kevin Spencer
> >> >Microsoft FrontPage MVP
> >> >Internet Developer
> >> >[url]http://www.takempis.com[/url]
> >> >Some things just happen.
> >> >Everything else occurs.
> >> >
> >> >"Krishna" <gk_ananth@hotmail.com> wrote in message
> >> >news:ufxMCZLRDHA.1560@TK2MSFTNGP12.phx.gbl...
> >> >> Hi all,
> >> >>
> >> >> Can i call my javascript functions from the web
> >> controls.Any appropriate
> >> >> site which will be tell more on this will be> >> >> >>
> >> >> Regards..,
> >> >> Krishna
> >> >>
> >> >>
> >> >
> >> >
> >> >.
> >> >
> >
> >.
> >
Kevin Spencer Guest



Reply With Quote

