web-applications,webRelated issues-Collection of common programming errors
user968834
jquery ios events web-applications click
Building a web application and having trouble getting a click event to fire. It works perfectly when running from a normal instance of Safari, but when running from the home screen, it fails.$(“a.applink”).live(‘click’, clickHandler); var clickHandler = function(e) {console.log(e);e.preventDefault(); }When running from the home screen, ‘e’ is empty. If I replace ‘click’ for ‘touchend’, it does work, but touchend doesn’t give the correct behaviour (i.e. if you happen to touch a link to start a sc
Harika Choudary Kanikanti
java jsp web-applications
This question already has an answer here:How to avoid Java Code in JSP-Files?22 answersI am new to JSP i created a web application using JSP.I written the java code inside the JSP scriptlets(<%…..%>). For database connection also i fallowed the same manner.Example:html code;<%database connectivity code;%>some jquery code;<%again database connectivity code;%>But some people told to me that it has a big disadvantage that is “By using scriptlet declarations that only one person can
Yurii Soldak
java linux tomcat web-applications classpath
SummaryIs that possible for webapps deployed on linux + tomcat5.5 to use/see all /usr/share/java/ jars automatically?DetailsI’m packaging my java webapp for Ubuntu (yet the question is related to any linux-based distro) and going to make it depend on tomcat.I’m going to put context descriptor (an xml file) to /usr/share/tomcat5.5/conf/Catalina/localhost/ to make my app deployed. Having my web dir here: /usr/share/<appname>/web, how can I enable my app to use java jar libs installed in the
Peter Mortensen
c# .net iis web-applications web
We are developing a mini social networking web application. It has to get some JSON data from another web application. Strangly, when we run the code on our developer machine everything is fine and we get the JSON data. But when the same application is deployed on a web server, we get an error saying The underlying connection was closed: An unexpected error occurred on a receive.Please note: our login mode is Windows authentication:<authentication mode=”Windows”> </authentication>
4 revsHenry
web-applications coldfusion
Where do you do validation in a webapp (backend)?Option #1: Service layer? UserService.validate(FORM); // verify and returns struct of errorsOption #2: Object layer, on setter? e.g. user.setEmail(email); // throws invalid/used e-mailOption #3: Object layer, validate()? e.g.user.init(FORM); // accept any values, no type checking user.validate(); // returns struct of errorsWhat’s your take? Thanks!
Gaim
internet-explorer web-applications zk
I am using framework ZK to develop web applications and they have to be usable also in Internet Explorer 6+. I have registered event OnOK on the Textbox. This event should be emitted when key ENTER is pressed. In Firefox this works pretty well but in IE it doesn’t. Can anybody help me how to fix it, please? I’ll be very greatfulI am using framework versions 3.6 and 5, Firefox 3.5, Opera 10.60 and IEs are tested in IETester 0.4.4
Jav_Rock
python django web-services web-applications flask
Question is for programmers who have used Django and Flask for real projects.What challenges do you face going to the Flask?Interested in the situation when there may be unexpected difficulties (after using django).Specific examples are welcome.
Nishant Ghodke
php facebook facebook-graph-api web-applications
<?phpsession_start();require_once ‘facebook.php’;$app_id = “418907881455014”;$app_secret = “36389d2c4caaf6de86982cb87686a494”;$redirect_uri = ‘http://gooogle12.comuf.com’$facebook = new Facebook(array(‘appId’ => $app_id,’secret’ => $app_secret,’cookie’ => true));$user = $facebook->getUser();$user_profile = $facebook->api(‘/me’);$coded = $_REQUEST[‘code’];$access_token = $facebook->getAccessToken();$name = “”.$user_profile[‘name’].””;$fbid = “”.$user_profile[‘id’].””;function
Rajkumar Masaniayan
http caching web-applications
I would like to set a far future date for Expires for some commonly used but relatively unchanging content but am wondering how to inform web / browser cache to get the latest content from the server in case I have to unexpectedly push new stuff to the user?
c00000fd
c# asp.net web-applications httprequest
I’m not sure why am I getting such result.If I load the following URL into a browser:http://localhost:57845/app.ashx?n=update&url=some_url&logo=long_logo_namewhere the app.ashx file contains this code:public void ProcessRequest(HttpContext context) {string strURL = context.Request.Params[“url”]; }My strURL variable becomes some_url,/app.ashx. Any idea why?
tomzi
web selenium-ide
I’m trying to get a command return with selenium ide by doing it : storeTextPresent|myText|title gotoIf|storedVars.tite|true echo|${“true”}but it doesnt work…i have : [error] Unexpected Exception: fileName -> chrome://flowcontrol/content/extensions/goto-sel-ide.js?1347871647495, lineNumber -> 120.Does anybody know how to get the return? Thank you
PSJay Peng
java java-ee servlets web servlet-filters
I need do something special to specific Servlet class object by :if (currentServlet instanceof SpecificServlet) {// do something special… }But I can not find a method in FIlter to get the currentServlet.
Benjamin
python google-app-engine web webapp2
I’m building my new website using app-engine with python and webapp2 I’m having hard times to define the URIs in my web applicationthe result I need is:http://www.example.com/ http://www.example.com/products/ http://www.example.com/products/tableI thought it’s an easy task, but apparently it is not (for me, anyway)I’m getting 404 error when I’m trying to load something like that: http://www.example.com/products/chair/where is my mistake?app = webapp2.WSGIApplication([ webapp2.Route(‘/’, MainPage
Myles Grant
regex security web user-input
I would like to take regexes from users and then run them against other user-submitted input and display the output. What do I need to keep in mind, if anything, to protect against attacks?
Peter Mortensen
c# .net iis web-applications web
We are developing a mini social networking web application. It has to get some JSON data from another web application. Strangly, when we run the code on our developer machine everything is fine and we get the JSON data. But when the same application is deployed on a web server, we get an error saying The underlying connection was closed: An unexpected error occurred on a receive.Please note: our login mode is Windows authentication:<authentication mode=”Windows”> </authentication>
L-R
python asynchronous web tornado
Just trying to use the async functions of Tornado – I want to invoke a method from my handler but it keeps telling me that it “got an unexpected keyword argument ‘callback'”.class MyHandler(tornado.web.RequestHandler):@[email protected] get(self):response = yield gen.Task(self.dosomething, ‘argument’)self.write(response)self.finish()def dosomething(self, myargument):pass
Dima Pasko
c# visual-studio-2010 service proxy web
Everybody i need some help about web servicesI want to add web service to my project but i got an error .Web service adress is https://interaktifkargo.ptt.gov.tr/topluTakipDetay/topluTakipDetayWhen i want to add vs2010 add web service Error is ‘https://interaktifkargo.ptt.gov.tr/topluTakipDetay/topluTakipDetay’accor while loading .connection close.The process of sending anunexpected error has occurred.Unexpected end of file, or 0 bytes were received transport stream.Metadata contains a reference
Bastien D
web key hidden
Actually, i have this url http://mydomain.fr/user/1 in my web application. I think it is not very safeI would hide the id which is auto_increment.To not be able to do that:http://mydomain.fr/user/1 http://mydomain.fr/user/2 http://mydomain.fr/user/3 http://mydomain.fr/user/4 http://mydomain.fr/user/[…]I do not know which technique to use…Hash MD5 stored beside primary key UUID / GUIDI use MySQL.
peer754
c# api rest web
Just installed VS 2013 Express for Web and thought that I should try out some of the many tutorials. This one: create a rest api with attribute routingWhen I come to the place (Add a Web API Controller) where you should add a controller I get an unexpected error saying: There was an error running the selected code generator: ‘Method failed with unexpected error code 1337.’Searching for this error message points to threads here but I haven’t found a solution/explanation yet.
M. Berkhof
c# web mime-types
Ive seen application/png and image/png mimetypes, whats the difference between these two and why do both mimetypes exist?
Web site is in building