Showing results for 
Search instead for 
Did you mean: 

using javascript for master page

0 Kudos

Hi All,

I created a form with some javascript, so on ::intitial the form would check a parameter.

Depending on the paramater a url would get a different value.

So code was

if (TYPE == '1')
img_header.value.image.href = "http://....."

This is working perfect.

However, now i changed the location img_header to the master page because i want it on every page.

Since I don't have an initial for the master page, ik took the initial of the paramater TYPE, which is also present on the master page.

so TYPE::Initial

Here I change the color of a rectangle on my masterpage, which is executed correctly, however same code as above does not result in the filling of the image.

Anyone got any clue ?

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Reopened ...

The problem I have now is that when I ask for an print preview before actually sending the pdf to printer, all is well. The images and colors are present.

However when I call the form from a Web Dynpro, with the Interactive Form control.

No colors are images are present.

It seems that the javascript code is not executed ...

Anyone any ideas ?

Thank you

0 Kudos

I found the solution myself.

If you want to use dynamic images in the Master Page, be sure to use the Imagefield object and not the image.

Now I can adjust properties at runtime with javascript