chnm / serendipomatic

http://serendipomatic.org/
26 stars 9 forks source link

Possible IE9 issue? #144

Closed mialondon closed 10 years ago

mialondon commented 10 years ago

As reported in a comment on my blog post http://openobjects.blogspot.co.uk/2013/08/so-we-made-thing-announcing-serendip-o.html?showComment=1376958336884

'I was looking forward to trying this out but apparently it doesn't like me :( At http://serendipomatic.org/ clicking the 'magic' button just clears the text I put in the box. At http://dev-serendipomatic.herokuapp.com the text stays, but clicking the button doesn't do anything. Sad, because I like this idea.

Running IE9 on Windows 7.'

I don't have IE9 or Windows 7 so can't replicate it.

scottkleinman commented 10 years ago

Running IE10 in IE9 mode did not reproduce the error, but that's unreliable. It's unclear to me why it would run differently on the dev and production servers, since the code is the same. Is anyone capable of running IE9?

On 21 August 2013 04:08, Mia notifications@github.com wrote:

As reported in a comment on my blog post http://openobjects.blogspot.co.uk/2013/08/so-we-made-thing-announcing-serendip-o.html?showComment=1376958336884

'I was looking forward to trying this out but apparently it doesn't like me :( At http://serendipomatic.org/ clicking the 'magic' button just clears the text I put in the box. At http://dev-serendipomatic.herokuapp.com the text stays, but clicking the button doesn't do anything. Sad, because I like this idea.

Running IE9 on Windows 7.'

I don't have IE9 or Windows 7 so can't replicate it.

— Reply to this email directly or view it on GitHubhttps://github.com/chnm/serendipomatic/issues/144 .

Scott Kleinman Professor of English Director, Center for the Digital Humanities California State University, Northridge

briancroxall commented 10 years ago

I just sat down with one of our library staff who was having trouble with this exact issue. She's running IE 9 in Windows 7, and I can verify that it behaves in exactly the way that Mia described.

scottkleinman commented 10 years ago

OK, I know the code that's involved. I'll have a look on Thursday or Friday (my next open window). It looks like I'm still assigned to this on.e

On 3 September 2013 12:54, Brian Croxall notifications@github.com wrote:

I just sat down with one of our library staff who was having trouble with this exact issue. She's running IE 9 in Windows 7, and I can verify that it behaves in exactly the way that Mia described.

— Reply to this email directly or view it on GitHubhttps://github.com/chnm/serendipomatic/issues/144#issuecomment-23741764 .

Scott Kleinman Professor of English Director, Center for the Digital Humanities California State University, Northridge

scottkleinman commented 10 years ago

This might be a result of the same origin policy on a JQuery.get() request. A possible solution can be found at http://mvcdiary.com/2013/01/16/jquery-ajax-request-not-working-in-ie9/. I'm noting it here as a reminder to be pursued this weekend.

rlskoeser commented 10 years ago

We're doing a GET request for that? Seems like there should be a simpler way to do it...

scottkleinman commented 10 years ago

That's what I thought, but Eli and I had a lot of trouble getting this function to work properly. I don't remember whether the current code is his contribution or mine. But I'll look into it this weekend.

On 9 October 2013 07:20, Rebecca Sutton Koeser notifications@github.comwrote:

We're doing a GET request for that? Seems like there should be a simpler way to do it...

— Reply to this email directly or view it on GitHubhttps://github.com/chnm/serendipomatic/issues/144#issuecomment-25974692 .

Scott Kleinman Professor of English Director, Center for the Digital Humanities California State University, Northridge

rlskoeser commented 10 years ago

I took a quick look at this - I think we should be using the placeholder attribute for the default text instead of initial as we currently are ( https://github.com/chnm/serendipomatic/blob/master/smartstash/core/forms.py#L11 ).

Unfortunately, it seems that placeholder isn't supported by IE9. However, there are existing solutions to fix that -- here's one that looks like it might be a nice solution (if you do some searching you'll find some other options): http://kamikazemusic.com/quick-tips/jquery-html5-placeholder-fix/

scottkleinman commented 10 years ago

Hmmm...I didn't even know about the placeholder attribute, but I see that it is definitely not supported by IE9. But are you sure we are using it? The default text is in a