RE: Crazy behavior...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Peter,

That is very odd!

When you say 'breaks' do you mean, just stops?

Is it possible that a 0x00 character is getting in there somehow?

It would be good to actually see what is going between the client and the server.  Have you ever used JMeter?  If you were to proxy between the two with JMeter then we would have an 'independent third party' to see what is going on.

Cheers - and good sleeping!

AJ

Alexander J Turner Ph.D.
www.deployview.com
www.nerds-central.blogspot.com
www.project-network.com

-----Original Message-----
From: Peter Lauri [mailto:lists@xxxxxxxxxxx] 
Sent: 03 September 2006 18:02
To: Alex Turner
Cc: php-general@xxxxxxxxxxxxx
Subject: RE:  Crazy behavior...

Just thought one thing. I did do a alert() on the http.responseText, and
that breaks in on the <td> too, so the response that is sent back probably
just ends there... weird...

/Peter

-----Original Message-----
From: Alex Turner [mailto:Alex.Turner@xxxxxxxxxxxxxxxxxxx] 
Sent: Sunday, September 03, 2006 11:31 PM
To: Peter Lauri
Cc: php-general@xxxxxxxxxxxxx
Subject: RE:  Crazy behavior...

Peter,

When it arrives at the browser, via ajax, I am guessing that you then put it
into the page view .innerHTML or some other method.

I suspect your problem revolves around asking the browser to do stuff it
should not really have to do.

There are two issues I would like to highlight with the html.

1) You are mixing TH and TD on the same row.  You should be using styles to
set the different presentations of the elements.
2) You have placed a paragraph section between the table tag and the first
tr tag.  This is wrong.

I suspect that the browser is managing to cope with this markup when
presented as a static page but is unable to figure out how to update an
existing page with it.  If you fix the html to be standards compliant then
the chances are all will be well.  

If it is not - by all means get back to me :-)

Best wishes

AJ 

Alexander J Turner Ph.D.
www.deployview.com
www.nerds-central.blogspot.com
www.project-network.com

-----Original Message-----
From: Peter Lauri [mailto:lists@xxxxxxxxxxx] 
Sent: 03 September 2006 17:20
To: Alex Turner; php-general@xxxxxxxxxxxxx
Subject: RE:  Crazy behavior...


[snip]
Can you send an example of the broken HTML?  What are the symptoms of 
the html being broken.  Finally, in what way are you using AJAX.  This 
looks like html output - so is it really AJAH?

My first guess is that something about the context at the browser end 
makes <td></td> - an empty table element - cause trouble.

Cheers

AJ

[/snip]


This is really odd. I wrote the $html variable that I send back to the
browser via AJAX, and that code is like this when I pushed it into a
temporary database table:

<table><p style='float: right;'>
<a href='javascript:teamToDoHideInfoBox(1, 6);''>Close</a></p>
<tr><th>Name</th><td>asdf</td></tr>
<tr><th>Description</th><td></td></tr>
<tr><th>Assigned to</th><td></td></tr>
<tr><th>Created by</th><td>Peter Lauri(Farang)</td></tr>
<tr><th>Due date</th><td></td></tr>
<tr><th>Start date</th><td></td></tr>
<tr><th>Priority</th><td>Normal</td></tr>
<tr><th>Creation date</th><td>Sun, 03 Sep 2006 23:09:44 +0700</td></tr>
</table>

However, if I just use that output all is shown until the empty <td></td>
tag.

Then I tried to check what is actually captured by the browser, and it was
showing only until the <td> and then nothing more.

So this should maybe be posted to the JavaScript list :)

I have temporary solved by NOT allowing empty strings into those fields, but
the description should be able to be empty :)

/Peter


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/436 - Release Date: 01/09/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/436 - Release Date: 01/09/2006
 


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/436 - Release Date: 01/09/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/436 - Release Date: 01/09/2006
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux