I am a big proponent of using super clean urls for all pages and lists. Generally my pagination urls are just example.com/section/page/2 and tags are example.com/tags/tagname. I generally even try to leave the row id out of the url.
But how would you guys suggest doing a filter list?
Say you have a list of cars and you want to sort by ...
Hi,
I'm making a website that tend to handle all the request in one page (Ajax).
so i thought that I could trap every user's click on a link and check IF it's on my website i do something on JavaScript like an ajax request for example, ELSE it would open the link like usual!
doing a watch on window.location did not work!
and moreover I ...
Hi
when i am trying to open a page using window.open, its not working. The path shown is like "xyz/a%20b%20c%20.pdf" where it is suppose to be "xyz/abc.pdf". if i remove the "%" and "20" manualy, it will work.. how can i remove this using code?? please help me
Thanks in advance..
tismon
...
hello, I hope that it's okay to ask this question here. As a complete beginner i was wondering how some websites url addresses don't change when you click on an internal link. So if for example the url is www.mysite.com it remain exactly that if you clicked on the "contact" link of that site for example. Also when i go to my site it chan...
How can I write a regex which will replace any file name, with it's folder path, but wouldn't match url? and wouldn't match in url? For example it should match:
/images/something.png
content/scripts/myscript.js
image.gif
/1.jpg
But should not match:
http://www.google.com/images/something.png
www.google.com/scripts/myscript.js
http://...
I am using zend framework with Apache sever on Ubuntu. When I try my site on localhost, I use following url
for example:
http://test.dev/authentication/login
http://test.dev/student/profile
Where 'authentication' refers to AuthenticationController and 'login' refers to loginAction.
'student' refers to StudentController and 'profile'...
I'm trying to store a url such as:
http://localhost/pro%5Fprint/index.php#page=home
in a variable, but I can't find a function that does that. I found plenty of solutions to store the index.php, but it doesn't include the hashmark and what follows it. Is there a PHP solution for this?
I did see that I can get the full url including ha...
Hate coming up with titles. I need something that'll actually capture the following:
site.com/500/ (a number as the first param)
site.com/500/ABC/ (a number and a 3 letter code)
site.com/500/ABC/DEF/ (a number and 2x 3 letter codes)
What I have been messing with:
^(\d+/)?(\w{3}/)?(\w{3}/)?$
That sort of works but includ...
After searching a lot over the internet I finally decided to post this question.
I am using THICKBOX jquery tabs.When any of the tab is clicked I want to pass the URL.IDNUMBER to the iframe which on tab pages .
I was able to send the IDNUMBER and display it in a text box by simply using jquery on the main page
$("#mytest").val('IDNUMB...
Hi
my client has a website that currently makes requests on a particular event (click, load etc). the website is working well and all but he has a problem with getting the website statistics with Google Analytics, the reason is, because the website never does a re-direct to a different page, it is all within the same page and no matter...
In my django view, i have logic that retrieves a querystring variable called url from the request object like so:
link: http://mywebsite.com/add?url=http://www.youtube.com/watch?v=YSUn6-brngg&description=autotune-the-news
url = request.Get.get("url")
The problem arises, for example,when the url variable itself contains parameters...
Hi,
I need to show a DIV on two pages (URL's) but not on the others.
(I have jQuery on the pages if that helps.). I'm a complete noob so all help is very much appreciate. Thank's!
Case (1) where I want to show the DIV:
On the start page, when the web browser address field reads 'www.mydomin.com'
The start page is PHP so I guess the f...
J2EE has ServletRequest.getParameterValues().
On non-EE platforms, URL.getQuery() simply returns a string.
What's the normal way to properly parse the query string in a URL when not on J2EE?
...
What would be a good way to handle URLs on a website that offers multiple languages, but has one primary language (in my case, English).
What should be the address of the home page in English? http://example.com/? http://example.com/en/? http://example.com/english/? Other?
What should be the address of the home page in another language...
I'd like to override HttpStyleUriParser, since I only want to modify it slightly. Microsoft also states (See MSDN)
Microsoft strongly recommends that you use a parser shipped with the .NET Framework. Building your own parser increases the complexity of your application, and will not perform as well as the shipped parsers.
However, ...
Hallo, can someone tell me how to get clean url' s on the IIS server where my site is hosted. I already emailed them, but I don' t count on any response anytime soon.
with clean url, I mean
to use path separators instead off variables like: ?url=bla
actually, same as stack overflow
problem with IIS is that it does not have htaccess
...
when I open popup window and set location=0 or location=no, url bar is still shown in IE8 and readonly.
How can hide it?
Thanks
...
I have a web application that you can use to import information from another site by giving it a url. It's been pointed out that you could use this feature to access a private site that is hosted on the same web server.
So...
How can I check that a given url is publicly accessible (whether on the same web server or somewhere different)?
...
Hi am trying to pass variables to php from inside an app.
<?php
// get email address
$email = $_GET['email'];
// get character name
$character = $_GET['character'];
// get password
$charname = $_GET['charname'];
// set up variables
$id = 0;
$idtest="no";
// set up database connection
$link = mysql_connect("localhost", "xxx username xx",...
Hi all, a quick Ruby question for you:
params = {:q => "A query",:foo => "bar",:nasty => "Schrödinger's cat"}
p do_it(params)
=> q=A%20query&foo=bar&nasty=Schr%C3%B6dinger%27s+cat
(I think ö encodes like that, excuse me if its wrong) Is there a simpler way to do this than the following?:
def do_it(params)
out = []
params.each_pai...