Giter Site home page Giter Site logo

External Linking about framework7 HOT 16 CLOSED

framework7io avatar framework7io commented on May 6, 2024
External Linking

from framework7.

Comments (16)

nolimits4web avatar nolimits4web commented on May 6, 2024 4

Hi, it is easy, just add "external" class to link

from framework7.

roman01la avatar roman01la commented on May 6, 2024 1

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.

findborg avatar findborg commented on May 6, 2024

I figured you had that built in.
And it works. Thanks...
I am loving this so far.. BTW

from framework7.

findborg avatar findborg commented on May 6, 2024

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.

nolimits4web avatar nolimits4web commented on May 6, 2024

You mean to have contra versa logic, when Ajax will work only on links with special class?

from framework7.

findborg avatar findborg commented on May 6, 2024

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.

nolimits4web avatar nolimits4web commented on May 6, 2024

Ok, I will add contra versa logic.

from framework7.

findborg avatar findborg commented on May 6, 2024

Just makes sense if you want it to plug and play nice.. plus I think that you will see larger usage.

from framework7.

findborg avatar findborg commented on May 6, 2024

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.

nolimits4web avatar nolimits4web commented on May 6, 2024

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.

nolimits4web avatar nolimits4web commented on May 6, 2024

Ok, i think we can close it for now. Reopen again if required

from framework7.

roman01la avatar roman01la commented on May 6, 2024

Ok, now I see it was already solved with external class.

from framework7.

iamsudharshan avatar iamsudharshan commented on May 6, 2024

I used have external class to but it's not working in android app.

from framework7.

ZanderBrown avatar ZanderBrown commented on May 6, 2024

care to elaborate?

from framework7.

Tigermisu avatar Tigermisu commented on May 6, 2024

@iamsudharshan If you're using cordova, you need to whitelist the external site in order to allow navigation, access or intent.

from framework7.

lock avatar lock commented on May 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.