Skip to main content
July 18, 2007
Question

Insert Object Extension (?) Help for Newbie

  • July 18, 2007
  • 3 replies
  • 493 views
Not quite sure where to begin...I'm rather new at Dreamweaver, and I'm finding a need to have an insert extension written which will automate the insertion of the following:

<a href="javascript:;" onClick="wimpy_loadAndPlay('MP3FILE', 'ARTIST', 'TRACKTITLE', 'ARTISTURL', 'ARTISTGRAPHIC');"><img src="LINKGRAPHIC" alt="ALTTEXT" width="IMGWIDTH" height="IMGHEIGHT" border="BORDER" /></a>

If possible, I'd it to prompt for the variables as follows:

MP3FILE - required
ARTIST - optional
TRACKTITLE - required
ARTISTURL - optional
ARTISTGRAPHIC - optional
LINKGRAPHIC - required
ALTTEXT - optional, default to TRACKTITLE
IMGWIDTH - optional
IMGHEIGHT - optional
BORDER - optional, default to "0"

How would I go about this, or is there someone out there who would be willing to do it for a nominal fee (I'd appreciate the source files, if possible, if someone does it for me, so I can see how it's done...).

Looking forward to your help!

This topic has been closed for replies.

3 replies

Inspiring
July 18, 2007
I would suggest you use objectTag, as it reduces the number of things
you need to handle yourself considerably.

For started, ignore the validation and get the rest working. Then take
a look at the zillion of discoverable validation scripts by googling and
you'll see how that is done. It's not hard except in this case there is
no real form submission.

You might want to buy yourself Tom Muck et.al.'s book, "Dreamweaver
Ultradev 4, the Complete Reference" which altho now very much outdated
by now in many respects, does give you a good start at this task. It can
be had for 29 cents !!

http://www.amazon.com/Dreamweaver-UltraDev-4-Complete-Reference/dp/0072130172/ref=sr_1_1/102-8984960-0996941?ie=UTF8&s=books&qid=1184791790&sr=8-1

No doubt there are other books that cover the subject as well, i just
own them. Perhaps others can offer suggestions. Apparently the
Macromedia Press DW8 Extensions book contains nothing more than the
online Help files so don't bother with that one.

And of course you also asked for someone to do this for you, and perhaps
there is someone with the time who can. Anyone?

--

E. Michael Brandt

www.divaHTML.com
divaGPS | divaFAQ

www.valleywebdesigns.com
JustSo PictureWindow

--


maynardjarvis wrote:
> Thanks, Michael, for your quick reply...
>
> That's where I started...have read all that, but am fuzzy on the javascript
> it's going to take to do the input/validation...it's not my forte.
>
> I kinda understand the process, but the curve is steep! I wish the help files
> showed a more complicated example...I can't even decide if I should use the
> insertObject or objectTag function...
>
> Forgive my naivete...I'll keep plugging away at it. I really should take a
> course, I suppose ;-)
>
> Thanks again!
>

July 18, 2007
Thanks, Michael, for your quick reply...

That's where I started...have read all that, but am fuzzy on the javascript it's going to take to do the input/validation...it's not my forte.

I kinda understand the process, but the curve is steep! I wish the help files showed a more complicated example...I can't even decide if I should use the insertObject or objectTag function...

Forgive my naivete...I'll keep plugging away at it. I really should take a course, I suppose ;-)

Thanks again!
Inspiring
July 18, 2007
This is not a hard thing to do at all.

Check out the Help/Extending DW, and there read the general info about
creating Extensions, but then esp about (insert bar) Objects. Once you
see the light, this sort of simple insertion will be easy for you. Ask
again if you run into trouble.

--

E. Michael Brandt

www.divaHTML.com
divaGPS | divaFAQ

www.valleywebdesigns.com
JustSo PictureWindow

--


maynardjarvis wrote:
> Not quite sure where to begin...I'm rather new at Dreamweaver, and I'm finding
> a need to have an insert extension written which will automate the insertion of
> the following:
>
> <a href="javascript:;" onClick="wimpy_loadAndPlay('MP3FILE', 'ARTIST',
> 'TRACKTITLE', 'ARTISTURL', 'ARTISTGRAPHIC');"><img src="LINKGRAPHIC"
> alt="ALTTEXT" width="IMGWIDTH" height="IMGHEIGHT" border="BORDER" /></a>
>
> If possible, I'd it to prompt for the variables as follows:
>
> MP3FILE - required
> ARTIST - optional
> TRACKTITLE - required
> ARTISTURL - optional
> ARTISTGRAPHIC - optional
> LINKGRAPHIC - required
> ALTTEXT - optional, default to TRACKTITLE
> IMGWIDTH - optional
> IMGHEIGHT - optional
> BORDER - optional, default to "0"
>
> How would I go about this, or is there someone out there who would be willing
> to do it for a nominal fee (I'd appreciate the source files, if possible, if
> someone does it for me, so I can see how it's done...).
>
> Looking forward to your help!
>
>
>