views:

27

answers:

2

is there any way to avoid firefox and ie to reload the page adding the hash-tag to the url.

due to that i refine results by time with adding &as_qdr=d to the end of url, i have a problem with theese hashtags in url, because anything behind them seems to be unfunctional.

It does not happen with Chrome, but Firefox reloads the page after query adding this nightmare hash d?=¿)a¿?)!!m!!"!"·n

I am terribly stuck since weeks, and i must say that i never had such a problem finding a solution related to bugs and problems like this time-iknow now all posts in the www related to hash window.locati.... ,after docens of hours, by heart

my form is here: http://infoprofesionales.es/pageID_results.html

I need a javascript to block Firefox (at least) to reload adding the hash-tag

A: 

The linked site doesn't give much to test/work with. Maybe it's the language barrier, but it was not entirely clear to me how I am supposed to interact with the site so that I can try to reproduce the problem. In the future questions, try to add clear steps how to reproduce the problem.

At least, I would revise the way of appending query parameters to end of URL. The symptoms make it much look like that you're blindly appending them to the very end of the entire URL without determining/filtering the URL itself. I suggest you to use window.location.search to obtain the current query string and then build on that further. It won't include the hash fragments.

BalusC
A: 

Thank you very much for your kind answer.

I will try to let you have a run on the form, the way a visitor would do it:

The site is a Job Meta-search machine ,Google personal search, (no revenues for the moment otherwise i wouldn`t bother anyone here)

You begin at: http://infoprofesionales.es/pageID_10075646.html and introduce f.e. "manager" ,enter, then redirect to result page: chrome:

...INFOPROFES.ROOT.../pageID_results.html?cx=partner-pub-8427202809546935:rxxaj8en2yh&cof=FORID:10&ie=UTF-8&q=manger&sa=Buscar+en+60+Portales+(escriba+empleo+y+lugar+de+trabajo)

firefox:

...INFOPROFES.ROOT.../pageID_results.html?cx=partner-pub-8427202809546935%3Arxxaj8en2yh&cof=FORID%3A10&ie=UTF-8&q=manager&sa=Buscar+en+60+Portales+(escriba+empleo+y+lugar+de+trabajo)#1346

As you see FF ads the hashtag

i redirect because the result page offers three buttons which add by jacascript the internal Google parameter (filter:time) : &as_qdr=w week or d day or h hour (brilliant way to filter results not compromising the Google code (which is not allowed)

So now i`ll come to an end + it is really simple: Theese appendixes (&as_qdr=X) are added by the mentioned buttons to the end of the URL, and (which works in CHROME) cause a reload showing the desired filtered results.

BUT: Firefox wont work, why? because FF forces a double load ( you can apreciate it lowering conn.speed) adding the second time an hash tag to the end of the url.And behind that tag none of my parmeters takes any effect.

Chrome: no hash tag =WORKS (try and press my yellow filter links at the bottom of result site)

Firefox & IE hash tag =NoGOOD (try and you will see my "&as_qdr=X" parameter behind the tag, but not igniting like in chrome)

I had to lower my self writing on the site "works only with Chrome" which is ridicolous - and i spent all kind o attempts from manipulating by java the string .location. stop loading or whatever Never so much in vain.....

It seems to lie on the hand: FF IE load searchresults twice, first without tag then with ¿How forbid them loading twice (looks ugly anyhow)

Thanks very much

Martin Medina