[Proto-Scripty] Re: AJAX Request: receive base64 encoded image in responseText
I checked the response header and it's Content-Type: text/html; charset=UTF-8. Unfortunately I couldn't check the response because it's empty. Is response empty in network sniffer/web inspector? Or in javascript code? Printing the return-part in my controller I got the correct base64-encoded string. You should check if it is actually written to HTTP response (maybe response is already flushed). I checked prototype api docs and it says, the response is going to be eval'd before it shows up in browser. So what to do? Simply change the response content type? Is there any base64-Type? How are you processing response? Please show your code (here or in jsfiddle.net) or give a link to test site. Ajax.Response#responseText should be filled from XMLHttpRequest#responseText no matter which Content-Type is in response. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/NHOK8gu2ZJ0J. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Remove horizontal gaps in puzzle demo
Anyone know how to remove the blank horizontal gaps between the rows in the puzzle example here please: http://madrobby.github.com/scriptaculous/puzzle-demo/ -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: AJAX Request: receive base64 encoded image in responseText
Dear Victor, Am Mittwoch, 15. August 2012 11:47:25 UTC+2 schrieb Victor: I checked the response header and it's Content-Type: text/html; charset=UTF-8. Unfortunately I couldn't check the response because it's empty. Is response empty in network sniffer/web inspector? Or in javascript code? The response is already empty in web inspector. Printing the return-part in my controller I got the correct base64-encoded string. You should check if it is actually written to HTTP response (maybe response is already flushed). If I return some HTML in addition to my base64 string the HTML arrives in response. I checked prototype api docs and it says, the response is going to be eval'd before it shows up in browser. So what to do? Simply change the response content type? Is there any base64-Type? How are you processing response? Please show your code (here or in jsfiddle.net) or give a link to test site. Ajax.Response#responseText should be filled from XMLHttpRequest#responseText no matter which Content-Type is in response. You can find the js code here: http://pastebin.com/Y9SFVxKq -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/eKImhJSKnNQJ. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Remove horizontal gaps in puzzle demo
Whenever you place an image (or text) inside a div without wrapping it in a P tag, the browser will add an implicit P tag around the image, and treat it to the default line-height and padding for a P on your page. I am pretty sure that's what's going on here, and you should be able to get rid of it by adding a style like this to the page: #puzzle { font-size: 0.1px; line-height: 1; } Walter On Aug 15, 2012, at 1:28 AM, pmolsen wrote: Anyone know how to remove the blank horizontal gaps between the rows in the puzzle example here please: http://madrobby.github.com/scriptaculous/puzzle-demo/ -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] from 1.6.0.1 to 1.7.1: alternative to Event.cache and ._eventID?
Hi, In prototype 1.6.0.1 I used to use Event.cache[formElement._eventID] to check if an element has attached events. How can I do the same verification in 1.7.1 ? Thanks in advance, -- :: dip -- -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/2oBcs9UfBcQJ. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.