ClListView Ajax pagination sometimes not working - php

I have this website http://www.kdomestriha.cz/recenze-kadernicvi which basically shows list of hairdressers you searched for. When you enter one word term and search (you can try "Praha"), ajax update on pagination works perfectly fine. However if you try to enter two words (you can try Hradec Králové), pagination will refresh whole site. I am not sure, if showing all of my code helps... Does anyone have any clue what could be a cause of this strange behavior? Thanks

Since you didn't post any code, only way I got that looking your web source, and I point what wrong was in it.
If I searched by word "Praha", your web would generate following things:
<div id="Praha" class="list-view">....
After then in jQuery, you have code to access it through syntax:
$('#Praha').....
In order to achieve your own purpose, I think you used searching word as element id, it would caused the problem if you entered more one word into your filter, space character is not a valid for ID attribute in jQuery
$('#Hradec Králové').. //failed
It did not raise any error, but it wouldn't work as you expected.

If pagination is causing your site to refresh, the most likely cause is that something in the search/filter result is causing javascript error, thus causing yii to revert to full page refresh.
I'd advice that you look at your page in chrome's web inspector (cos that's what I use) after searching and confirm that the javascript isn't broken

Related

WP site generating weird session id next to page url

Few pages of my WordPress site generating weird session id next to page url for example http://www.example.com/?wvsessionid=wvac7224adb9a344b4b05354762584a621 . I don’t know where this coming from. bad thing is google indexing them & it creating duplicate content issue. where should i look for this issue & any idea , how I can solve it?
This could be one of two things:
some plugin is generating this, in that case search in plugins code to look for wvsessionid phrase which will tell you which plugin is generating this and why.
another option is some injected code due to hacking but that less likely as this parameter wouldn't be of much help.

fragmented urls causing problems in SEO

First of all I want to tell that I don't know my question is correct or not but I have searched google and SO for this answer but didn't find anything.
Try to explain my problem
I am making a website which is in php a server side scripting language and html css jquery and few other libraries.
It contains may pages and in few pages it contains a form which I am submitting using ajax.
Now When the person who is doing SEO for the website analyzes it by using some tool (A1 site map generator) it find outs some unwanted urls like:
https://wwww.example.com/graphic-design?_escaped_fragment_=
and
https://wwww.example.com/graphic-design#!
this problem shows on those pages which contains the ajax form.
can anyone explain me what is the cause I am seeing this and how to solve this problem.
I think the problem is with your ajax request. I had this problem too may be your sending data through get in your ajax form. change ajax's get to post.

​ characters appear in code after pasteing it from jsFiddle

Ok here is what im doing. I am making a drop down menu which based on user selection will show the correct form. Now I am able to get it working here http://jsfiddle.net/13lackHawk/Vhbw8/ but when I apply it to an actual page it doesn't work. I don't know what im doing wrong here. It seems straight forward. Could anyone help me determine the problem? It's been bugging me for the past couple days.
Here is a live version of this.
http://panel.dev.adkgamers.com/site/scripts/forms.php
Just remove this from your script code at line 24: ​
jsFiddle sometimes injects the ​ characters at the end of the code inside it's script window. Get rid of it by manually deleting the line in question and rewrite it.
http://css-tricks.com/forums/discussion/18239/jquery-script-strange-issue/p1

Finding what it redirects to

I'm using the "Snoopy" class to pick up HTML for phrasing.
The problem is that with one of the pages I need to get the html for redirects automatically because I'm using a the sites search and if it find a perfect result it will redirect.
Here is my snoop:
if($snoopy->fetch("http://www.rottentomatoes.com/search/?search=$pagelink&sitesearch=rt")){
$printable = $snoopy->results;
If the search is exact it will place me on a page like this...
http://www.rottentomatoes.com/m/captain-america/
I need this above link.
Any help would be great,
Thanks!
From poking around in the code a little, it seems like you should be able to check the variable $snoopy->lastredirectaddr, which should be set if you got redirected (if not, it should be a blank string).

Whats up with this google url?

So I know a little bit of PHP, and while I was making custom search links I realized that today google's url after searching something like "hi" isnt just
http://www.google.com/search?q=hi
instead its this
http://www.google.com/#sclient=psy&hl=en&site=&source=hp&q=hi&pbx=1&oq=hi&aq=f&aqi=g5&aql=&gs_sm=e&gs_upl=1705l1911l0l2131l2l2l0l0l0l0l173l299l0.2l2l0&bav=on.2,or.r_gc.r_pw.r_cp.&fp=6c03fc000f912511&biw=1366&bih=681
Just wondering if someone has some insight as to what kind of info the rest of the url is passing along
Some examples of the data passed along:
hl=en #Locale: english
source=hp #Source: homepage
q=hi #Query: hi
In general, it's just whatever extra data that Google wishes to capture or pass along. As you've probably noticed, it's not required data in the sense that http://www.google.com/search?q=query works fine.
The 2nd one is likely an addressing string. This is often used for navigating without full page loads. This way a user can press the back button without going back to a previous url.
If you notice, outside of all the parameters passed, the real difference is:
www.google.com/#
vs:
www.google.com/search?all_the_name=values&
The first example there is no page defined, the pound symbol tells it to stay where it is. Google has a feature that loads the results as you type (not the auto suggest) but the entire page. I can't seem to find how to trigger this though.

Categories