Read the statement by Michael Teeuw here.
Problem reloading data
-
@matahideveugle where to save? in a module instance variable
defaults:{
},
wrapper: null,
…if (this.wrapper == null){
create it
initialize it set classes etc)
}
create and append elements for each item, (but empty, no inner.html or inner text)
maybe display:none for stylethen when need to change
create and append iframe ,find elements for text , altho you could have saved them too , I would save them, then don’t have to lookup and dont impact browser performance,
set inner…when its time to display iframe/insert(addAfter/Before), add source, make visible …
all kinds of approaches…
-
@sdetweil Thank you, I will try to work it out!
-
@sdetweil I’m not sure if I did something wrong but it still seems like the entire page is reloaded even though I saved the div with the video. I don’t know if I explained well but I need the video to stay and play the entire time.
-
@matahideveugle I understand…
can you share your GitHub repo link, via email same userid at gmail
-
@sdetweil Hello, I resolved the problem by using Ajax. I had tried using Ajax and JQuery but these 2 weren’t working until I found out I had to download the source and add them to the script section. Thank you for helping !
-
@matahideveugle cool. glad u got it