url

hash sign in facebook urls

I wonder, why facebook.com (hypem.com, etc.) choose a hash sign after domain to path other files. like http://www.facebook.com/#!/reqs.php#event (#!/reqs.php). What is the reason, and they map them with javascript? ...

Validating url with jQuery without the validate-plugin?

Hello I need to validate a url in variable with jQUery, but can't use validate-plugin. Is there a simple way to do this? Martti Laine ...

How to catch non exist requested URL in Java servlet ?

My objects are stored online in two different places : <1> On my nmjava.com site, where I can put them in a directory called "Dir_My_App/Dir_ABC/" <2> On Google App Engine datastore When my Java app runs it checks both places for the objects, I designed the app so that it tries to get an object from a Url, it doesn't care whether it's...

php website url matching question

hi, i am new to a php site, only familiar with .net web forms sites. i can't figure out how routing is working on this php site. www.oursite.com/suggestions.php is to suggestions.php www.oursite.com/suggestions also loads the php fine www.oursite.com/suggestions/ loads the php, but no css is applied www.oursite.com/suggestions/anythin...

Howto specify format of Restlet-response in browser?

Hello everybody, i've started to introduce myself into REST. I use as REST-framework Restlet. I have defined a resource with methods for the GET with several response formats like @Get("xml") @Get("json") I now want to test my defined response-formats with my browser, but I don't know which parameter I have to specify in my URL to ge...

How to use a filter in Java to change an incoming servlet request url ?

How to use a filter to change an incoming request url : From : "http://nm-java.appspot.com/Check_License/Dir_My_App/Dir_ABC/My_Obj_123" To : "http://nm-java.appspot.com/Check_License?Contact_Id=My_Obj_123" ? Frank Edit : According to BalusC's steps below, I came up with the following lines : import java.io.IOException; import jav...

COMPLETE list of HTML tag attributes which have a URL value?

Besides the following, are there any HTML tag attributes that have a URL as their value? href attribute on tags: <link>, <a>, <area> src attribute on tags: <img>, <iframe>, <frame>, <embed>, <script>, <input> action attribute on tags: <form> data attribute on tags: <object> Looking for tags in wide usage, including non-standard tags ...

How to get/obtain Variables from URL in Flash AS3

So I have a URL that I need my Flash movie to extract variables from: example link: http://www.example.com/example_xml.php?aID=1234&amp;bID=5678 I need to get the aID and the bID numbers. I'm able to get the full URL into a String via ExternalInterface var url:String = ExternalInterface.call("window.location.href.toString"); if (url)...

php variable-less argument?

hi just wondering. i've seen sites with this kind of url http://www.something.com/?somedata with the 'somedata' is the value of some 'unmentioned' variable how can i do something like that? all I know is the traditional http://www.something.com/index.php?arg=somedata thanks a lot ...

CodeIgniter: Passing variables via URL - alternatives to using GET

I'm new to CodeIgniter and have just discovered the difficulties using the GET method of passing variables via the URL (e.g. domain.com/page.php?var1=1&var2=2). I gather that one approach is to pass the variables in the URI segments but haven't quite figured out how to do that yet as it seems to create the expectation of having a funct...

Webfaction apache + mod_wsgi + django configuration issue

A problem that I stumbled upon recently, and, even though I solved it, I would like to hear your opinion of what correct/simple/adopted solution would be. I'm developing website using Django + python. When I run it on local machine with "python manage.py runserver", local address is http://127.0.0.1:8000/ by default. However, on produc...

Android Dev.: How to populate gallery by image URL?

I'm trying to build a gallery where the images within will be pulled from the images URL from a website. i.e. Instead of doing R.drawable.xxxx.jpg, you use a url to represent the image. Is this possible? If so, can you show me an example in code? Thanks ...

Invoking another URL

string url = "http://foo.com/bar?id=" + id + "&more=" + more; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); I m trying make a call to another server, and getting back the following: |FATAL|The remote server returned an error: (406) Not A...

Howcome I cannot make my javascript 'executable' in an address bar

The second link does not work like the first one. How come? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Dynamic CSS Properties</title> <script language="JavaScript"> function change(){ //document.getElementById("box1").style.visibility = "visible"; var spanArray = document....

Chrome frame causes postback to wrong URL and a Server Error in '/' Application error

I have a simple ASP page with no code-behind defined as: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head runat=...

Rails parse url to hash(Routes)

Hello. How can I parse url string to hash like {:controller => 'controller_name', :action => 'action_name', :id => 'id'} ? ...

How to get response header using ActionScript? (Flash)

So... I have a URL like www.example.com/stream/ I need to make any request to this url and get Http Rewspons header (like this one: HTTP/1.0 200 OK Content-type: video/x-flv Cache-Control: no-cache I do not need reponse body at all. After I get header need to emmidiatly close connection to that url (so stop to obtain data from it) H...

Parse URL from plain text

How can I parse URLs from any give plain text (not limited to href attributes in tags)? Any code examples in Python will be appreciated. ...

Non-Latin characters in URLs - is it better to encode them or replace with their Latin "counterparts"?

We're implementing a blog for a site which supports six different languages and five of them have non-Latin characters in their alphabets. We are not sure whether we should have them encoded (that is what we're doing at the moment) Létání s potravinami: Co je dovoleno? becomes l%c3%a9t%c3%a1n%c3%ad-s-potravinami-co-je-dovoleno and the b...

URLRewriter.net fails relative paths when using more than one substring in URL

Hi. I have installed the URLRewriter on my server, and it works fine, but I have a rather big problem. Relative links in hyperlinks, CSS-links, images etc. doesn't work when I have URLs with more than one substring. E.g. (sorry, no http:// in front, as I do not have enough reputation): dkbyg.strandweb.dk/Leje-og-udlejning-arbejdskraf...