Can we display a popup on iphone while playing a video on particular time and get it disappear on certain time automatically?

Hi,

Can we display a popup on iphone while playing a video on particular time and get it disappear on certain time automatically?

This popup is also required to take parameters from our javascript or php code and needs to display a button as well. So if user clicks that button the popup will go away passing some parameters back to our code.

However if user does not click the button then it should simply disappear at certain predecided time.

Urgent help will be much appreciated!
Waqar AhmedAdvanced Theme Developer and Professional Web Development ServicesAsked:
Who is Participating?
 
SpeedyApocalypseConnect With a Mentor Commented:
Is this through a web-app?  You should be able to just do a simple javascript alert and this will display as a popup.  However, a native popup on the phone will not work.
0
 
Gurvinder Pal SinghCommented:
not sure if it is possible at all to overlay an element on top of video tag as far as iphone is concerned.

Your best bet would be to hide the video first and then show the popup.

0
 
Waqar AhmedAdvanced Theme Developer and Professional Web Development ServicesAuthor Commented:
Firstly thanks for the comment, but... No its not possible in my scenario as I got to keep the video running in background.
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
Gurvinder Pal SinghCommented:
Then I'm afraid, i don't think i can help much, since i couldn't achieve placing the video ratings by making the z-index higher.
After some searching i found that any media tag on Iphone, takes the higher priority and that could not be superseded.



0
 
Waqar AhmedAdvanced Theme Developer and Professional Web Development ServicesAuthor Commented:
Yes i can understand your point, thats why i tried javascript alert which certainly comes up and solves problem to some extent but fails when we need it to disappear based on certain time as javascript stops once alert is on.

In this scenario, I think we need to figure out a way so some middle medium such as C or java code running on server can trigger default iphone popups.
0
 
Waqar AhmedAdvanced Theme Developer and Professional Web Development ServicesAuthor Commented:
Not 100% what I wanted but i think after so many attempts I am bound to accept this as no one could suggest any other alternative solution
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.