For clarification: this script was copied verbatim from another script that DOES work, with the non-relevant bits stripped out. And, to reiterate, it works fine on one server, but not another.
On May 17, 4:19 pm, BillTheTailor <[email protected]> wrote: > Subject pretty much says it all. I've got a script I'd like to use to > filling out shipping information on the USPS website. The script I'm > testing with is pretty simple: > > <code> > // ==UserScript== > // @name Fill out shipping form based on Seamlyne order > // @namespace http://www.seamlyne.com > // @description Fill out USPS shipping form > // @include http://www.w3schools.com/xml/xml_parser.asp > // @include https://cns.usps.com/go/Secure/* > // @include http://serverAtWork/index.asp > // @version 1.0.006 > // ==/UserScript== > > function mainContent(){ > console.log("world"); > GM_xmlhttpRequest({ > method: "GET", > url: "https://www.MyDomain.com/catalog/shippinglabel.asp? > idorder=1106", > onload: function(response) { > alert(response.responseText); > } > }); > > } > > console.log("hello"); > > mainContent(); > </code> > > The script operates the way I'd expect it to on serverAtWork (I get > the text of the order header), and NOT on the other two servers, USPS > and w3schools. On the other two servers, GM_xmlhttpRequest doesn't > appear to work at all. > > What gives? > > - Bill in KC -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
