Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Help with javascript (Extending Dreamweaver)

3stripe3stripe ✭✭
edited January 2006 in Vanilla 1.0 Help
Anyone have experience of extending Dreamweaver by adding menu options (something like this: http://www.webreference.com/new/dwextend.html) I need to write a simple thingie to duplicate a link and add a prefix to the second half of it... but not sure how to do this with javascript.... wahhhhh

Comments

  • Options
    lechlech Chicagoland
    /me opens ConTEXT and makes his array ctrl+c ctrl+v rinse and repeat.
  • Options
    3stripe3stripe ✭✭
    edited January 2006
    Is that good or bad dude :-?
  • Options
    i think it was a joke dude :)
  • Options
    hehe thought so but was hoping lech might actually know how to do this!
  • Options
    lechlech Chicagoland
    Nah, sorry Jstripe, I only use DW for the quick and dirty layouts then do the rest by hand and tweak it as I go along. DW is pretty piss poor these days at rendering most of the advanced stuff so it's only useful for prepping things up. NOTEPAD FOR THE WIN!
  • Options
    3stripe3stripe ✭✭
    edited January 2006
    :-( Anyone know some javascript then? Need to turn a link like this: http://www.website.com/pdfs/document.pdf into http://otherwebsite.com/cgi-bin/pdfenrsnav?url=document.pdf
  • Options
    You could do it in PHP and probably with htaccess using regex and mod rewrite.
  • Options
    Has to be javascript I tink...
  • Options
    I know you can do it with JS, but I'm not fluent enough to suggest how...
  • Options
    lechlech Chicagoland
    Mass search and replace I say. Even DW can do a systematic mass search and replace like this. Simply break the urls down to 3 parts, domain, folder, document and asign it by hand.
  • Options
    3stripe3stripe ✭✭
    edited January 2006
    Didn't explain, my faultt although I get your first post now ;-) My client updates their website using Contribute. So this is not an option... they need to insert these damn text-to-speech links for every pdf in Contribute... but luckily it is extensible in the same was as Dreamweaver apparently.... Anyhows if I work out the javascript I'm half way there, as the acual menu is created via a massif xml file.... (nice use of xml though)
  • Options
    lechlech Chicagoland
    Jstripe, don't the macromedia extension pages have similar downloads offered up to you? I know you can find something similar there to hack and bend to your needs.
  • Options
    p.s. He's called 3stripe. Unless it's an inside joke.
  • Options
    lechlech Chicagoland
    ._o
  • Options
    Jech, Yeah i tried looking at those already but the extensions are bundled up into an mxp file which means all the code is garbled when you open it...
  • Options
    lechlech Chicagoland
    find the authors home page, look for zip, not .mxp, it usually includes the actual source files with all the meaty bits. also it's an L not a J :D
This discussion has been closed.