Comments (16)
Hi, it is easy, just add "external" class to link
from framework7.
What if there's a parameter passed along with a link: .html?q=3
. In this case ajaxLinks
option doesn't work for me.
I think there should be another option to handle external links. At least by assigning external-link
class.
from framework7.
I figured you had that built in.
And it works. Thanks...
I am loving this so far.. BTW
from framework7.
You know, One of the biggest problems with "auto ajax links" is the fact that so much work has to go into changing classes in pre-built applications. Think in terms of WP or Joomla components. Do you think that it would be better to scan links for class "link" and then when they are found activate the ajax call? Then the page would act as normal html/php.
from framework7.
You mean to have contra versa logic, when Ajax will work only on links with special class?
from framework7.
Yes, or even data attribute links, for example...
I run into this problem all the time. I am going to be merging your work with Joomla and I can assure you that the system you have in place now would work fine for top level nav. But, as soon as you load a component that may use its own js framework... things go haywire.. and 99% of CMS use components..
from framework7.
Ok, I will add contra versa logic.
from framework7.
Just makes sense if you want it to plug and play nice.. plus I think that you will see larger usage.
from framework7.
One more example for you
I build a component for Joomla and use your framework. If I were to do that as it is now. The component would hijack the entire site templates links.
from framework7.
Ok, such option is released in 0.5.2 with additional "ajaxLinks" app parameter. If it is specified then ajax will work only on links that match to specified selector, like:
var app = new Framework7({
ajaxLinks: '.ajax' // Ajax will work on links with "ajax" class
});
from framework7.
Ok, i think we can close it for now. Reopen again if required
from framework7.
Ok, now I see it was already solved with external
class.
from framework7.
I used have external class to but it's not working in android app.
from framework7.
care to elaborate?
from framework7.
@iamsudharshan If you're using cordova, you need to whitelist the external site in order to allow navigation, access or intent.
from framework7.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from framework7.
Related Issues (20)
- problem touchmove slide swiper HOT 1
- Vite f7 Core production builds leads to InvalidCharacterError: Failed to execute 'createElement' on 'Document' HOT 1
- ../../packages/core/framework7-bundle.min.js missing HOT 1
- Text editor text colors and text background HOT 1
- No export named "Col"
- Routes.js error with Fetch and file:// in url when linked file is stored on local android storage file:///data/user/0/my.app/files/files HOT 1
- Wrong stack trace in case of error in the router component
- sheet.setSwipeStep is not a function
- Problem with navbar hideOnPageScroll and subnavbar/list-groups
- Problem with navbar hideOnPageScroll and master-detail-view
- Wrong React interfaces are used for the Svelte import components. HOT 6
- Svelte. Framework7 popup visibility binding is broken. HOT 1
- Svelte 4 warning "no exports condition" when framework 7 library is used. HOT 1
- Svelte. Popup/f7Popup backdrop is not disposed onDestroy HOT 1
- Svelte. Framework 7 build warning
- Problem closing popups on ios HOT 10
- Swipeable tab content is not loaded HOT 1
- MAIN VIEW CRASH AND RELOAD AGAIN BUG HOT 1
- Route async tablet/movil HOT 1
- Picker change its value at random on Safari
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 framework7.