Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange JQuery <img> problem - Solved
#1
Hi!

I am trying to integrate a simple quiz application made with jQuery called jQuizMe - https://code.google.com/p/jquizme/.

The app takes an array of questions and answers as parameters and builds a nice quiz (4 types of quizzes, CSS customizable and all...)

The app works just fine if I use plain text or links as parameters. If I try to use <img> tags, here is what happens - the slashes get replaced by ="" !!!

Example:
What I send as a parameter:
<img src:'http://somesite.com/name/theme/assets/images/image.png'>
What I get in Chrome:
<img src:'http:="" somesite.com="" name="" theme="" assets="" images="" image.png'="">

The funny part is that it works just fine outside of GetSimple!

I have the following included in the header:
Code:
<link rel="stylesheet" href="<?php get_theme_url(); ?>/assets/js/jQuizMe.css"/ type="text/css" media="all">
    <script type="text/javascript" src="<?php get_theme_url(); ?>/assets/js/jquery-1.8.2.min.js" ></script>    
    <script type="text/javascript" src="<?php get_theme_url(); ?>/assets/js/jQuizMe-2.2.1.js"></script>

Could it be some sort of JQuery collision? I am stuck as what I'm seeing defies all logic...

---------- EDIT -------------

Forget it, I found out that i had a typo...
It's working now...

BTW, I am learning some PHP and trying to develop a plugin to integrate jQuizMe into this awesome CMS called Getsimple!
Reply




Users browsing this thread: 1 Guest(s)