ascx文件中的Javascript问题 [英] Javascript Problem in ascx file

查看:80
本文介绍了ascx文件中的Javascript问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的代码,在ascx文件中.有问题.似乎不懂Javascript!

Hi this is my code, in ascx file. There is problem in it. It seems that it dosen''t understand Javascript!

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CriteriaControl.ascx.cs" Inherits="Controls_CriteriaControl" %>
<link href="../Stylesheet/table.css" rel="stylesheet" type="text/css" />
<link href="../Stylesheet/Button.css" rel="stylesheet" type="text/css" />
<link href="../Stylesheet/jquery-ui-1.8.21.custom.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="../JavaScript/jquery-1.7.2.js"></script>
<script type="text/javascript" src="../JavaScript/jquery-ui-1.8.21.custom.min.js"></script>

<script language="javascript" type="text/javascript">
    $(function () {
        $("#help-icon").button
            ({
                icons:
                {
                    primary: "ui-icon-help"
                },
                text: false
            });

        $("#help-icon").click
        {
            $(function () {
                var moveLeft = 20;
                var moveDown = 10;

                $('#help-icon').hover(function (e) {
                    $('div#pop-up').show();
                },
                        function () {
                            $('div#pop-up').hide();
                        });

                $('.help-icon').mousemove(function (e) {
                    $("div#pop-up").css('top', e.pageY + moveDown).css('left', e.pageX + moveLeft);
                });
            });
        }
    });

    $(function () {
        $("#slider-range").slider({
            range: true,
            min: 0,
            max: 100,
            values: [0, 100],
            slide: function (event, ui) {
                $("#amount1").val(ui.values[0]);
                $("#amount2").val(ui.values[1]);
            }
        });
        $("#amount1").val($("#slider-range").slider("values", 0));
        $("#amount2").val($("#slider-range").slider("values", 1));
    });
</script>







<div class="divTable">
    <div class="divRow">

        <div class="divCell">
            <input type="text" id="lable" value="something" readonly="readonly"/>
            <button id="help-icon" style="width:13px ; height:13px">help</button>
            <div id="pop-up" class="divCell">
                loading...Say what u want!
            </div>
        </div>

        <div class="divCellmine">
            <label for="amount1">min:</label>
            <input type="text" id="amount1" style="border:0; font-weight:bold;" />
        </div>
           <div class="divCellmine">
        <div id="slider-range" style="width: 142px; height: 1px"></div>
           </div>
        <div class="divCellmine">
            <label for="amount2">max:</label>
            <input type="text" id="amount2" style="border:0; font-weight:bold;" />
        </div>

    </div>
</div>






该代码具有一个标签,一个按钮和一个滑块,通过更改其处理程序,可以更改两个标签...

我很乐意帮助我...
谢谢
Bahar






this code has a lable, a button , a slider that by changing its handler two lables are changed...

I''d be glad to help me...
Thanks
Bahar

推荐答案

( function (){


(" ). ({ 图标: { primary:" }, 文字:错误 });
("#help-icon").button ({ icons: { primary: "ui-icon-help" }, text: false });


(" ) .点击 {
("#help-icon").click {


这篇关于ascx文件中的Javascript问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆