[Proto-Scripty] Re: Refused to get unsafe header X-JSON
Anyone got any ideas on this one? Thanks, Adam On Sep 14, 1:17 pm, adster a...@littledonkey.net wrote: Yep - the error I see via the Chrome Javascript console is: Refused to get unsafe header X-JSON And then second time round (i.e. refresh the page) it gives: XHR finished loading: http://127.0.0.1/search-results.cfm?ajax=true;. search-results.cfm Resource interpreted as other but transferred with MIME type text/html. Generally works OK in Firefox. I have a form which submits to /search-hotels which is where the ajax call takes place. I am using ISAPI rewrite to make the url /search- results.cfm into /search-hotels but the same thing happens even if I browse to /search-results.cfm. Any ideas? On Sep 14, 1:01 pm, Alex McAuley webmas...@thecarmarketplace.com wrote: Cant see The above error as described in your post ? Can you post the error? Alex Mcauleyhttp://www.thevacancymarket.com - Original Message - From: adster a...@littledonkey.net To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Monday, September 14, 2009 12:44 PM Subject: [Proto-Scripty] Re: Refused to get unsafe header X-JSON Scrub that - it doesn't work first time in IE7 either. On Sep 14, 10:42 am, adster a...@littledonkey.net wrote: Hi All, I'm getting the above error message in Chrome (and Safari) but not in Firefox or IE. However, on a page refresh it does work. How can it not work first time around and then decide to work on a page refresh? I think this is a security issue thing...any help much appreciated. The code is: function search() { working(); var parameters = 'ajax=true'; var search_url = 'search-results.cfm'; // Do ajax request try { myAjax = new Ajax.Updater( 'searchResults', search_url, { method: 'post', parameters: parameters, onComplete: done } ); } catch(err) { console.log(err); alert(err.description); } } // EOF window.onload = function() { //$('country_select').focus(); //alert('loaded'); search(); } --~--~-~--~~~---~--~~ 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: Highlighting text box makes it look like Windows 95
Well, I've just try it and can confirm that behaviour. I would suggest these options: 1. Change effect to pulsate (I've tested it in FF) or some other 2. Create overlay div and apply effect highlight to it 3. Change the look of buttons (bg color, border) when you apply highlight effect it will not break Marko JoJo wrote: I tried your writeAttribute method. In Firebug's HTML tab, I witnessed the style attribute being removed, but visually, I did not SEE it being removed. The input box only went back to normal after I rolled over it with my mouse. On Sep 12, 6:08 am, Marko gm.ma...@gmail.com wrote: Maybe you should try this: $('feedbackName')|.writeAttribute(style, null)| It will remove style attribute from element. Marko Alex McAuley wrote: setStyle() requires parameters Alex Mcauley http://www.thevacancymarket.com - Original Message - From: JoJo tokyot...@gmail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Saturday, September 12, 2009 12:40 AM Subject: [Proto-Scripty] Highlighting text box makes it look like Windows 95 I'm highlighting an input textbox if the user forgot to fill out the form. After the box get highlighted, it looks like retro Windows 95 with thick borders and boxy edges. So I attempt to remove the styling with an afterFinish callback, but for some reason, that is never called. Why? if ($F('feedbackName').blank()) { new Effect.Highlight( 'feedbackName', { afterFinish: function() { $('feedbackName').setStyle(); } } ); allFieldsFilledOut = false; } --~--~-~--~~~---~--~~ 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: working with google maps and onComplete
Thanks everyone for the input. I've found a solution that doesn't involve prototype.js. Mark On Sep 14, 4:03 pm, wilkinsmd wilkin...@hotmail.com wrote: David, thanks that's an interesting approach which I hadn't considered. (And yes sorry about the typo...correct, I'm not interested in simply adding a timer, as the delay can vary quite a bit.) You're right I do know the number of pins. But, I'm not sure how I would test to see how many have been added at any point in time, do you have any ideas for that? Thanks Mark On Sep 14, 9:00 am, david david.brill...@gmail.com wrote: Hi Mark, as you don't want a timer to delay the hide of the querying ... text (I suppose, but you did not finish the sentence) one thought: test inside GGMap div the number of pin image inserted, as you know the total number of answers, you could remove your text when all images are in the DOM. but there is probably a better way. -- david On 11 sep, 16:33, wilkinsmd wilkin...@hotmail.com wrote: Hi, I'm new to prototype.js and have a question. I have a google maps application and I've been trying to implement a Querying... status indicator while the map is being populated. The map itself works fine, but the timing of the status indicator is off, it goes away too soon. I know why, but I don't know how to correct it. Here is what I have so far, pay attention to the timing of the Querying... message and when it is displayed: http://www.pawinetalk.com/v2/detail/ajax/index14.php?code=27184 When you click on populate map two things happen: 1. A perl script is called which generates map points in XML 2. Those points are placed on the map Now here's my issue: Utilizing prototype.js, I use ajax.request to call the perl script, and use onComplete to turn off the Querying... message. But at the time when it turns that off, it still needs to put the points on the map. That is handled by another javascript function which calls GDownloadUrl, and takes more time (depending on the number of points). I'd like to wait until that completes to turn off the Querying... message. BUT, ajax.request can only be used when calling a URL to generate some data, and as far as I know, not when simply running a javascript function I have defined on my page. And since I can't use ajax.request to place the map points, I can't use onComplete and thus the querying... message is turned off too early. Not interested in simply adding a Does anyone have any ideas on how this can be accomplished? Thanks for any help! Mark- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: [Proto] Coding disabled on a link
2009/9/14 Arnaud F. arnaud.fe...@gmail.com Hello, i need to disable a link in some case. What I do actually is something like this : html head script src=javascript/prototype.js type=text/javascript/ script /head body script type=text/javascript var a_create = new Element('a', { id : 'btn_create', href : 'javascript:linkOnClick();', innerText : '[ Create ]'}); var l_create = new Element('label',{id:'btn_create', innerText:'[ Create ]'}); function linkOnClick() { $('btn_create').replace(l_create); alert(disabled); } function activateLink() { $('btn_create').replace(a_create); alert(activate); } /script label id=btn_create[ Create ]/label input type=button onclick=javascript:activateLink(); value=Activate link / /body /html It works fine but, It's possible to do much easier ? If not, how can I override only the link tag whitout modifying other Elements? Thanks ! I tried to launch this page in Chrome / Firefox, it doesn't work... It works only in IE... I'm the only one who tries to desactivate a link? --~--~-~--~~~---~--~~ 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: Prototype and Xhtml validation
Just to clarify, In case some other noob sees this. You EITHER use a script tag to include an external .js file OR you xml escape inline code. NOTICE: you must add two forward slashes so old browsers ignore the CDATA tags. Example: script src=prototype.js type=text/javascript/script OR script type=text/javascript //![CDATA[ var foo='bar'; //]] /script --~--~-~--~~~---~--~~ 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: how merge two json objects?
To note, the jQuery#extend implementation is a bit more in depth... has there been any talk in the proto-core list about strengthening Object#extend? Rick On Mon, Sep 14, 2009 at 8:35 PM, Miguel Beltran R. yourpa...@gmail.comwrote: Thanks to both #Mangus and #Alexander Use Object.extend look so easy, what I not believe myself haha 2009/9/12 Alexander Wallace alexmlwall...@gmail.com var object1 = { foo : bar }; var object 2 = { baz : moof }; Object.extend(object1, object2); Object.extend returns the new object1, which now has the attributes { foo : bar, baz : moof }. Be aware that any duplicate value will be overridden by the newer value. On Fri, Sep 11, 2009 at 8:30 PM, Miguel Beltran R. yourpa...@gmail.comwrote: 2009/9/11 DJ Mangus d.man...@gmail.com I've never done this but I'm pretty sure you can use object.extend. http://api.prototypejs.org/language/object.html#extend-class_method but how used? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ 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: Refused to get unsafe header X-JSON
I still get this warning though: Resource interpreted as other but transferred with MIME type text/html. Probably means your resource is not referenced properly. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---