I have reduced my problematic form code to a self contained lzx example.
 If someone could run this on their setup and let me know what they get
I would be grateful.  You shouldn't need the server side php script to
see the problem since all it does is drop the data into a field in a
database.  I am using the LiveHTTPHeaders extension to Firefox to see
what is sent from the flash animation to the server.  I have attached a
sample of the headers outputted by this script at the bottom of this
email.  Hopefully this example script and header information is easier
to digest than my previous post.  I apologize if the last call for help
was convoluted!

<canvas width="500" height="500" debug="true">

<dataset name="assessDS"
src="http://localhost/php/resolve.php?action=assess"; request="true"/>
<dataset name="testDS">
<doc>
<view type="assessment">
    <item type="text">Lesson Quiz</item>
    <item type="text">1. What is your definition of fun?</item>
    <item type="radiogroup" id="abc">
      <item type="radiobutton" value="Video" id="abc1">Playing video
games</item>
      <item type="radiobutton" value="Chatting" id="abc2">Chatting with
friends</item>
      <item type="radiobutton" value="Eating" id="abc3">Eating french
fries</item>
    </item>
</view>
</doc>
</dataset>

<class name="assessment" extends="form">
                <submit name="results" data="${canvas.assessDS}"/>
                <button isdefault="true"
onclick="parent.results.submit()">submit</button>
</class>

<class name="radgroup" extends="radiogroup">
        <radiogroup name="radgrp"/>
</class>

<datapointer id="views" xpath="testDS:/doc/" ondata="populateViews()">
                <method name="populateViews">
                <![CDATA[
                        this.selectChild();
                        var seq = 0;
                        do {
                                var viewName = 'v' + seq;
                                if(this.xpathQuery('@type') ==
'assessment'){
                                        var view = new assessment();
                                        view.setBGColor("0xFFFFFF");
                                        var width = 500;
                                        view.setWidth(width);
                                        view.setY("10");
                                        view.sendToBack();
                                        this.selectChild();
                                        do {
                                               
if(this.xpathQuery('@type') == 'text'){
                                                        var qt = new
LzText(view);
                                                       
qt.setWidth(400);
                                                        var questionText
= this.xpathQuery('text()');
                                                       
qt.setText(questionText);
                                                } else
if(this.xpathQuery('@type') == 'radiogroup'){
                                                        var rg = new
radgroup(view);
                                                        var rgname =
this.xpathQuery('@id');
                                                       
rg.setAttribute("name", rgname);
                                                       
rg.setAttribute("id", rgname);
                                                       
Debug.inspect(rg);
                                                       
this.selectChild();
                                                        do {
                                                                var rb =
new radiobutton(rg);
                                                                var
rbtext = this.xpathQuery('text()');
                                                                var
rbvalue = this.xpathQuery('@value');
                                                                var
rbname = this.xpathQuery('@id');
                                                               
rb.setAttribute("text", rbtext);
                                                               
rb.setAttribute("value", rbvalue);
                                                               
rb.setAttribute("id", rbname);
                                                               
rb.setAttribute("name", rbname);
                                                        }
while(this.selectNext());
                                                       
this.selectParent();
                                                }
                                        } while(this.selectNext());
                                }
                        seq = seq + 1;
                        } while(this.selectNext());
                ]]>
                </method>
</datapointer>
</canvas>

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Here are the HTTP headers generated by this script - 

http://localhost:8080/lps-3.2/my-apps/form_test.lzx?nsprefix=false&trimwhitespace=false&sendheaders=false&reqtype=GET&timeout=30000&fpv=undefined&ccache=undefined&lzt=xmldata&url=http%3A%2F%2Flocalhost%2Fphp%2Fresolve%2Ephp%3Fnull%3DEating%26radgrp%3Dnull%26action%3Dassess&%5F%5Flzbc%5F%5F=1145451405211%2E18

GET
/lps-3.2/my-apps/form_test.lzx?nsprefix=false&trimwhitespace=false&sendheaders=false&reqtype=GET&timeout=30000&fpv=undefined&ccache=undefined&lzt=xmldata&url=http%3A%2F%2Flocalhost%2Fphp%2Fresolve%2Ephp%3Fnull%3DEating%26radgrp%3Dnull%26action%3Dassess&%5F%5Flzbc%5F%5F=1145451405211%2E18
HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10)
Gecko/20050715 Firefox/1.0.6 SUSE/1.0.6-16
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=6B7C9D855E437F418412795B164EA868;
PHPSESSID=febf183533914cd5e8d6b148852d19ce

HTTP/1.x 200 OK
Expires: Fri, 05 Oct 2001 00:00:00 GMT, Thu, 19 Nov 1981 08:52:00 GMT
Date: Wed, 19 Apr 2006 12:56:45 GMT
Server: Apache/2.0.54 (Linux/SUSE), Apache-Coyote/1.1
X-Powered-By: PHP/4.4.0
Cache-Control: no-store
Pragma: no-cache
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Content-Length: 517
----------------------------------------------------------


Matt Hubbard



 
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to