web

console.log is not working in Android 2.1 emulator

i'm running one web application... in android emulator browser in one java script file i trying to output some string as console.log("android"); but i didn't got this log using adb logcat even i tried to start adb logcat firstly and then tun the app. but didn't got log message which i used in console.log is there any way so i can ...

detect when a webpage is updated

Hello, There is a website (very simple) which will be updated soon and I'd like to receive an alert at the moment it changes (like a sound, a popup,...) I guess I should send request every x minutes and compare the result with what's now but I don't know how to do that. I don't really care about the language used, I know java, python,...

When the request xml with extra elements, return Unmarshalling Error in CXF 2.2.7

The wsdl as following: <xs:complexType name="GetCompositionDto"> <xs:complexContent> <xs:extension base="tns:baseDto"> <xs:sequence> <xs:element minOccurs="0" name="itemCode" type="xs:string"/> <xs:element minOccurs="0" name="compositionVersion" type="xs:string"/> </xs:sequence> </xs:extension> </xs:complexContent> ...

Can Firefox Plugin, Greasmonkey, be detected by Web Servers?

Hi, My friend's account for some Facebook game was suspended on the grounds that he had Greasemonkey installed on his browser. He is asked to uninstall Greasemonkey and account has been restored. My question is how can a web server detect a client side plugin presence? I assume that Greasemonkey or greasemonkey scripts operate on the ...

What are "web services"?

I'm reading a book about programming ASP.NET in C#. The book makes the following comment: Previous editions of this book tackled web services, a feature that allows you to create code routines that can be called by other applications over the Internet.Web services are more interesting when considering rich client development (beca...

Consuming Web Services in Netbeans

Hi. I've setup a project in Netbeans 6.5 with some web services that I've created myself and some web services that I've imported from WSDL files. I've setup a couple of desktop application through Netbeans in order to consume these web services. I'm not too sure where to go from here. I have the GUI setup but not sure how to reference...

Anyone knows what the code snippet means below?

header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); I've never seen such headers,what's it for? ...

How to evaluate javascript code in Python

I need to fetch some result on a webpage, which use some javascript code to generate the part I am interesting in like following eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--)d[c]=k[c]||c;k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b...

Destroy and Show have same url in RoR, is it good?

Hi! Is it good when url to show and destroy are same? How it can be changed in RoR if i want continue use standard tools like script/generate scaffold ? Thanks. ...

How would you structure your workflow for a web application ?

Hi ! When designing a web application (or something else), it's good to have a workflow, and it's better to have a well ordered one. Starting with this idea in mind, I'd like to know what is your process from having an idea to maintain this great working project. For me actually, the process is the following one : Having the idea Ch...

Is there a good tutorial for figuring out what a website is doing so your program can do the same thing?

Is there a good guide or tutorial for people who need to programmatically interact with dynamic websites? There's been a rash of Perl questions about that lately, and I haven't found a good resource to point people toward. I'm asking not because I need one but because I don't want to waste my time writing it if it already exists. Althoug...

How to accomplish scrolling text on Twitter home page?

Hi, On the twitter home page (not logged in), there a scrolling text in the middle below the logo. How is this accomplished? It stops scrolling when mouseover and also has a popup dialog on relevant text. Thanks, Mike ...

Best practices for custom http user-agent strings?

I'm developing an application that communicates with an internal web service using HTTP. Are there any "best practices" for custom user-agent strings so that I can put a nice one in my app? It's a Python library and the lower transport is Python's own httplib. Should the user-agent string say that or something else? ...

iPhone Web Application + zoom in zoom out issue

Hello, I am developing a web application for iPhone safari browser. There is one strange scenario: A web page is loaded. User can zoom out that web page to see the contents in zoomed out manner. There is one button in the web page. Click of this button will hide one of the 'div' in same page and another 'div' of that same page will b...

url redirection

Hi, I need some help with regards to the url redirection. Here is the problem. We have a website with a section as http://www.site.com/sectionxxx/index.jsp we have another domain http://www.sectionxxx.com. The task is to forward any request comming for the http://www.sectionxxx.com; direct to http://www.site.com/sectionxxx/index.jsp....

HTML templating in C++ and translations

I'm using HTML_Template for templating in my C++-based web app (don't ask). I chose that because it was very simple and it turns out to be a good solution. The only problem right now is that I would like to be able to include translatable strings in the HTML templates (HTML_Template does not really support that). Ultimately, what ...

Creating a link button and an image button in ExtJS?

Hi, I want to create a link in ExtJS, but one that is made of button, so, that it contains event handlers (and I don't need to add my own event handlers.) Also, I would like to create a button that does display a big icon with text like: ICON TEXT so that the icon is not positioned on the left side, but on the top (and is larger than ...

What are some ways to identify a logged in user on the web?

Here is the scenario: There are 5 websites (different domain names) that need to share a session. I am using a bit of code on each site which returns a "blank.gif" image and at the same time sets the session (syncing it up to the current session). Each of the sites calls a session-img from each of the other sites. Also, all sites have a...

Detect mime type of an image via Javascript

Hi, i am detecting images on my webpage with javascript document.images function which returns an rray of images. Is there any way to get the mime type of the image from this since i am not using any extension names on images which are loading? ...

Client Side Development - In Process/Completed Indicator Preferences?

Hello, I have been doing more client-side development, managing the UI on the client and submitting data to the server via web service calls. I'm not looking for implementation details, but was curious on developer preferences for displaying an operation in process and what to display when completed or even failed. As a for instance, ...