Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: Browser not submitting ASP.NET form

Since I am on an anti-adobe tirade, I would also point out a specific problem I have with 2k of whitespace

inserted by cold fusion. This is irrelevant to an html renderer but it doubles the size of my page.

It turns out, AFAIK and I really didn't want to learn the details, that all of the cfm and cfc white

space gets output ( at least that is what I empirically determined by removing source code formating).

I don't know if it is laziness or ignorance but eventually all of these little things add up.

You've probably seen at least a few brower hangs at zero or 100 cpu on an Acrobat/ pdf page too.

Nothing is completely "perfect" by anyone's needs but making at least a token effort to keep

things clean can make a big difference in the final result. FWIW.

 

New Contributor
Posts: 3
Registered: ‎12-10-2008
My Device: Not Specified

Re: Browser not submitting ASP.NET form

Hi, I am having trouble with a simple form created with VS2008.  When rendered on my Bold 9700, the form will not submit.  I am attempting to suibmit by clicking on the button, which has a standard onclick event which is handled by JavaScript.  I have checked the browser settings, and JavaScript is enabled.  I have disabled ViewState in favor of managing this on my own using a couple of hidden fields; I want to avoid debates/issues over "too much ViewState".  This page works just fine on FireFox 3.6 (on Windows XP).  And it renders fine in the Blackberry browser -- except that the submit doesn't work.

 

One of the things that is confusing me is the inclusion of the JavaScript file "InternedData0" and the CSS file "InternedData1".  I presume that the JS file contains the declaration of the standard ASP.NET __doPostBack() function.

 

What am I missing?  This should be simple, right?

 

Thanks in advance for your help.

 

------------------------ begin HTML source ---------------------------------

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>
    
</title><meta http-equiv="Expires" content="Tue, 02-Dec-1993 12:34:56 GMT"><meta http-equiv="Cache-Control" content="no-cache, must-revalidate"><meta http-equiv="Pragma" content="no-cache">

<style type="application/vnd.rim.css" src="InternedData0"></style>

</meta>

    <body>
    
    

<table id="banner" cellspacing="0" cellpadding="2" width="100%" border="0">
    <tbody><tr>
        <td><img src="/images/major/wd_only_262.jpg" height="56" width="262" alt="wd" border="0"></img>
        <td valign="middle">
            <span class="SiteNameText pageHeader">SAS</span>
        </td>
    </td>
</tr></tbody>

    <div>
        
        <center>
        <form method="post" action="404.aspx?404%3bhttp%3a%2f%2fmm7.me%3a80%2fx%2faxzbv578" id="aspnetForm">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTc0NDc0OTYzM2RkrTtQaktjpYpQYbY6Ngp0gIQgb84=">

<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBALw05bVBgKSyOtMAqvYxsIMArbMxh+CCXImqhw6GpqvpIJ9YFYMxCUhYA==">
        <table>
            <tbody><tr>
                <td colspan="2">
                 Your IP Address is: <span id="ctl00_cph1_lblIP">68.171.233.64</span>.
                    <br>
                 Your phone number is: <span id="ctl00_cph1_lblPhone">(404) 786-0113</span>.
                    <br>
                 <div id="ctl00_cph1_divSmallDevice">
                 It looks like you are using a mobile device to visit this site.
                 <br>
                 Your device is: <span id="ctl00_cph1_lblDeviceModel">Onyx</span>.
                 <br>
                 Manufactured by: <span id="ctl00_cph1_lblDeviceManufacturer">RIM</span>.
                 </br>
                 
                </br>
            </div>
        </br></br>
        <button onclick="__doPostBack('ctl00$cph1$btnGo','')" id="ctl00_cph1_btnGo" type="button">Go!</button>
        <input type="hidden" name="ctl00$cph1$hdnOpCode" id="ctl00_cph1_hdnOpCode" value="x">
        <input type="hidden" name="ctl00$cph1$hdnArg" id="ctl00_cph1_hdnArg" value="axzbv578">
        </input>
        </input>

    </td>
   
    
</tr></tbody>


New Contributor
Posts: 3
Registered: ‎12-10-2008
My Device: Not Specified

Re: Browser not submitting ASP.NET form

Just to clarify my own post, and at the risk of stating the obvious:

 

1. I embedded CSS to keep my example simple.  The reference to the external CSS file was generated by the RIM servers.

 

2. The HTML seen in Firefox looks as expected for a .Net page; in particular, the __doPostBack() function is present.  As noted re CSS, the reference to the external JavaScript file was generated by the RIM servers.

 

Clearly I am missing something!  Thanks in advance for pointing me in the right direction.

 

BTW, I see that there is some sort of "VS2008" add-in for BlackBerry devices.  My plan is to simply generate clean (and fairly minimal) HTML so that my pages can be rendered on many devices.  The idea of building web pages that are specific to certain devices sounds like a bad idea.  Again, what am I missing here?