I use jPlayer
as my HTML5 stream player, I prepared two channels, if channel one is
disconnected I can switch to channel two, and I want do it when playing,
I can't find disconnect event on HTML5 audio api, so I use ended
event as disconnected status, it works perfect on desktop and iPhone,
but not work on Android, when I play on Android browser, and disconnect
on purpose, the browser looks like play but the sound is lost,
that's mean if I lost signal on Android browser will not trigger
anything, how to fix it?
I want to show JSON result on the page, but when I got it from ajax it will be a consecutive string, is there any plugin to convert it to good structure to read, such us
This is a plugin that make your page do some fancy animation when scroll down the window, all I need is when scroll to a div, fixed it, slide another div inner the div, after three div slide out, than keep scrolling down, skrollr is too complicated, hope there will be some easier plugin to do that.
I need when I scroll to the element I indicated, freeze the scroll event, and release the freeze after doing something, my solution is detect the element's offset top, and listening the scroll event, if the document's scroll top position equal or bigger than the element's offset top, then scroll the document back to the top of the element, but there will be an issue, if the page with many big images or with a lot of elements such as my example link, you will see the scroll back movement in a instant just like windows is trembling, I don't know how to improve the performance to prevent that, or any other coding way to make the same thing I want.
Looking for a plugin could re-size image with eight points like Photoshop, event only four points in the corner will be fine, the official plugin only have right side and right down corner to control the re-size is not enough for me.
I have two options select, if I want to change option 1 to option 2, I want to show confirm message let user check, if no then keep on 1, if yes then change to 2, how to do that?
I have three data in list.php, after I click add button it will go to add.php, I pick a item and click on it when I am in add.php, it will use ajax to save one more data to database in the background, and I click back button which is use data-rel="back" api back to list.php, the data still be three, only if I refresh the page then it shows four data, how to show correct amount of data if I click back button
This code works for most mobile browser but Apple Safari, few mobile browsers does not support play html5 format sound without click, therefore they will only hear the sound once, is there any way to overcome it.
Totally wok on desktop's browser, Chrome, Firefox, Safari, but not work on mobile's browser, neither Android chrome or iOS safari, anything wrong with the code?
I want to do some ajax stuff, and use $.mobile.showPageLoadingMsg when processing, how to show loading with overlay, I don't want to let user click the document when ajax happened.
It will play shutter sound after click play button, and play mail sound after 2 seconds, but on mobile it's only play shutter sound, I thought audio play event only trigger by real click behavior, how to trigger browser play the sound with out really click on the element.
I already use preload property, but the sound still a little bit played lag.
jQuery Mobile slider is easy to lost to listen event, especially on slow device, I used iPhone 4 with Safari to do the test, if I slide too quick, vmouseup will not be catched, so the interval turns to infinitely till I click any element on the page, have no idea how to solve the problem.
I wrote a script that if user drag the slider and not release, it will catch the slider's value and do something, if release the handle, the timer will be clear, and function stop, but in some iPhone's safari, sometimes mouseup event will failed, I think because of the machine's efficient is not quite good so the browser too lag for it, so I want to add check function when the interval is running, is there any API can detect the user still tap on the screen or not?
I have three pages, index.html, list.html and detail.html, detail.html have delete function, after click delete me button in detail.html will popup a dialog to ask delete or not, if you choose delete, the page will redirect to list.html, I click the back button on list.html after delete, it will go to detail.html again, I hope it can go to the index.html because the detail.html should be delete at that time, how to remove the detail.html from history back by hand.