Using javascript and macros

M

Mohan

Hi,
I am new to Publisher programming. I want to implement the following:

In one publisher, I've created two pages.
One contains links to some pages which contain images and some static text.
Example:
Page 1:
<Click here> to view Yahoo <Click here> to view Google

Here, let’s say yahoo.com is the latest link added in page 1 and when we
view yahoo.com it shows us some image and static text.
Now, I want to access the latest link present in page 1 and copy image, the
static text present in the page opened by the link and display it in second
page.

Can anyone tell me whether this is achievable by using JavaScript or do we
have to use macros. Can we use JavaScript in publisher or not?

Thanks in advance
Mohan
 
E

Ed Bennett

Mohan said:
I am new to Publisher programming. I want to implement the following:

In one publisher, I've created two pages.
One contains links to some pages which contain images and some static text.

If this is a web page, you can't touch Publisher macros, as they don't
transfer to the web page. You'll have to use Code Fragments and
JavaScrip (not fun). Head over to microsoft.public.publisher.webdesign
for this.

If you're creating a publication, then I'm not aware of any way to chain
a Publisher sub to either a Java program or a JavaScript script. Mostly
because I haven't looked. But I doubt there is the latter, and wouldn't
know where to look for the former. Head over to
microsoft.public.publisher.programming for this.
 
M

Mohan

Hi,
I am using macros to do this. My intention is, using publisher I create
these pages and then save as web page. I am able to copy image using macros.
But I am struck while doing string operations. Does macro support substring
operations?

Thanks
Mohan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top