question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change data-url using refresh:url

See original GitHub issue

Hello!

When init table with property data-url = "/ admin / category / load category = 10?", And after that change url table.bootstrapTable ( 'refresh', {url: '/ admin / category / load category = 99?' }), all be ok, data loaded correctly. But, if I use pagination and change page from 1 to 2, table use 1st url - category = 10, but not category = 99

I think, this is not correct. Table must use last assigned url for loading data. I don’t know how I can change data url correctly for all table features work after that.

What you think to do that?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
php-rockcommented, Feb 9, 2017

Example of solution: https://jsfiddle.net/jamiam/5qmm063j/ My Pull Request: a91e050ab12a3c8408cdab5e33c508977cc497c1

0reactions
wenzhixincommented, Feb 15, 2017

Merged

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to set data-url value using jQuery in Bootstrap table
The best way to set/change data-url of bootstrap table is to use refresh method together with refreshOptions: $table.bootstrapTable('refreshOptions', {url: ...
Read more >
How do I use JavaScript to modify the URL without reloading ...
You can use either history.pushState() or history.replaceState() to modify the URL in the browser, depending on your needs:.
Read more >
How I fetch new scrape data URL sharing in LINE chat?
I share some our URL web link in line chat, it's show title and meta description data. then we want to change title...
Read more >
Editing App on XCode - Buzztouch
This file has NO dataURL and no reportToCould URL right? These should be blank. c) Compile > run. The Refresh button should not...
Read more >
Data URLs - HTTP - MDN Web Docs - Mozilla
The data portion of a data URL is opaque, so an attempt to use a query string (page-specific parameters, with the syntax ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found