Click here to Skip to main content
12,635,237 members (23,167 online)

Comments by Vyacheslav Voronenko (Top 60 by date)

Vyacheslav Voronenko 6-Aug-13 4:48am View
   
Either you create jsFiddle to localize concrete problem, or read documentation with examples on knockout & MVC4. This is something that can be resolved by documentation studying. I have provided you with clues.
Vyacheslav Voronenko 6-Aug-13 3:48am View
   
1. Read knockoutjs manuals
http://knockoutjs.com/documentation/json-data.html
2. Implement WebApi method returning json
3. Capture output, set to model.
4. Enjoy.
Vyacheslav Voronenko 5-Aug-13 4:32am View
   
Appcache is server side part. Perhaps you might want to reread appcache purpose once more - and rethink architecture of your onepage application
Vyacheslav Voronenko 5-Aug-13 3:22am View
   
Quoting standards:

Once an application is offline it remains cached until one of the following happens:

The user clears their browser's data storage for your site.
The manifest file is modified. Note: updating a file listed in the manifest doesn't mean the browser will re-cache that resource. The manifest file itself must be alternated.
The app cache is programatically updated.


In short: do not modify manifest file - than files will not get updated.

How to update manifest file for each user individually? (i.e. different users - different cache manifests, perhaps staged)

If user visit website first time, his browser loads current manifest, so you might want to use dynamic URL and generate manifest file dynamically:

<html manifest="manifest.php?version=2">

than have your server side to ensure that you update your dynamic manifest file once your user have performed some action to 'update'
Vyacheslav Voronenko 5-Aug-13 3:19am View
   
If - cache manifest have changed on a server, AND - your single page application is online. - _Why_ do you need to abort that process?
Vyacheslav Voronenko 2-Aug-13 4:39am View
   
> Have you waited for player javascript initialization/loading prior to calling dewplay? If it works with alert - this exactly means that you haven't waited.
Vyacheslav Voronenko 2-Aug-13 3:25am View
   
From your code is not clear what is dewp. How variable de is used? Have you waited for player javascript initialization/loading prior to calling dewplay?
Vyacheslav Voronenko 1-Aug-13 8:24am View
   
I believe you have to start from reading http://symfony.com/doc/current/index.html and your own experiments.
Vyacheslav Voronenko 1-Aug-13 6:48am View
   
My experiments show that it effectively forces cache reload. In addition you might want to introduce some versioning in your cache manifest file (for example calculate hash of all included files, or smth like this) to make sure that in case of any file change manifest file will be definitely updated.

Dirty example:

<?php
header('Content-Type: text/cache-manifest');
echo "CACHE MANIFEST\n";

$hashes = "";

$dir = new RecursiveDirectoryIterator(".");
foreach(new RecursiveIteratorIterator($dir) as $file) {
if ($file->IsFile() &&
(pathinfo($file, PATHINFO_EXTENSION)!='appcache') &&
(substr($file->getFilename(), 0, 1) != ".")
)
{
echo $file . "\n";
$hashes .= md5_file($file);
}
}
echo "# Hash: " . md5($hashes) . "\n";
Vyacheslav Voronenko 1-Aug-13 3:45am View
   
Prior writing comment, have you tried code above with activated google chrome developer tools console?
Vyacheslav Voronenko 1-Aug-13 2:00am View
   
The default submit button. It's up to you which button should be default.
Vyacheslav Voronenko 1-Aug-13 1:54am View
   
What have you tried so far? There is a number of examples over the net.


<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.ui/1.8.5/jquery-ui.min.js"></script>
<script src="../Scripts/jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="../Scripts/jquery.timers-1.0.0.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function () {
var j = jQuery.noConflict();
j(document).ready(function () {
j(".refreshMe").everyTime(5000, function (i) {
j.ajax({
url: "refresh.html",
cache: false,
success: function (html) {
j(".refreshMe").html(html);
}
})
})
});
j('.refreshMe').css({ color: "red" });
});
</script>
Vyacheslav Voronenko 15-Mar-13 6:56am View
   
No problem at all :) Cheers!
Vyacheslav Voronenko 10-Mar-13 13:06pm View
   
Looking on docs - are you sure device is correctly configured (in terms of address) and is located in the same network range as your computer? Is standalone test with elTest tool passed?
Vyacheslav Voronenko 10-Mar-13 10:25am View
   
You have to solve this problem at your box 192.168.1.7 - run something that you were expecting to contact at this port. (What is it?)
Vyacheslav Voronenko 10-Mar-13 3:54am View
   
You do not need any C# here - it just allows you to simply check if smth listens to remote port or not.

From the command prompt.
Vyacheslav Voronenko 8-Mar-13 10:03am View
   
Well, very strange way to learn, really. Your teacher might want to rethink his approach...
Vyacheslav Voronenko 7-Mar-13 6:37am View
   
What is the result of telnet 192.168.1.7 1024 command?

If
Connecting To 192.168.1.7...Could not open connection to the host, on port 1024: Connect failed

Than problem is not in your application.
Vyacheslav Voronenko 27-Feb-13 9:13am View
   
have you tried to debug, use some http inspector?
Vyacheslav Voronenko 18-Feb-13 2:19am View
   
I think MSDN contains simplest. Have you tried any in SQL Manager?

For the first example on MSDN ...

Remarks
As an example, assume that you have the following table:
T (ProductModelID int, Instructions xml)

at what moment you have you lost the point?
Vyacheslav Voronenko 8-Feb-13 14:29pm View
   
What code have you wrote so far?
Vyacheslav Voronenko 5-Feb-13 9:57am View
   
Look for html editor docs. TinyMCE for example has rich examples on this topic
Vyacheslav Voronenko 3-Feb-13 2:47am View
   
Code means that my suggestion below is right. You are lucky that your input is called fromLength.

Study a bit

https://developer.mozilla.org/en-US/docs/DOM_Client_Object_Cross-Reference/DOM_Events
https://developer.mozilla.org/en-US/docs/DOM/element.addEventListener

Play a bit with the debugger.
Vyacheslav Voronenko 2-Feb-13 4:30am View
   
Do you have jsfiddle example for this?
Alternatively provide html part as well.
Vyacheslav Voronenko 1-Feb-13 11:41am View
   
I suppose in a similar manner, but if necessary cast to another datatype, rather than nvarchar, if element contains number.

Make sure you put indexes on appropriate paths.
Vyacheslav Voronenko 1-Feb-13 10:54am View
   
If somebody will convert this function into php, how will you use it w/o language knowing?
Vyacheslav Voronenko 1-Feb-13 7:00am View
   
Have you looked at execution plan? Provide screenshot or it's output.
Vyacheslav Voronenko 31-Jan-13 4:40am View
   
Unclear question. What site you have problem with? What is address of RSS feed?
Vyacheslav Voronenko 31-Jan-13 4:39am View
   
Nice idea. Have you already written some logic? What issue do you have?
Vyacheslav Voronenko 30-Jan-13 1:36am View
   
You need to review version requirements for all the 3rd party libraries you are using. Windows 2000 is quite old system - so it could be not supported in some of the libraries used.
Vyacheslav Voronenko 29-Jan-13 7:01am View
   
Thus, it will not work due to reasons specified above.
Vyacheslav Voronenko 28-Jan-13 15:22pm View
   
This is one of approaches that could be used to make, for example, menu usable on touch device
Vyacheslav Voronenko 28-Jan-13 14:05pm View
   
I think it is wrong to mix different entities (case, operating system) in one table/recordset. Better to split them into two different recordsets.
Vyacheslav Voronenko 28-Jan-13 12:01pm View
   
I think, some markup was filtered out during commenting
Vyacheslav Voronenko 28-Jan-13 11:52am View
   
Where is updated code?
Vyacheslav Voronenko 28-Jan-13 9:23am View
   
Give us link to deployed app :)
Vyacheslav Voronenko 28-Jan-13 9:21am View
   
And ASP.NET MVC in particular allows implementation. Would you mind to read some documentation?

Codeproject also has some articles on this topic

http://www.codeproject.com/Articles/22069/Building-a-Multi-Tier-Web-Application-in-the-NET-3
Vyacheslav Voronenko 27-Jan-13 12:33pm View
   
What have you already tried?
Vyacheslav Voronenko 27-Jan-13 12:32pm View
   
Sir, ASP.NET MVC is C# :)
Vyacheslav Voronenko 27-Jan-13 2:41am View
   
I recommend studying manual
http://msdn.microsoft.com/en-us/library/ms159624.aspx
Vyacheslav Voronenko 27-Jan-13 2:33am View
   
Have you tried anything? Saying writing select to database, creating view with dropdown, etc. What issue you are struggling with?
Vyacheslav Voronenko 26-Jan-13 17:08pm View
   
This is smth unrelated to original question
Vyacheslav Voronenko 25-Jan-13 6:43am View
   
Nice catch :)
Vyacheslav Voronenko 25-Jan-13 6:36am View
   
:) Thanks
Vyacheslav Voronenko 24-Jan-13 15:06pm View
   
What have you already tried?
Vyacheslav Voronenko 24-Jan-13 5:56am View
   
Smth like

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
Vyacheslav Voronenko 24-Jan-13 4:43am View
   
Rephrase question to be more precise, provide code fragment with issue.
Vyacheslav Voronenko 24-Jan-13 2:10am View
   
Sir, there are different methods of debug. Use some! If it shows on select - extract it, run separately, simplify until the moment when it is clear what's wrong. This has nothing to do with original question.
Vyacheslav Voronenko 24-Jan-13 1:40am View
   
Again, is it error in this select? Message shows error in the stored procedure. Is it hard to execute just this single select, to check if IFNULL works?
Vyacheslav Voronenko 23-Jan-13 8:13am View
   
And what is result of the query? I see that you still have e.industry_type w/o ISNULL in another clause.
Vyacheslav Voronenko 22-Jan-13 11:42am View
   
Have you tried to use ISNULL(e.industry_type,'some default value if null') as suggested?
Vyacheslav Voronenko 18-Jan-13 2:00am View
   
Definitely Divs are easier to adjust and restyle, but in order to deal with different resolutions - nowadays we use CSS media queries, and keeping font sizes in 'EM's.
Vyacheslav Voronenko 17-Jan-13 16:05pm View
   
You are correct, R2 with Advanced Services has 10G limitation now.
Vyacheslav Voronenko 17-Jan-13 9:39am View
   
Does your server allow anonymous requests?
Vyacheslav Voronenko 17-Jan-13 7:03am View
   
Sir, vsdoc files are intended to provide hints for intellisense in Visual Studio

See blog post for the example of use
http://blogs.msdn.com/b/webdev/archive/2008/10/28/rich-intellisense-for-jquery.aspx
Vyacheslav Voronenko 17-Jan-13 5:55am View
   
Not sure what do you mean

context.beginPath();
context.rect(188, 50, 200, 100);
context.fillStyle = 'yellow';
context.fill();
context.lineWidth = 7;
context.strokeStyle = 'black';
context.stroke();

All the functions to draw the rectangle are present in the vsdoc
Vyacheslav Voronenko 16-Jan-13 3:17am View
   
Most likely you have to use target attribute on link tag:
http://www.w3schools.com/tags/att_a_target.asp
Vyacheslav Voronenko 16-Jan-13 2:35am View
   
Ooops! I missed that it is IOS6! Apple ignores the rules, and uses it's own caching policy. Common workaround, is to add some fake unique parameter to query (for example current date and time).

Proof:
http://arstechnica.com/apple/2012/09/developers-claim-safari-in-ios-6-breaks-web-apps-with-aggressive-caching/

Another option, like correctly mentioned A Patra - set to no-cache:

No Cache-Control or Expires headers = iOS6 Safari will cache
Cache-Control max-age=0 and an immediate Expires = iOS6 Safari will cache
Cache-Control: no-cache = iOS6 Safari will NOT cache

Vyacheslav Voronenko 15-Jan-13 7:51am View
   
Unless noone else provide you a clue,

I would try following steps:

1. create another temporary user account on your windows 8.
Install a fresh copy o VS 2012 (or reinstall existing one)
Try to do the same steps, hopefully it will fix the issue on your PC.
Vyacheslav Voronenko 15-Jan-13 7:47am View
   
Is your Windows 8 release candidate, or last available one?
Was it legally activated, or some sort of activation cheating was used?

Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid