Print Page | Close Window

javascript image src undefined

Printed From: openElement Website


Forum Name: openElement General Discussion
Forum Description: A place for general discussion and questions about the software.
Printed Date: Dec 09 2021 at 1:57am
Software Version: Web Wiz Forums 10.11 -

Topic: javascript image src undefined
Posted By: greaseandmetal
Subject: javascript image src undefined
Date Posted: Jan 28 2021 at 5:26am
WEitemmouseover is of type WEImage.
it's src attribute is undefined.

var mo = document.getElementById("WEitemmouseover");

logs "undefined"

console.log(mo.innerHTML) returns:

<div class="OESZ OESZ_DivContent OESZG_WEitemmouseover">
          <img src="../WEFiles/Image/WEImage/menulines_itemsel2-WEitemmouseover.png" class="OESZ OESZ_Img OESZG_WEitemmouseover" alt="">

I see the <img> itself has no ID. How am I suppose to access the source?

Posted By: Hobby001
Date Posted: Jan 28 2021 at 11:23am
Here is the code

	console.log($('#WEitemmouseover img').attr('src'));

-------------" rel="nofollow - Anyone who wants to put something online gets hooked by something big

Print Page | Close Window

Forum Software by Web Wiz Forums® version 10.11 -
Copyright ©2001-2012 Web Wiz Ltd. -