Sorry this is so hard right now. This should be a lot easier soon. Also, FWIW, the content you're injecting into the preview block is actually running with chrome privileges, which means that you probably don't want to be getting arbitrary content from a URL (especially a non-HTTPS one) and injecting it in there. At the very least, we've now got Caja's HTML sanitizer in the latest Ubiquity betas, which can be used to sanitize any content put into the preview block... In the future, though, I think we're just going to try to opt for that preview block to always be in content space rather than chrome space.
- Atul On 2/2/09 5:54 AM, amau96 wrote: > Any other way? "because one day we will ..." could be a long time :p > > > On Feb 2, 6:06 am, Blair McBride<[email protected]> wrote: > >> Hopefully one day we'll get a simple API to do this automatically. >> >> See:http://ubiquity.mozilla.com/trac/ticket/356 >> >> - Blair >> >> On 2/02/2009 9:56 AM, satyr wrote: >> >> >>> The easiest way would be to use the BASE element. e.g.: >>> >>> pblock.innerHTML = '<base href="http://url.of.your/choice/"/>'+ htm; >>> >>> On Feb 2, 4:00 am, amau96<[email protected]> wrote: >>> >>>> In my code, I use jquery to get html from a page and insert it by >>>> inner html in the preview part of ubiquity. >>>> The probleme is some link are relative, like<a href="/mypage/ >>>> look.txt">, so when I click on the link the url look like that : >>>> chrome://ubiquity/mypage/look.txt >>>> >>>> What can I do to fix this, to replace chrome://ubiquity bye the url >>>> of my choice? >>>> >>>> thanks >>>> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ubiquity-firefox" 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/ubiquity-firefox?hl=en -~----------~----~----~----~------~----~------~--~---
