* Setup sample
ExListPersons>>html: ^ '<tr sea:id="person/persons"><ExListPersonLine sea:id="person"></ExListPersonLine></tr>'
ExListPersons>>persons: ^ "list of people that a Postgres SQL query returns"
ExListPersonLine>>html: ^ '<td><a sea:id="viewPerson">[name]</a></td>'
and viewPerson shows the details of that particular contact. The SQL query is quite slow, taking seconds (driver related or because it connects and tears down connection each time).
* Scenario
A page of people. If you open a couple of viewPerson links before the page has started to render on the browser, even with url changing, the contents are the same.
What am I missing?
On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote:
A page of people. If you open a couple of viewPerson links before the page has started to render on the browser, even with url changing, the contents are the same.
Are you saying that there is different behavior for the same link depending on whether or not the page has fully rendered when you click it?
On Tue, Sep 17, 2002 at 10:46:32AM -0700, Avi Bryant wrote:
On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote:
A page of people. If you open a couple of viewPerson links before the page has started to render on the browser, even with url changing, the contents are the same.
Are you saying that there is different behavior for the same link depending on whether or not the page has fully rendered when you click it?
Exactly. If you open two links and the page hasn't started loading on the browser (or maybe isnt fully rendered), when they come up both have the same.
On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote:
On Tue, Sep 17, 2002 at 10:46:32AM -0700, Avi Bryant wrote:
On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote:
A page of people. If you open a couple of viewPerson links before the page has started to render on the browser, even with url changing, the contents are the same.
Are you saying that there is different behavior for the same link depending on whether or not the page has fully rendered when you click it?
Exactly. If you open two links and the page hasn't started loading on the browser (or maybe isnt fully rendered), when they come up both have the same.
Can you explain to me exactly what the series of steps is, ie, is it
- open page with list of names - while that page is loading, click on two names and open in separate windows - both those windows show the same person (the first one you clicked or the second?)
One thing you should know is that Seaside doesn't let you have two concurrent requests for the same session - if a new request comes before the previous one has finished, it waits for the first request before proceeding. There's a 5 second timeout, so if the earlier request is taking too long it gets canceled and the new one goes through.
I don't really see how that could be producing what you describe, though.
On Tue, Sep 17, 2002 at 11:06:57AM -0700, Avi Bryant wrote:
Can you explain to me exactly what the series of steps is, ie, is it
- open page with list of names
- while that page is loading, click on two names and open in separate
windows
- both those windows show the same person (the first one you clicked or
the second?)
- open page with list of names - page with list of names fully loads - now, on mozilla, control + click on a couple of those names quickly.. it'll open "loading.." tabs in the background. When they finish loading, they show the same guy instead of a different one.
For example:
http://localhost:8000/seaside/exodus/view?session=72A8697EE550D402&txn=t... http://localhost:8000/seaside/exodus/view?session=72A8697EE550D402&txn=t... http://localhost:8000/seaside/exodus/view?session=72A8697EE550D402&txn=t...
all show this guy. If i wait until 7 loads, then click on 8, 8 renders ok.
One thing you should know is that Seaside doesn't let you have two concurrent requests for the same session - if a new request comes before the previous one has finished, it waits for the first request before proceeding. There's a 5 second timeout, so if the earlier request is taking too long it gets canceled and the new one goes through.
I don't really see how that could be producing what you describe, though.
Hrm. Well. I'm puzzled.. :)
On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote:
On Tue, Sep 17, 2002 at 11:06:57AM -0700, Avi Bryant wrote:
Can you explain to me exactly what the series of steps is, ie, is it
- open page with list of names
- while that page is loading, click on two names and open in separate
windows
- both those windows show the same person (the first one you clicked or
the second?)
- open page with list of names
- page with list of names fully loads
- now, on mozilla, control + click on a couple of those names quickly.. it'll open "loading.." tabs in the background. When they finish loading, they show the same guy instead of a different one.
I still want to know if it's the first guy you clicked on or the second one. But yes, that's very odd.
Are the pages identical? Like, do the links on them have the same urls?
On Tue, Sep 17, 2002 at 11:28:05AM -0700, Avi Bryant wrote:
On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote:
On Tue, Sep 17, 2002 at 11:06:57AM -0700, Avi Bryant wrote:
Can you explain to me exactly what the series of steps is, ie, is it
- open page with list of names
- while that page is loading, click on two names and open in separate
windows
- both those windows show the same person (the first one you clicked or
the second?)
- open page with list of names
- page with list of names fully loads
- now, on mozilla, control + click on a couple of those names quickly.. it'll open "loading.." tabs in the background. When they finish loading, they show the same guy instead of a different one.
I still want to know if it's the first guy you clicked on or the second one. But yes, that's very odd.
Umm.. i dont understand your question fully. I click on both. Both links coming from the page with the list, that is let to fully load.
[page with names] -name 1 <-- ctrl+click to open in bg in new page -name 2 <-- ctrl+click to open in bg in new page [end of page]
Are the pages identical? Like, do the links on them have the same urls?
No.. in page 1 I have a link.. it points to:
http://localhost:8000/seaside/exodus/act?session=72A8697EE550D402&txn=to...
on page 2, identical, links to:
http://localhost:8000/seaside/exodus/act?session=72A8697EE550D402&txn=to...
On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote:
I still want to know if it's the first guy you clicked on or the second one. But yes, that's very odd.
Umm.. i dont understand your question fully. I click on both. Both links coming from the page with the list, that is let to fully load.
Sorry. What I mean is, you click on two names. Two identical pages come up. But do the identical pages both show the first name you clicked on, or the second one? Or neither?
This definitely does feel like a bug, and a scary one at that. Later tonight I'll see if I can reproduce it - if you can whittle it down yourself to a minimal case that still shows the behavior that would be great. You can use "(Delay forSeconds: ...) wait" to simulate a database query taking a while.
On Tue, Sep 17, 2002 at 12:54:08PM -0700, Avi Bryant wrote:
On Tue, 17 Sep 2002, Ragnar Hojland Espinosa wrote:
I still want to know if it's the first guy you clicked on or the second one. But yes, that's very odd.
Umm.. i dont understand your question fully. I click on both. Both links coming from the page with the list, that is let to fully load.
Sorry. What I mean is, you click on two names. Two identical pages come up. But do the identical pages both show the first name you clicked on, or the second one? Or neither?
Ahh.. gotcha. The one that shows in pages is the last one I click on.
This definitely does feel like a bug, and a scary one at that. Later tonight I'll see if I can reproduce it - if you can whittle it down yourself to a minimal case that still shows the behavior that would be great. You can use "(Delay forSeconds: ...) wait" to simulate a database query taking a while.
Tried but couldnt reproduce it.. I'll give it a go again tomorrow morning.
seaside@lists.squeakfoundation.org