Note that there are some explanatory texts on larger screens.

plurals
  1. USstaypuffinpc
    primarykey
    data
    text
    plurals
    1. COwhen I trace e.current.Target.parent.parent, I do get the output [object MainTimeline]. However, when I try and remove a child from that timeline, I get Type Coercion failed: cannot convert global@3c0f30b1 to flash.display.DisplayObject. at MethodInfo-217(). Is there a way to get/convert this to the stage of the MainTimeline? (I also tried e.currentTarget.parent.parent.stage.removeChild(this) and that didn't work either.
      singulars
    2. COGood question, and it stems from the way jquery mobile works. Here's what I'm doing: I load a simple math problem into a content div from an external page. Once the student answers the question and hits the submit button, the next question on the test needs to be loaded into that div. I've added this functionality to the button by using `$("#submit_answer").on("tap",function()` inside the `$(document).on('pagecreate')` event.
      singulars
    3. COGot it! Phil, you had it right, but I had apparently missed it when playing with you code. The solution for the button example was this bit here: $('.custom_btn').prev().css({'font-size':'20px','color':'red'}); Phil, if you'll post this as an answer, I'll make sure to accept it as the right one. As it stands, I can't give you credit for your efforts at the moment.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload