Advertisement

10.15.2008 at 10:25AM PDT, ID: 23817524
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.8

innerHTML of a span containing a IMG object incorrect in IE

Asked by Danielcmorris in JavaScript, Programming Languages, Web Development

Tags: , ,

Ok, here's the deal, I'm trying to make a user interface where a person can click on a "SPAN", then see a popup with a textbox containing the the innerHTML of that SPAN.

So, here's a fun one:
<SPAN onclick='alert(this.innerHTML)'><img id="mylogo" src="/images/logo/fader/small_allsmall.png" alt="LanguageCache!" style="border-width: 0px;"></img>

when you click on it with firefox, you get "<img id="mylogo" src="/images/logo/fader/small_allsmall.png" alt="LanguageCache!" style="border-width: 0px;">"

when you click on it with IE, you get "<IMG id=mylogo style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" alt=LanguageCache! src="/images/logo/fader/small_allsmall.png">"


What the hell????  

So, since my program is going to save the original innerHTML, and the new HTML added by the user, then, on a new page load, cycle through the elements of the page looking for matches of that saved innerHTML and swap them out with the new HTML.

Works wonderfully..... oops....  If you edit in IE, the IE replacements show up.  If you edit in FireFox, the Firefox replacements show up.

So.... that's not going to work.

I'm really tired of screwing with this.  Anyone have any ideas?Start Free Trial
 
Loading Advertisement...
 
[+][-]10.15.2008 at 02:30PM PDT, ID: 22726127

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.15.2008 at 02:46PM PDT, ID: 22726284

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.16.2008 at 04:59AM PDT, ID: 22729860

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.16.2008 at 08:05AM PDT, ID: 22731876

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.16.2008 at 08:17AM PDT, ID: 22732066

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.16.2008 at 11:19AM PDT, ID: 22734120

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.16.2008 at 08:07PM PDT, ID: 22737538

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.17.2008 at 03:01AM PDT, ID: 22739018

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.17.2008 at 09:29AM PDT, ID: 22742651

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.17.2008 at 11:35AM PDT, ID: 22743801

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.17.2008 at 03:12PM PDT, ID: 22745833

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, Programming Languages, Web Development
Tags: Javascript, innerHTML, browser compatibility
Sign Up Now!
Solution Provided By: b0lsc0tt
Participating Experts: 3
Solution Grade: A
 
 
[+][-]10.17.2008 at 04:07PM PDT, ID: 22746179

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.17.2008 at 04:30PM PDT, ID: 22746275

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.17.2008 at 04:40PM PDT, ID: 22746322

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.17.2008 at 06:46PM PDT, ID: 22746706

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906