Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > calling doPostBack not working

Reply
Thread Tools

calling doPostBack not working

 
 
Timothy Kelley
Guest
Posts: n/a
 
      07-18-2003
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
http://www.ineedatour.com/smalltour.aspx?ID=2
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>


 
Reply With Quote
 
 
 
 
fadi
Guest
Posts: n/a
 
      07-18-2003
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:...
> 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
> http://www.ineedatour.com/smalltour.aspx?ID=2
> 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>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox doPostBack (LinkButton) not working Mark Olbert ASP .Net 9 10-30-2009 03:26 PM
DoPostBack mthod call not inserted into html when override Render Zuel ASP .Net 4 01-07-2005 08:00 PM
DoPostBack mthod call not inserted into html when override Render Zuel ASP .Net Web Controls 4 01-07-2005 08:00 PM
JS runtime error in doPostBack with control:control form ID Matt Petteys ASP .Net 0 08-14-2003 12:19 PM
doPostBack client-side function Johno ASP .Net 3 07-21-2003 09:02 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57