JQuery PWI 加载永远不会结束

发布于 2024-12-15 21:41:40 字数 2294 浏览 0 评论 0原文

我正在使用 JQuery Picasa Webalbum Integrator,它从代码隐藏中填充。但它并没有比加载屏幕更进一步。

到目前为止我的代码看起来像这样。

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <%-- JQuery Libary --%>
    <script src="Java/jquery-1.6.2.min.js" type="text/javascript"></script>

    <%-- SlimBox --%>
    <link   href="Java/jquery.slimbox2/jquery.slimbox2.css" rel="stylesheet" type="text/css"/>
    <script src="Java/jquery.slimbox2/jquery.slimbox2.js" type="text/javascript"></script>

    <script src="Java/jquery.blockUI.js" type="text/javascript"></script>

    <%-- PWI --%>
    <link   href="CSS/pwi.css" rel="stylesheet" type="text/css"/>
    <script src="Java/jquery.pwi.js" type="text/javascript"></script>

    <asp:Literal ID="Literal1" runat="server"></asp:Literal>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="container">
    </div>

    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</asp:Content>

代码隐藏看起来像这样。

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["ID"] != null)
        {
            Label1.Text = "";

            Literal1.Text = "";
            Literal1.Text += "<script type=\"text/javascript\">";
            Literal1.Text += "$(document).ready(function() {";
            Literal1.Text += "$(\"#container\").pwi({";
            Literal1.Text += "username: '" + Gallery.GetByID(int.Parse(Request.QueryString["ID"])).Username + "',";
            Literal1.Text += "mode: 'albums',";
            Literal1.Text += "albums: [\"" + Gallery.GetByID(int.Parse(Request.QueryString["ID"])).Album + "\"],";
            Literal1.Text += "thumbCss: { margin: '5px' },";
            Literal1.Text += "onclickThumb: \"\"";
            Literal1.Text += "});";
            Literal1.Text += "});";
            Literal1.Text += "</script>";
        }
        else
        {
            Label1.Text = "";
            Label1.Text = "Fejl";
        }
    }

我从不同页面获得的查询字符串。

I'm using JQuery Picasa Webalbum Integrator that gets filled from codebehind. But it's not getting further than the loading screen.

My code so far looks like this.

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <%-- JQuery Libary --%>
    <script src="Java/jquery-1.6.2.min.js" type="text/javascript"></script>

    <%-- SlimBox --%>
    <link   href="Java/jquery.slimbox2/jquery.slimbox2.css" rel="stylesheet" type="text/css"/>
    <script src="Java/jquery.slimbox2/jquery.slimbox2.js" type="text/javascript"></script>

    <script src="Java/jquery.blockUI.js" type="text/javascript"></script>

    <%-- PWI --%>
    <link   href="CSS/pwi.css" rel="stylesheet" type="text/css"/>
    <script src="Java/jquery.pwi.js" type="text/javascript"></script>

    <asp:Literal ID="Literal1" runat="server"></asp:Literal>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="container">
    </div>

    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</asp:Content>

The Codebehind looks like this.

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["ID"] != null)
        {
            Label1.Text = "";

            Literal1.Text = "";
            Literal1.Text += "<script type=\"text/javascript\">";
            Literal1.Text += "$(document).ready(function() {";
            Literal1.Text += "$(\"#container\").pwi({";
            Literal1.Text += "username: '" + Gallery.GetByID(int.Parse(Request.QueryString["ID"])).Username + "',";
            Literal1.Text += "mode: 'albums',";
            Literal1.Text += "albums: [\"" + Gallery.GetByID(int.Parse(Request.QueryString["ID"])).Album + "\"],";
            Literal1.Text += "thumbCss: { margin: '5px' },";
            Literal1.Text += "onclickThumb: \"\"";
            Literal1.Text += "});";
            Literal1.Text += "});";
            Literal1.Text += "</script>";
        }
        else
        {
            Label1.Text = "";
            Label1.Text = "Fejl";
        }
    }

the Querystring I get from a different page.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情感失落者 2024-12-22 21:41:40

我发现了错误。这是用户名。您会看到我的 picasa 帐户连接了两封电子邮件,这显然在加载时出现了问题。我所做的是创建一个新帐户和一个新专辑,现在一切正常。只要专辑是公开的。

I found the fault. It was the username. You see my picasa account got two emails connected to it, which apparently gives a problem when loading. What I did was to create a new acount and a new album, and now it all works fine. As long as the album is public.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文