i have two files , because i have the line document.getElementById(“aa”).addEventListener(‘play’, asaf, false); when i press play i enter to function asaf , but the video not showing in fullscreen mode, but if i remove the line i mention and i just call to asaf() instead then it’s work good . what is the problem with thw line that i mention ? here is the post on my blog so you can see also the files http://asafshay.wordpress.com/2014/06/22/problem-to-enter-to-fullscreen-mode-when-playing-video-using-addeventlistener/[^]
Asaf Shay
Posts
-
problem to enter to fullscreen mode when playing video using addEventListener -
problem with inheritancethis question is from exam .so i don't want to make the code better or different . i only want to know what i ask .
-
problem with inheritancei don't know .i take this question from exam
-
problem with inheritancepackage exam804;
class Base
{
public static void foo(Base bObj)
{
System.out.println("In Base.foo()");
bObj.bar();
}public void bar() { System.out.println("In Base.bar()"); }
}
class Derived extends Base
{
public static void foo(Base bObj)
{
System.out.println("In Derived.foo()");
bObj.bar();
}public void bar() { System.out.println("In Derived.bar()"); }
}
class OverrideTest
{
public static void main(String[] args)
{
Base bObj = new Derived();
bObj.foo(bObj);
}
}why the output is "In Base.foo() In Derived.bar()" and not "In Derived.foo() In Derived.bar()" ?
-
problem to remove single marker in google maps apiin my example it's show that I put only one marker but lets say I add much more markers and I only want to remove marker in my array in index 0.
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
if (CheckBox1.Checked == true)
{
GMap1.addGMarker(markers1[0]);
}
else
{
//i dont know what to write here} }
-
i use google maps api and can't remove single markerin my example it's show that I put only one marker but lets say I add much more markers and I only want to remove marker in my array in index 0.
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
if (CheckBox1.Checked == true)
{
GMap1.addGMarker(markers1[0]);
}
else
{
//i dont know what to put here} }
-
how to right vector of pointers to binary file ?hi,tanks for the comments,my problem is i can write to file and read from it only if my program is running,if i close the program and open again and try to read from the file i get run time error "vector iterator not dereferencable"
case 'd'://save to file
{
file = fopen("final_proj.bin","w+b");
t = arr.begin();
fwrite( (*t), sizeof(figure3d), 1, file);
system("cls");
cout << "saved to file successfully\n"<case 'e'://restore from file
{
file = fopen("final_proj.bin" , "r+b" );
t = arr.begin();
fread ((*t), sizeof(figure3d) , 1 , file);
temp.push_back(*t);
temp[0]->print();
/*arr.push_back(*t);*/
fclose(file);
} -
how to right vector of pointers to binary file ?how to right vector of pointers to binary file ? every pointer have diffrent size ,and i need to save to file and restore from file