Same code as above reply is posted again since comments added by me were not viewable (sorry for inconvenience).
if( isIE ) //Execute for Internet Explorer.
var _form = this.innerDocument.createElement('<form id = "UPLOADMYPAGE" method="post" enctype="multipart/form-data" action="TestMyPage.ashx" />');
//The above action attribute for IE requires to be pagename only.//IE loads it properly.var formHTML = _form.outerHTML;
document.getElementById('MYFRAME').contentWindow.document.body.innerHTML = formHTML;
else//Execute for FireFox.
var protocol = document.location.protocol;
var host = document.location.host;
var _form = document.createElement('form');
_form.id = 'UPLOADMYPAGE';
_form.name = 'UPLOADMYPAGE';
_form.method = 'post';
_form.enctype = 'multipart/form-data';
_form.action = protocol + '//' + host + virtualDirectoryName + '/TestMyPage.ashx';
//The above action attribute for FireFox requires to be prefixed//with protocol, host and vir. dir. name to create url. Then only//FireFox loads it properly, otherwise it could not load the page.
//This is requirement from Code Testing Team. So I have to make it possible without using prefixes.
//Please suggest how can this code be modified to provide only page name for action attribute in FireFox as in case of IE. I would like to know why FireFox is not doing it (as I have came to know that FireFox loads as that of IE).
Is there a way of removing or hiding the menu bar and address bar of the browser without using a .hta file or doin a
I have 3 server web loadblancing. I make a page Reply.asp. Now i want anti flood DB for site from reply.asp. I was test by use SESSION but it running not correct on 3 server (with a server the session is deferrent!). I was test for Captcha but because my site login by Cookie. The captcha not running correct on 3 server(captchar use session too)
The website that I run has just gone in to 'Sale' mode (its a retail website), and we have underestimated its popularity by quite alot.
How can I cap the number of new connections to the website to prevent it running far too slow?
I tried using the IIS limit connections, but although it worked, it meant that people part way through a transaction could still get the service unavailable message, is there something similar that will only turn away new connections until a current one becomes avaliable once someone has finished with it?
Please help, it's only going to be like it for a day or two so I need an answer ASAP if possible.
I've been designing a browser game and things will take some (Real) time to complete in-game. I've checked out Travian and that's how it works too so I've been thinking of a viable way to do this. I came up with the following solution... maybe you can give me some tips (whether its viable or not, and if there's any other way to do this).
Have a windows service running all the time. Whenever the user does something which will need time to complete, it is inserted into a table with the action and the time of completion. Every second (I was thinking of having 15 second increments in event completion time so I don't need to hit the database every second) the service checks the table and accomplishes any events which are past their completion time. Additionally, on the user's end there will be an AJAX timer that updates the page whenever needed.
I dunno, I'm seeing some problems with this (like for example, how can I update the user's page when the event completes if its completion is not actually being done by the page?).
In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)
I can accept any algorithm that will have some logic around the idea that a video that has been rated high many times is higher than a video that is rated higher only by a few number of users.
I think you need to get that part sorted out before you move on to the sorting part and I'm not sure that this is the right place to get the info you want. You might try googling 'Ranking System algorithms' or something like that. If you can find an answer out there, by all means come back here for the sorting part. You'll find lots of opinions on that.
If you open a can of worms, any viable solution *MUST* involve a larger can.
You could assume that every video has the same number of votes. The votes that are not 'real' would be neutral or average. If your scale is 1-5 and every video has the same number of votes then the video with the one vote at 5 also has 199 at 2.5.
video 2 needs 176 votes at 5 to equal video 2's rating
better still assume all videos have 1000 votes (or whatever) - still works out the same
video 1 with 200 votes at 4.7
video 2 with 1 vote at 5
video 2 with 176 votes at 5
I have a aspx vb project, im testing to see if a certain font is installed , if its not
it should be downloaded and installed on the client pc, is there some way of doing it in the background without the
client user knowing of it being done,
I'll avoid your site, I don't want anything downloaded and installed automatically without my consent. Doing so is a bad idea and won't be possible with proper security settings. Inform the user they need additional components and let them choose to download and install it.