GithubHelp home page GithubHelp logo

minddust / jquery-pjaxr Goto Github PK

View Code? Open in Web Editor NEW
70.0 70.0 9.0 937 KB

Pushstate aJAX eXtended Replacements

Home Page: www.minddust.com/project/jquery-pjaxr

License: MIT License

JavaScript 37.61% Python 62.39%

jquery-pjaxr's People

Contributors

minddust avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery-pjaxr's Issues

How to keep in sync with pjax project

Pjax project is being actively developed and improved. I think this project should try to stay as close to the parent project as possible and gain from all the improvements made upstream. I'll go through the source as soon as I have a breather (a few days) and see if I can help with that.

Missing related target on reload + history back

the script will brick when reloading the page and going back in history.

in onPjaxRPopstate it tries to fire an event but dont have a related target set.

an uncaught typeerror occurs and the script stops.

Any plans for adding support for form submission?

The original pjax library has the capability to send forms.

In searching for a solution to be able to update multiple parts of the DOM I came across your library and it appears to be just what I need.

I noticed that your port does not currently handle forms and was wondering if you have plans to implement this feature or perhaps there are reasons you intentionally left it out?

Namespaces should be cleaned before being interpreted

A namespace declaration such as

<pjaxr-namespace>
    X.Y.Z
</pjaxr-namespace>

should be interpreted as:

<pjaxr-namespace>X.Y.Z</pjaxr-namespace>

In case of templating engines, inserting newLines, tabs etc. to beautify Tags

Possible wrong use of locationReplace

The use of locationReplace in pjaxr is correct, if you have already pushed the new state, but then realizing you have to get the whole page.

If you fail to get the request by the server, it should be a Location.href or Location.assign() to push the new site to the statestack.

Fallback pjaxr request to site without pjaxr.

We need a fallback for pjaxr, to recognize when it requested a non-pjaxr site in the same domainspace, even if this site has no pjaxr too.

It would be nice to inject a function into the state before pjaxr decided to change Location with locationReplace. This function checks if pjaxr is currently enabled and then intially requests (without pjaxr) the site.

Another solution would be a Fallbackscript delivered by the Server at every request.

Signal for history:go(-X)

It could be useful to implement a signal for javascript to recognize that the user clicked the browser's back button, or triggered a history.go(-X).

Update instructions to run tests

Hi Stephan,
I tried to run your examples and test locally, but somehow -following your instructions on the website- doesn't work:

$ git clone https://github.com/minddust/jquery-pjaxr.git
$ cd jquery-pjaxr/
$ python ./tests/app.py
$ phantomjs ./tests/run-qunit.js "http://localhost:5000/"

Flask and Phantomjs are installed.
Thank you!

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.