pacerier — 2011-01-15T17:27:46-05:00 — #1
hi all, i have this:
works in opera / firefox / chrome / safari, but doesnt work in IE. does anyone have a fix or solution or hack around this problem?
ps: the script is just to demonstrate my problem
paul_wilkins — 2011-01-15T19:58:26-05:00 — #2
That works in Internet Explorer too. It will be some other issue that's causing your problem.
We can help you get it working on Internet Explorer too, but we need to know more about what you're doing.
A test web page that you can link us to will be most useful.
pacerier — 2011-01-16T12:59:38-05:00 — #3
my test site is at www.JuzCode.com
it doesn't work in my IE. my ie takes http://google.com#q=testquer and translates it into http://google.com# which obviously is not what i want.
team1504 — 2011-01-16T13:14:42-05:00 — #4
I do not see why that is happening... but I would be interested in finding out.
Ill keep looking and thinking and let you know i I find anything, but pmw57 will porbably beat me to it.
However, it works for me.
Is the only problem that it is going to Google's home and not the query you want it to?
pacerier — 2011-01-16T13:29:08-05:00 — #5
Yes basically IE ignores everything after the # symbol.. which is definitely not ok at least for my situation now,
i don't mind a hack, i just need it to work
team1504 — 2011-01-16T14:09:01-05:00 — #6
Quick idea, could it be that you need an escape character?
Hack-wise, I got nothing that is the only way I have ever known how to have a link open a search sorry.
When I come back, Ill do some research and get back to you.
pacerier — 2011-01-16T17:25:28-05:00 — #7
paul_wilkins — 2011-01-16T18:26:29-05:00 — #8
When you visit google.com there is a permanently moved redirect (response code: 301 Moved Permanently) to www.google.com, during which for some strange reason Internet Exporer loses the fragment identifier.
Try your luck on www.google.com instead of google.com, and let us know if you have any better results.
logic_ali — 2011-01-16T18:33:50-05:00 — #9
I.E. sends exactly the same string but Google seems to have a reason to reject it for I.E. and also Opera.
I got your code to work substituting /search?q= for /#?= . Is there any reason you can't use that format?
pacerier — 2011-01-16T19:05:14-05:00 — #10
heys cool, i wasn't aware of that link thx!