16,006,382 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Serenity1 (Top 10 by date)
Serenity1
12-May-15 2:33am
View
Any chance of re-uploading the pdf?
Serenity1
25-Apr-14 5:08am
View
Deleted
Is that thread on the client side or the server side?
Edit..
A example would be appreciated.
Serenity1
25-Apr-14 3:37am
View
Yes I have but sadly it didn't make a difference.
I believe that the problem is not the ajax but the threading of the application. I don't know why it has a 2 min delay and works afterwards but I'm pretty sure that I will need todo some threading.
I've tried Thread.Yield() (and still looking) but that doesn't allow other threads to execute.
Serenity1
24-Apr-14 14:01pm
View
No, they all successfully pass but are delayed when the big process starts (the excel import)
Edit. reply to previous q.
And they all fail? You'll want to post your code then.
Serenity1
24-Apr-14 13:55pm
View
Got the code now,
//Call back page WebForm1.aspx
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace IndyIIOrga.UserControls
{
public partial class WebForm1 : System.Web.UI.Page
{
public string sessionUserCID { get { if ( Session[ "UserCID" ] != null ) { return Session[ "UserCID" ].ToString() ?? "-1"; } else { return "-1"; } } set { Session[ "UserCID" ] = value; } }
protected void Page_Load( object sender, EventArgs e )
{
Random r = new Random();
//lblTesting.Text = string.Format( "{0}", cookieUserCID.ToString() );
lblTesting.Text = string.Format( "Indy is processing excel Line number {0}", sessionUserCID );
}
}
}
//Java that call the call back page
function SessionGetCookie()
{
$.ajax(
{
url: "../../UserControls/WebForm1.aspx",
type: 'post',
dataType: 'text',
cache: false,
success: function (data, textStatus, xhr)
{
$.cookie('UserCID', $( data ).text() );
}
});
}
//Code that loops to update the label
var sessionTimeoutWarning = 1; //1 minute
var sessionTimeout = 18;
var sTimeout = parseInt(sessionTimeoutWarning) * 10 * 1000; //Regular time is meant *60*100
setTimeout('SessionWarning()', sTimeout); //Java timer function
function SessionWarning()
{
SessionGetCookie();
$("#lblPosition9162wa").text( $.cookie('UserCID') );
setTimeout('SessionWarning()', sTimeout);
}
//Label on client machine
<asp:Label ID="lblPosition9162wa" ClientIDMode="Static" runat="server" Text="9999" >
Serenity1
24-Apr-14 13:52pm
View
Tried it on opera, chrome, firefox and Ie 9
Serenity1
3-Sep-13 2:55am
View
I've change the code to...
"var imgData = $.jqplot('MainContent_ctl02_ctl20_pnlPlaceHolderForExtraControl').jqplotToImageStr({});";
but now I get a different error....
Error: No data specified
[Break On This Error]
...f(az===null){az=-aA;au=ai;if(au==="multiply"){az+=2}}if(aA
Serenity1
3-Sep-13 2:49am
View
I tried placing the script onto a canvas but it just bombs out?
It only seems to work on something that is a div block.
Serenity1
3-Sep-13 2:31am
View
version: 1.0.8 * revision: 1250. From there site directly, I downloaded it a few days ago for the first time.
Its found in..
jquery.jqplot.js
line 9264
Serenity1
10-Oct-10 9:01am
View
Tried there suggestion about the reader quote but I can only place the <readerquotas> into the wcf server app.config file but when i place it into theServiceReferences.ClientConfig i get a Invalid child element.
Show More