Link to home
Start Free TrialLog in
Avatar of Waqar Ahmed
Waqar Ahmed

asked on

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!
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

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.

Avatar of Waqar Ahmed
Waqar Ahmed

ASKER

Firstly thanks for the comment, but... No its not possible in my scenario as I got to keep the video running in background.
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.



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.
ASKER CERTIFIED SOLUTION
Avatar of SpeedyApocalypse
SpeedyApocalypse
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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