web-programming

Create servlet from existing Java project

I have a Java Swing project for my class. I would like put it on my website so people can use it. However I'm not sure if there is a way to turn it into a servlet. Or do I need to know JavaScript? I'm confused. Is there a way to make my swing application into a servlet automatically? ...

what is ssl and how can i use to make my website secure?

Can anyone tell me about SSL and how it can be used to secure a website? ...

What are the tiers of N-tier structure and their functions for WEB Development in PHP?

Can anyone can tell me the N-tier Structure and their tiers used in Web Programming? Primarily, in 3 tier structure one is presentation layer, another is business logic layer and last is database access layer. But for N-tier or 4 tier structure what are the layers and what sort of functions do they hold on them? Please explain me with...

Data retrieval error in Jquery

I'm trying to retrieve data from a php file named return that contains <?php echo 'here is a string'; ?>. I'm doing this through an html file containing ` div { color:blue; } span { color:red; } var x; $.get("return.php", function(data){ x = data; }) function showAlert() {alert(x);} $(document).ready(fu...

Jquery each loop with json array

I'm trying to use Jquery's each loop to go through this JSON and add it to a div named #contentHere. The Json is as follows: { "justIn": [ { "textId": "123", "text": "Hello", "textType": "Greeting" }, { "textId": "514", "text":"What's up?", "textType": "Question" }, { "textId": "122", "text":"Come over here", "textType": "Order" }...

How do I clear the text contents of a div in javascript?

I'm temporarily adding contents to a div,tempDiv, and adding that to a link which is appended to a div, #contentHere, that's displayed. I need to clear the contents of tempDiv so that the links aren't appended to each other, creating a string of urls that don't link to anywhere. $(document).ready(function(){ $.getJSON("data.php", fun...

Some basic Comet/Jquery questions?

My questions are: What's a meta, what do subscribe and unsubscribe do, and what does startBatch/endBatch do? ...

Can I design Web pages with Delphi?

I have been programming with Delphi for a long time, and I focused on desktop applications. I decided to enter the web-page programming world. How can I have an interface like Delphi but with a scripting environment for web programming? Is there any version of Delphi I can make web pages with? Can the applications created by IntraWeb ca...

Detect physical screen dimensions

I know that it is possible for a website to detect a user's screen dimensions in pixels, but is there a way to detect the physical size of a user's monitor (in inches)? ...

"Saving" appended children?

Hi, Is there a way to keep children added to the DOM via .appendChild() after a POST/GET without regenerating them in JavaScript? Right now I'm regenerating them with a few function calls written in a script tag using php. ...

Question about web programming, maps to be specific

The prof gave us an assigment to finish in the next couple of months, we have to write a web app that is basically a mapping system for a floor of a building. Like a very very simple version of google maps, people need to be able to look up a room and be able to get directions from one part of the floor to another. I have never done any ...

Best web-programming language/platform to use?

I am putting up a blog style website. The website would be a blog style website where users can add comments at the bottom of each page. What is the best web-programming language/platform to use in this situation? Would ASP be suitable? ...

Which of client-side server side web-programming is better?

Which of client-side or server-side web-programming produces the best results for websites? Is the following a correct analysis of some major web-programming platforms? ASP - server side JSP - server side Coldfusion - server side Javascript - client side PHP - server side What sort of websites are better done using client-side, and w...

how to set content-disposition = attachment via javascript ?

can I set content-disposition = attachment via javascript. Basically, I would like to force a "SaveAs" operation after a page has loaded via Javascript, using Firefox. How can I do this ? ...

How can I turn off QSA? (query string append)

I'm using Apache2 and mod_rewrite to hide my query strings. These are the rules in question. RewriteCond %{QUERY_STRING} ^query=(.*)$ RewriteRule (.*) /search/%1 [R=301,L] RewriteRule ^search\/?$ /search/?query=test [R=301,L] When I visit /search (or /searc...