开发者

Using SqueezeBox and PHP in an application?

I am developing an PHP/Mysql application whereby if the user enter a certain value, the results should be displayed to him in a Mootools SqueezeBox alert.

开发者_JS百科

But all the usages of Squeeze I am seeing involve link-activated alerts i.e. when someone clicks a link, the Squeezebox alert appears.

How can it be as I mentioned?

Thanks


Seems like what you want to do is feasible. Use a text input that you can add information to, then use the value set to modify the link, and click the link. Something like:

$('userinput').addEvent('change', function(evt){
    var userValue = $('userinput').getProperty('value');
    var url = 'http://www.example.com/?property=' + encodeURI(userValue)
    $('linky').setProperty('href');
    $('linky').fireEvent('click');
});

With html like:

<input type="text" name="userinput" id="userinput" />
<a href="#" rel="boxed" id="linky">SqueezeBox Link</a>

Assuming SqueezeBox is adding click events, this should work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜