Welcome Guest, Not a member yet? Register   Sign In
We need official AJAX library from CI team !
#31

[eluser]Randy Casburn[/eluser]
Thanks for the clarification Michael. That eases the mind some.

Randy
#32

[eluser]Nick Husher[/eluser]
[quote author="Xeoncross" date="1229379132"]
Code:
<a href="#" class="ajax_popup">Modal</a>
vs
a href="#" ONMYEVENT="MYJAVASCRIPTFUNCTION;"Modal/a
//JS is filtered in this forum. ;)
[/quote]

Although, even this is technically poor style, since users with javascript disabled (like our poor friend the GoogleBot) will click on the link and get no response at all. What you want to be doing is:

Code:
// myview.php
<a id="click-me" href="http://example.com/mycontroller/myfunction">Modal</a>
Code:
// myscript.js
YAHOO.util.Event.addListener("click", "click-me", function(eventObject) {
    eventObject.preventDefault();

    // present some information with javascript
});
#33

[eluser]Xeoncross[/eluser]
[quote author="Nick Husher" date="1229385522"]
What you want to be doing is:

Code:
// myview.php
<a id="click-me" href="http://example.com/mycontroller/myfunction">Modal</a>
Code:
// myscript.js
YAHOO.util.Event.addListener("click", "click-me", function(eventObject) {
    eventObject.preventDefault();

    // present some information with javascript
});
[/quote]

Yes, I am glad you mentioned that. I just wanted to keep my example simple so people would understand. Your site should work whether that sweet-looking JS modal pops up or not. For example, my blog sends ALL requests as AJAX requests unless you are the GoogleBot or a user without JS - then it downgrades and works like a normal site as Nick showed.

JS should ONLY enhance your site - it shouldn't be required to run it!
#34

[eluser]Randy Casburn[/eluser]
[quote author="Xeoncross" date="1229386120"]JS should ONLY enhance your site - it shouldn't be required to run it![/quote]

So much for AJAX then, I guess? That was the OPs point of the thread.
#35

[eluser]Xeoncross[/eluser]
Uh... no.

AJAX is a nice way to KILL the boring re-load of a page and provide a nice simple pop or instant change to some content on the page. It is NOT built as anything other than a convenience to improve the users experience (it saves time and is easy for them).

However, your site should work fine without them as well. JavaScript and Flash are only for a better user experience IF AND ONLY IF they can handle/support it. Only inexperienced/lazy front end programmers would force a user to use something like JS or Flash (thereby locking everyone that can't out).
#36

[eluser]Randy Casburn[/eluser]
[quote author="Xeoncross" date="1229390915"] Only inexperienced/lazy front end programmers would force a user to use something like JS or Flash (thereby locking everyone that can't out).[/quote]

Please inform all the people building applications listed here:http://extjs.com/company/customers.php they are inexperienced/lazy.

Then turn off javascript and flash peruse some of these sites:

http://www.nortel.com/
http://www.motorola.com/us
http://www.samsung.com/us/
http://www.csc.com/
http://www.interwoven.com/
http://www.hp.com/sbso/index.html
http://www.panasonic.com/
http://www.youtube.com/watch?v=GVuBPaJsN...=poptersr5


Interesting how the some the the biggest money makers in the world don't fit nice and neatly into our molds. This has been the case with Google and HTML validation for years.

Interesting in deed how the real world works.
#37

[eluser]Xeoncross[/eluser]
You don't seem to get it. I never said people couldn't build sites that would break - I never said people wouldn't continue to build sites that break. The fact that there are poor practices out there has nothing to do with the goal of good coding.

Most people do a lot of dumb stuff - but does that make it right? Does that mean we should never try to show them a better way?

I can't force anyone to build things the right way (so they are indestructible). Afterall, people are just lazy now-a-days and build sub-standard work.

But unlike you I don't congratulate them for their sub-pair efforts. If you have a job - do it right.
#38

[eluser]Randy Casburn[/eluser]
To get past the idealism for idealism's sake, and back on topic, the OP said:

Quote:no that i think that no one can make a good lib. but only that im Pretty sure, many many people will get through all of this problems over and over, until we get the official library

This is so true of so many coding dilemmas. Whether AJAX, user authentication, DB abstraction, modularization, and on and on.

These discussions are valuable as they give a sense of the communities value assessment of feature sets.

It's all good.

Randy
#39

[eluser]jaswinder_rana[/eluser]
Just for the sake of argument.

Let's say, CI team agrees to put an AJAX framework in there (I'd love see it but, read on). Now question is,

- User JQuery
- Prototype
- Write their own

Let's say, they write their own then all Prototype fans will scream about it and so on.

Let's again assume that everybody likes the idea of CI team developing their own. Why would they do that when there are already used and tested libraries out there (Prototype, JQuery).


So, either they favor one framework over other and FORCE developers to use a particular one (specially if they prefer other one). OR they write their own and (again) FORCE developers to learn a new framework.


Like I said before, I like the idea of inbuilt AJAX library but (unfortunately) we have to see the bigger picture here.


Well that's my opinion. Couldn't resist. Don't flame me please Smile Smile
#40

[eluser]Xeoncross[/eluser]
Hey Jaswinder, check one page back for the answer. Wink




Theme © iAndrew 2016 - Forum software by © MyBB