pjax - the current node list is empty - pjax

I am using pjax 2.0.0 by cdn and after adding
this line of code $(document).pjax('a', '#pjax-container');
and when I go to check the header this is Request Url
http://laravelclear.dev/replace-page?_pjax=
and my response is 500 the current node list is empty
I have searched alot please help me.

I did a lot of search in many site and my problem was asked but there was no answer for this question for and finally I found a way for using pjax and my problem was crawler version for laravel middleware pjax I used
https://github.com/spatie/laravel-pjax this one and for crawler I used this command
composer require spatie/crawler
and this is working fine
I hope this can help others.

Related

Linked in previews not working

I have searched all over the internet for an answer and although I can find a million people with the same question I cannot find an official solution to the problem im experiencing.
I always get "Cannot display preview. You can post as is, or try another link." displayed.
I've stripped a page down to only the required open graph meta tags so I know they work (run through multiple OG validators), Ive disabled any kind of robots blocking, any kind of redirects, disabled the firewall on a test server, made sure the LinkedIn bot requests are hitting the server. All I see in the browser console all the time is a status 500 being returned from LinkedIn's preview generator API.
We are hosting on Windows Server in IIS 8.5, it seems if I create a demo and host it somewhere else it works, which makes me think it is server related or IIS settings.
Reading this Linkedin post's picture doesn't appear in summary its seems like a similar issue. We are not serving over SSL so nothing to do with that.
I have already asked this question on LinkedIn's forum but having no luck, so im hoping someone on here can help or someone from LinkedIn's tech team can help.
Thanks
So we had this issue as well and it turns out parts of our system that use user generated themes were not adding the "Content-Type" header to the response.
So examine the response headers coming from your server and make absolutely sure they are correct and that they include the correct "Content-Type" (with correct encoding) and "Content-Length".

retrieving only the required tag from http request into node js console application

I am retrieving a certain amount data into a node js console application and the results is as shown in the image. My question here is, I dont want all the tags to be displayed in the console. I just want the 'revenuegrowth' tag to be displayed. I have tried a few things related to js regex but i am not able to find a solution for this one. I feel this is quite simple but i am not able to do it. Any help will be much appreciated. Thanks in advance.Results

Why does the Foursquare API JS not work with HTTPS?

In a system I have to maintain (didn't build it, just inherited it) we have a Foursquare implementation that hasn't been used in quite a while. Trying to revive it failed, because our page is now loaded via HTTPS, which it didn't used to be.
We are using the "Save to Foursquare" button as well as the API request to retrieve the number of Check-ins. I already switched all the JS includes and intent links from http to https and at least now it shows the number and the button correctly.
However, I can't click the button and checking the browser's console I found that it added a script tag to the head of this page which tries to access http://platform.foursquare.com/js/modules/widgets.asyncbundle.js. The browser obviously blocks this, because it's not using HTTPS.
The file we are explicitly loading is https://platform.foursquare.com/js/widgets.js. It seems to me like this script is not reacting correctly to HTTP vs. HTTPS. There is probably a very simple solution to this, so what am I missing?
I don't know if you've tried it yet but the foursquare website says this on the matter:
Change the source of the JavaScript file to https://platform-s.foursquare.com/js/widgets.js
Add {"secure":true} to the global configuration block (window.___fourSq)`
The same link (see below) has all the different ways to call the Save To Foursquare function using its .saveTo() function.
https://developer.foursquare.com/overview/widgets
I hope this information and links helps! Cheers.

Google Places Request Returning "REQUEST_DENIED"

I realise their are numerous questions regarding this issue and I have read them all, but I still cannot get this to work!
I have:
Created my project in the API console
Enabled Places API in services
Created a new IOS API Key (repeated this step twice now)
Tried the request with sensor=true, sensor=false and no sensor param at all
Tried HTTP and HTTPS
Those are all the fixes I found within the existing questions regarding this issue, have I missed anything? Here is a sample URL I am using to test:
https://maps.googleapis.com/maps/api/place/textsearch/json?sensor=true&query=Test%20sd&key=MYKEY
And yes, I am replacing 'MYKEY' with my actual API key :).
I am developing an IOS app using monotouch but I don't really see how that is relevant as I can't get this to work in the browser either.
Any help would be hugely appreciated! Been stuck on this all day now.
I believe you want to be using your "Simple API Access" key (not an Android/iOS key). The documentation mentions this as the last step.
https://developers.google.com/places/documentation/#Authentication
I tried your sample URL with my Simple API Access key and it was successful.

Solr with JQuery to build autocomplete

I have set up solr and it works. I have tested it by indexing my MySQL db and running queries on it, trying facets and trying the term suggest component (which I wish to use with autocomplete).
I have recently walked through the reuters tutorial here and it worked on my local machine.
Now my solr instance is on: "http://[someurl]::8983/solr/" and the instance they are using in the 'reuters.js' file is 'http://example.solrstuff.org/solrjs/'. How do I change the code to point to my instance - when I just swap the urls the code in the example doesnt work anymore - no search results are displayed. Do I need to install SolrJS or something? What is going on here?
Any help appreciated!
Do you have a typo in your URL? It looks like there are two colons in between the domain and the port number. http://[someurl]::8983/solr/ should be http://[someurl]:8983/solr/. You can test by entering that URL into a browser on your test machine. You should be able to get to the Solr admin page from there and do a query. If you can't, it's a problem with your URL.

Resources