123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|129|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> On Topic -> Poll Problem Solved

Sat, 23 Aug 2008, 20:55
Stealth
So I've figured it out the dreaded poll bug. The reason the poll only loads sometimes.


The url being requested to load the poll is this:



If I visit the site by visiting the url https://socoder.net/ then the poll will work. However if I visit https://www.socoder.net/ it will not load. The difference? The www. part.

Browsers see socoder.net and www.socoder.net as different domains. When the ajax routine detects that your loading an ajax page from a different domain name, it halts this process (this is a security vulnerability).

The solution? Simple. In the SoCoder source code just change this:



To this:




Problem solved!

-=-=-
Quit posting and try Google.
Sun, 24 Aug 2008, 00:18
Jayenkai
Oh, bollocks..
Stupid sodding security.
Life would be so much simpler without it!


Thanks Stealth!
Saves me having to wreck my brain figuring that one out, today

-=-=-
''Load, Next List!''
Sun, 24 Aug 2008, 00:44
shroom_monk
That, Stealth, is utter genius! Nice one! (Incidently, has it been fixed yet, cos it still doesn't work on www.socoder.net?)

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Sun, 24 Aug 2008, 00:50
blanko1324
Way to go Stealth!
Sun, 24 Aug 2008, 00:55
Jayenkai
Again, thanks, Stealth. Things appear to be a little smoother now

...
Security..

Bah, humbug..

-=-=-
''Load, Next List!''
Sun, 24 Aug 2008, 10:52
Stealth
No problem.


Next up, mud chat? Heh.