Comments (9)
Thanks for your post. There is history support finally coming, but it won't support hashbang (not too good practice).
from nette.ajax.js.
Let me write short explanation of reasons. We can agree that it isn't too good practice but there are situations when you are developing for example e-shop with AJAX pagination. You shouldn't ignore large group of users with IE, it can be 20-50% of all users, it depends on target group.
What does happen when user with Chrome opens second page of products and sends the link to his friend? And what does happen in case of user with IE? User (and customer) doesn't care that he uses aged browser, he mostly doesn't know what it means, but he should get maximum of functions I am able to provide him.
We can discuss the right solution, make things modern and clear way but in practices I can't tell my client that his new website works properly only in Chrome, Firefox,... (Yeah, I have tried Modernizr but it didn't work correctly)
So that's the only reason why I want to use hasbang (and only for pustState incompatible browsers) and need this function but of course I can make it other way.
from nette.ajax.js.
If you need URL updated (and its really important for you: user sends link to his friend etc.), than you shouldn't ajafixy the app if History API is not supported. If we agree on the fact, that using hashbang is rather annoying, then why Ajaxify if we want url always updated? What do you think?
2012/10/16 Jakub Misek [email protected]
Let me write short explanation of reasons. We can agree that it isn't too
good practice but there are situations when you are developing for example
e-shop with AJAX pagination. You shouldn't ignore large group of users with
IE, it can be 20-50% of all users, it depends on target group.
What does happen when user with Chrome opens second page of products and
sends the link to his friend? And what does happen in case of user with IE?
User (and customer) doesn't care that he uses aged browser, he mostly
doesn't know what it means, but he should get maximum of functions I am
able to provide him.
We can discuss the right solution, make things modern and clear way but in
practices I can't tell my client that his new website works properly only
in Chrome, Firefox,... (Yeah, I have tried Modernizr but it didn't work
correctly)
So that's the only reason why I want to use hasbang (and only for
pustState incompatible browsers) and need this function but of course I can
make it other way.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-9465998.
from nette.ajax.js.
That was only example. Another situation - you are developing the car mart.The customer wants (it's not my idea but I agree with that) to use ajax for filtering. There are hundreds and thousands of items and you can filter it and sort it by the power, the number of doors, type of the engine. More than 30% of visits are made by using IE and I can't show them message to upgrade internet browser for complete experience from this website.
Of course I don't need pustState when customer puts an item into the basket. We have discuss that in the office few years ago but the things haven't changed yet..
from nette.ajax.js.
I see both examples as equal. It's still this question: is problematic hashbang better than no AJAX with updated URL? Or you could simply not change URL and provide a link to be copied somewhere on the page.
from nette.ajax.js.
No offence but this is common thinking of programmers. I can't write instructions that users with IE have to copy the link from given place on the page. I just should provide them the same functions in all browsers. That's the only aspect of this discussion. And I can't say to my customer: "That function wouldn't work in IE. To be honest it could work other way but I don't like it so I wouldn't make it."
from nette.ajax.js.
Yeah, it's little bit offensive :). Do your will, definitely. In this case, you can't offer them the same functiionality in all browsers. You can try to imitate it with hashbang, but it has its own disadvantages (that's not the same as "don't like it"). I suggest switching off the ajax to provide correct URLs - because I value the URL more than ajax fancyness.
2012/10/16 Jakub Misek [email protected]
No offence but this is common thinking of programmers. I can't write
instructions that users with IE have to copy the link from given place on
the page. I just should provide them the same functions in all browsers.
That's the only aspect of this discussion. And I can't say to my customer:
"That function wouldn't work in IE. To be honest it could work other way
but I don't like it so I wouldn't make it."—
Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-9488367.
from nette.ajax.js.
I agree with @vojtech-dobes. If the browser doesn't support History API, don't use pushState, and AJAX actions, that changes the url. Browser with support will be more comfortable, but the old one will still work. Simple as that.
from nette.ajax.js.
I agree with @vojtech-dobes and i'm happy that "history" extension does not utilize the hashbanks. If you need it try to write own extension.
from nette.ajax.js.
Related Issues (20)
- Validation problem in Nette 2.4 HOT 2
- Plugins not executed on $.nette.ajax({ url: ... ); HOT 3
- Not working on forms HOT 6
- Spinner "start" called before "init" HOT 2
- npm support HOT 7
- Nette.ajax method is called before nette form validation HOT 1
- Binding ajax handlers to body via $('body').on() HOT 1
- Tag 2.3.0 HOT 2
- Multiple $.nette.ajax() are cancelled HOT 5
- Error in nette.ajax.js HOT 3
- NPM/Yarn outdated HOT 4
- title should not be escaped (when you assing title you should unescape before) HOT 1
- Fails without netteForms.js for forms HOT 1
- Wrong browser history title when used with history.nette.ajax.js
- Odkaz uvnitř SVG - chybná URL
- Support minified version
- Nette is not defined - nette.ajax.js:319 HOT 1
- IE11 bug nette.ajax.js 2.3.0
- IE11 bug when absolute URL is used HOT 1
- Is this library still maintained and compliant with latest Nette versions?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nette.ajax.js.