Does anyone know the full list of characters that can be used within a GET without being encoded? At the moment I am using A-Z a-z and 0-9... but I am looking to find out the full list.
I am also interested into if there is a specification released for the up coming addition of Chinese, Arabic url's (as obviously that will have a big im...
I'm trying to figure out how to show/hide links for users based on their roles. I know how to set the authorize attribute for an action method, but I'm having trouble making links show hide in a view if the user is say, an admin or a manager in my roles database.
Any good articles or code example someone can point me towards?
...
I have the following html in a page:
<div>
<iframe src="http://google.co.in" style="width:200px;height:200px">
</iframe>
<iframe src="http://" style="width:200px;height:200px">
</iframe>
</div>
This page displays correctly in Firefox:
But in IE (7 & 8), the whole page gets replace...
How do I get the absolute or site-relative path for an included javascript file.
I know this can be done in PHP, (__file__, I think). Even for an included page, one can check the path (to the included file). Is there any way to have this self awareness in Javascript?
I know I can can get the page URL, but need to get the JS URL.
Eg. ...
How do I pass a date via the URL?
Here is what I am trying to do, as as you'll see the date uses forward slashes which are invalid in the URL
http://localhost/Controller/Action/id=0d5375aa-6d43-42f1-91f0-ea73d9beb361&date=02/12/2009
...
What I'm looking for specifically is some code in Java that will take a Map object and convert it into a query string that I can append to a URL I return. I'm sure there's a library that does this and much more, but I can't find it with a quick Google search. Anyone know of one that will do this?
...
I wanted to create REST friendly URLs with my WCF service endpoints by avoiding the use of .svc. I know I can accomplish this by using IIS rewrite module to append the .svc.
Does anyone else know of a better way to do this?
Please note that I am limited to .NET 3.5 and cannot use .NET 4.0 (so can’t use System.Web.Routing in .NET 4.0)
...
http://localhost/test/editformquestions.php#?formid=1
And
http://localhost/test/editformquestions.php?formid=1
I failed to retrieve $_GET['formid'] in the first one,why?
The content of test/editformquestions.php is simply:
<?php
echo $_GET['formid'];
?>
...
I'd like to automatically highlight and extract URLs from a QWebView or QTextEdit. I've found a lot of RegEx examples on the web which allows to do just that, but most of them seem overly complicated, don't work properly or are not compatible with Qt4's RegExp implementation.
So I'm asking here for a Qt4-specific RegExp pattern which al...
I've seen somewhere a urls.py construct like this:
from project.f import SomeClass
urlpatterns = patterns('',
(r'^url/$', SomeClass()),
)
Nowhere in http://docs.djangoproject.com/en/dev/topics/http/urls/ I can
find out what this means, normally an entry is like this:
(r'^url/(?P<some_id>\d+)/$', 'project.views.some_view'),
C...
I'll explain:
I have a picture gallery, the first page is display.php.
Users can flip through pictures using arrows, when you click an arrow it sends an Ajax request to retrieve the next picture from the db. Now I want the URL to change according to the picture displayed.
So if the first picture is:
www.mydomain.com/display.php?picture=...
I need to modify my function to return also the current folder I am in. Here is my current function:
function getLinkFromHost($url){
$port = $_SERVER['REMOTE_PORT'];
$server = $_SERVER['HTTP_HOST'];
if($port == 443){
$type = "https";
} else {
$type = "http";
}
return $type . "://" . $ser...
Hello everybody!!!
On Google App Engine I found this code that is fetching a web page's URL:
from google.appengine.api import urlfetch
url = "http://www.google.com/"
result = urlfetch.fetch(url)
if result.status_code == 200:
doSomethingWithResult(result.content)
Is this the right code to fecth that page's HTML source? Does the resu...
Hi, I have the code for you as follows:- first of all in the head tag I have following javascript:-
<script type="text/javascript">
{ function startmeup(urlname) player.url=urlname }
</script>
then I load windows media player
<object id="player"
type="video/x-ms-wmv" classid="CLSID:6bf52a52-and the rest"
class="style" style="...
Say I am on a page at
www.foo.com/foo/bar/page.jsf
and want to define a navigation rule to go to
www.foo.com/foo/
how would I define the <to-view-id> of the navigation rule. I thought it would be something like this:
<navigation-case>
<from-outcome>goToFoo</from-outcome>
<to-view-id>/../</to-view-id>
</navigation-case>
but...
How do I get the current URL of my script using PHP?
...
i want to write a java application that will classify url into malicious and benign.
ie when the user types a url in the address bar, my program should read that url , classify it and block it if it is malicious.
how do i read the url from address bar of a browser once the user has entered it..
please help..
Thanks
...
I have 4 one-to-many relationships in a row so that each entity essentially has a parent entity. What is the best way to do this. Heres what i have so far?
for the entities - Items -> Gallery -> Image -> Image Properties
The url for items is easy
item/list
for the gallery though it could be
item/gallery/1
for the gallery list o...
I want, when I type http://localhost/Admin, to take me to the page http://localhost/Something/Login.aspx. How can I do this?
...
What's the best method to debug Django's url configurations? Sometime it just throw out a Unhandled Exception without any hints if there is an error in urls.py
Sometimes it throws out errors like "unbalanced parenthesis" but I still dont know which line in urls.py caused the error.
...