Re: Attempt to de-mystify AJAX
- From: "Glen B" <no$pamwebmaster@no$pamforallspec.com>
- Date: Tue, 1 Nov 2005 12:11:23 -0500
[CHOP]
> On my application I (the designer, that is) am in control, and I simply
> don't allow hyperlinks that can overlay the page. I know that can be a
> major problem. "Hyperlinks" always open a new browser window. In our
> world, there's absolutely no problem with that. Does this issue go away
> then? Is this is an issue with Flashconnect? Or else I still don't get it.
>
Hyperlinks don't open new browser windows. Hyperlinks are uniform resource
locators (URLs) that the browser uses to move to another location, without
requiring the user to manually specify the location each time. Your browser
opens a new window when clicking hyperlinks because you have specified that
it should behave that way. You can configure that by browser, desktop, and
user of the O/S.
>
> Yes, you are making a statement about "typical" Web app design. No
> argument there. But I am talking about a solution to the disconnection
> problem. It's as equally valid in my world as it would be in the "typical"
> Web application. Just because they choose not to use it or don't need it
> does not mean it is inapplicable.
>
> And I realize I am misusing the term "keep-alive". Maybe "I-am-alive
> signal" What I meant is that the server, from its state tables, can easily
> determine whether the connection is valid or not, not the other way
> around, because it expects a repetitive signal from the browser. So the
> server simply cleans up locks and any other detritus when the browser is
> not longer alive.
>
There's the biggest architectural difference in our discussion. You are
performing a peudo-persistant application, while I am not. I merely require
an identification tag from the browser. I don't care how it gets to me(the
server) or how often I get it, as long as it stays consistent with the
browser+connection. For example, our shopping cart cookies are valid for 24
hours. If you shop our site today and come back 12 hours later, your cart
contents will still be stored and waiting for you - as long as the session
key (cookie) is still there and still contains the original value. After 24
hours, a background process wipes all traces of the session from the temp
files and the cookie will automatically expire inside the browser. The best
part is that I don't have to refresh anything. I only need to make sure it's
there. If it's not a new one is generated and then stored. Unfortunately,
even that "nice-ity" is biting me in the rear. Security settings and cookie
handling discrepencies are still causing state problems for some shoppers.
It looks like I will be forcing all of our content to be run through the MV
web engine in order to pass around the session key using the most basic
methods. Back to square one, after 5/6 years of development. :(
You can use PHP with CGI calls (FC, Red Back, whatever) and DHTML to
potentially achieve much more robustness over JS packet bouncing. I'd need
to understand your framework a lot more, but if you're interested drop me an
e-mail.
>>>> I know that from previous and current experience. I am trying to
>>>> working around cookies and JS, but it seems to be tough. Hidden frames
>>>> allow you to separate the persistant and non-persistant content, but
>>>> send them both as needed back to the server. The problem that I have
>>>> with that is the fact that a frame has its own DOM and can not be
>>>> addressed as part of the overall document in focus. I don't like having
>>>> multiple document objects to deal with.Using cookies eliminates the
>>>> need to pass stuff back and forth manually, or through the use of
>>>> potentially flakey scripting
>>> Addressing your data structures has nothing to do with whether or not
>>> you can maintain persistence. Personally I think it's a lot easier
>>> referencing an element I set up as a hidden input field than segments of
>>> a cookie.
>>> I don't do flaky scripting, or more correctly, scripting to get cookie
>>> parts may be just as flaky as any other scripting. Has no relevance to
>>> the issues. Also, how can you "work[ing] around cookies and JS" when you
>>> need JS to access the cookie?
>>
>> Umm... cookies are raw HTTP headers, available via CGI environment
>> variables, and have absolutely nothing to do with JS, PHP, or any other
>> client or server 3rd party technology. I don't know what you are talking
>> about! Trust me, I know the ins and outs of HTTP services. :P
>
> Again, I probably don't know enough about the multitudinous ways you can
> reference data. In my book, I'd use :
> var fields = unescape(document.cookie).split(...) or something, which,
> last I looked, is javascript. What can you do on clientside with cookies
> that does not involve javascript or another language (sincerely)?
JS: access the cookies through the DOM as an object.
CGI: You can get the cookies from the HTTP_COOKIE CGI environment variable.
Just like you use QUERY_STRING or REMOTE_ADDR.
Perl: Direct access via the environment functions or you can plug in a
number of HTTP modules that simplify header reading.
C: If you are running the C app under the CGI environment, then you can pull
the environment variable as a normal shell environment variable.
Give me a language and I'll tell you how to get and set a cookie.
>
> On reading this carefully, it seems we are in *total agreement*-we need a
> immutable session key?
>
> Chandru Murthi
>
Yup. The trick is being able to quietly pass the key from click to click,
without worrying that it's going to disappear somehow. In your case, that's
not a problem because your environment is completely server driven. Mine
isn't; however. Most web development is not 100% database driven. It's a mix
of technology.
Glen
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.
- Follow-Ups:
- Re: Attempt to de-mystify AJAX
- From: murthi
- Re: Attempt to de-mystify AJAX
- From: Tom deL
- Re: Attempt to de-mystify AJAX
- References:
- Re: Attempt to de-mystify AJAX
- From: Glen B
- Re: Attempt to de-mystify AJAX
- From: murthi
- Re: Attempt to de-mystify AJAX
- From: Glen B
- Re: Attempt to de-mystify AJAX
- From: murthi
- Re: Attempt to de-mystify AJAX
- Prev by Date: Re: Used Pick equipment dealers
- Next by Date: Re: Used Pick equipment dealers
- Previous by thread: Re: Attempt to de-mystify AJAX
- Next by thread: Re: Attempt to de-mystify AJAX
- Index(es):
Relevant Pages
|