Problem im having is that i need to post to and from a page, now i can include that content with an iframe and fire js from the parent and that seems to be working ok, however there any chance of somehow setting a list of domains or in my case a domain that textmate will talk to using that method? Would allow me then to slap lots of nice features all over my intranet. Just a thought. =)
On 21 Apr 2007, at 14:00, Allan Odgaard wrote:
On 20. Apr 2007, at 23:22, Lawrence Curtis wrote:
[...] Rather than just tell me the syntax if you could point me along to the js file that the object is based on or the docs or if failing that just tell me the command, that be great!
The function is TextMate.system(shell_cmd, handler) -- but there is a caveat, this does *not* work for files retrieved over http (for security reasons). For more info see http://macromates.com/textmate/ manual/commands#html_output
So this complicates things, i.e. the TextMate command would need to curl the page from the server, and cat that to stdout, so that it can stay on the internal TM url scheme, where shell commands can be executed.
How feasible this is, depends on how complex the customization page (s) are. I.e. if it’s just a single page, it should not be a problem nor add any real complexity, as the command would simply be:
curl -s «your server page»
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate