Ask a Question related to ASP.NET General, Design and Development.
-
Timothy Kelley #1
calling doPostBack not working
This bug has my application crippled in I.E. 5.0.
I'm calling the __doPostBack Fuction from my custom javascript function
Submit(pict)
It never reaches it in i.e. 5.0
I'm using 1.1 framework. It works fine in i.e. 5.5 and 6.0 but not i.e. 5.0
You can see an example of the problem at
[url]http://www.ineedatour.com/smalltour.aspx?ID=2[/url]
using I.E. 5.0 The pictures will not change.
I'm pretty sure the problem that my custom SubmitPict(pict) function cannot
call __doPostBack('ChangePict',''). It works in the other browsers fine.
<SCRIPT language="javascript">
function SubmitPict(pict)
{
if((pict) && (pict != "")){
document.forms['images'].elements['PictNum'].value = pict;
__doPostBack('ChangePict','');// THIS CODE WILL NOT CALL THE __doPostBack
Function
}
}
</SCRIPT>
//This is the generated __doPostBackFunct
<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("n etscape") > -1) {
theform = document.forms["images"];
}
else {
theform = document.images;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
Timothy Kelley Guest
-
#38816 [Opn]: PHP code that was working perfectly recently stopped working.
ID: 38816 User updated by: mtoohee at gmail dot com -Summary: PHP code that was working perfectly recently stopped.... -
Macromedia Flash Player installed and working properly suddenlys stops working..
No idea what has caused the Flash player to stop working. This is not my machine but a relatives who has asked for help over the T'giving... -
calling Javascript: location.replace('url') inside Flash not working..
Hello, I'm trying to call a Javascript statement via Flash but it will not work the way it normally does when I call it in plain HTML. I'm... -
Conditional doPostBack on Datagrid
I have a ButtonColumn on my datagrid that I would like to post back conditionally. What I would like to see is a JavaScript confirm message that... -
doPostBack client-side function
Whenever you drop a linkbutton on an ASP.NET web form, the following script gets emitted: function __doPostBack(eventTarget, eventArgument) {... -
fadi #2
Re: calling doPostBack not working
ASP.NET is not fully compatible with 5.0 and some of MS documents recommends
running 5.1 or higher. For my client, I recommend 5.5
fadi
"Timothy Kelley" <timdona_remove_this_@mindspring.com> wrote in message
news:epTJMHSTDHA.632@TK2MSFTNGP12.phx.gbl...5.0> This bug has my application crippled in I.E. 5.0.
>
> I'm calling the __doPostBack Fuction from my custom javascript function
> Submit(pict)
> It never reaches it in i.e. 5.0
> I'm using 1.1 framework. It works fine in i.e. 5.5 and 6.0 but not i.e.cannot>
> You can see an example of the problem at
> [url]http://www.ineedatour.com/smalltour.aspx?ID=2[/url]
> using I.E. 5.0 The pictures will not change.
>
> I'm pretty sure the problem that my custom SubmitPict(pict) function> call __doPostBack('ChangePict',''). It works in the other browsers fine.
>
> <SCRIPT language="javascript">
> function SubmitPict(pict)
> {
> if((pict) && (pict != "")){
> document.forms['images'].elements['PictNum'].value = pict;
> __doPostBack('ChangePict','');// THIS CODE WILL NOT CALL THE __doPostBack
> Function
> }
> }
> </SCRIPT>
>
> //This is the generated __doPostBackFunct
> <script language="javascript">
> <!--
> function __doPostBack(eventTarget, eventArgument) {
> var theform;
> if (window.navigator.appName.toLowerCase().indexOf("n etscape") > -1) {
> theform = document.forms["images"];
> }
> else {
> theform = document.images;
> }
> theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
> theform.__EVENTARGUMENT.value = eventArgument;
> theform.submit();
> }
> // -->
> </script>
>
>
fadi Guest



Reply With Quote

