during the migration of some javascript-modules to PHP, i'm looking for a simple answer to the following question:
how can i access a defined value (image-source-value) of a defined object (identified by the id-attribute)?
HTML
Code: Select all
<img їb]idї/b]="photoContainerImage" src="06_normal.jpg" width="400" height="300" class="photoFrame" />Code: Select all
var currentImage = document.getElementById('photoContainerImage');
currentHref = currentImage.src;
Result currentHref -> 06_normal.jpgI'm aware of the fact, that client- and server-scripts are different things. regardless of this fact, i think it should be possible for PHP, to access the document-elements while parsing the document huh?
anyway, I'm thankful for any hint
hang loose