url

GWT History token rewriting

Hi friends, I want to do history token rewriting. Don't know its possible or not. e.g. If my application URL is http://localhost:8080/myapp/#login which contain 'login' as history token. Is it possible to rewrite the URL like http://localhost:8080/myapp/user/login. Or is it possible to remove '#' from history token? ...

Grails SEO friendly URLs

The standard way of creating URLs in grails is: <a href="${createLink(controller:'news', action: 'show', params: [id: news.id])}">${news.title}</a> which generates the url: /news/show/102 I want more SEO friendly URLs like: /news/102/this-is-the-hottest-news-today What is the cleanest way to do this in Grails? I could use gra...

url encoded category and seo

I have a website in russian language and categories are russian words and these words must encode like this : %D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9 What would be the best URL structure for SEO and google ? www.example.com/%D0%A0%D1%83%D1%81/%D0%A0%D1%83%D1%/ or use category id and subcategory id www.example.com/1/4/ ...

PHP Regular Expression To Match Any URL Except Those From Example.com

Provide an example for the pseudo-regex: Match every url except those from example.com and example2.com according to the PHP regexp syntax. Here is what I have so far, but it doesn't work: $patternToMatch = "@https?://[^(example.com|example2.com)]\"*@i"; ...

How can I iterate entries in a URL resource pointing to a folder in a JAR

Hi all, I have a situation where an app I'm writing works fine from the IDE but fails when deployed into a jar. What I see is NULL pointer exception. What I'm trying to do is get a URL resource of a directory and then iterate through the files in that directory. The URL seems to work but I can't find a way to get the files from it. ...

Django URLs - How to pass a list of items via clean URLs?

Hi all, I need to implement a structure similar to this: example.com/folder1/folder2/folder3/../view (there can be other things at the end instead of "view") The depth of this structure is not known, and there can be a folder buried deep inside the tree. It is essential to get this exact URL pattern, i.e. I cannot just go for example.c...

Supress changing hexadecimal values in webbrowser.Url in c#

Hallo, I have a WebBrowser control webbr initiated and a page loaded. I fill out the fields on the page's form through parsing: HtmlDocument htmldoc = webbr.Document; and so on ... Then: webbr.Url = new Uri("http://www.host.fr/cherche?q_que=%2Barg1+%2Barg2"); htmldoc.GetElementById("Submit_Btn").InvokeMember("click"); S...

Generating a URL pattern when provided a set of 5 or so URLs

Provided with a set of URLs, I need to generate a pattern, For example: http://www.buy.com/prod/disney-s-star-struck/q/loc/109/213724402.html http://www.buy.com/prod/samsung-f2380-23-widescreen-1080p-lcd-monitor-150-000-1-dc-8ms-1920-x/q/loc/101/211249863.html http://www.buy.com/prod/panasonic-nnh765wf-microwave-oven-countertop-1-6-ft...

running a daily job as a URL on a hosted server

i have a hosted web site and i have an asp.net mvc site. The hosting company allows you to setup "scheduled tasks" which are basically just using the windows scheduler. The service checks a URL at whatever interval that you want but all you can supply it is a URL. i want to have a job that runs a db query and emails out to me the resu...

Pass model from url to create_object generic input view

I have multiple models that I want to create generic inputs for. My first pass used two separate urls: url(r'^create_actor/$, create_object, {'model': Actor, 'template_name': 'create.html', 'post_save_redirect': '/library/', 'extra_context': {'func': 'Create Actor'}, 'login_required': 'True'}), url(r'^create_movie/$, create_object, {'...

What's valid and what's not in a URI query?

Background (question further down) I've been Googling this back and forth reading RFCs and SO questions trying to crack this, but I still don't got jack. So I guess we just vote for the "best" answer and that's it, or? Basically it boils down to this. 3.4. Query Component The query component is a string of information to be i...

Pretty URL to string parameters

I have a website that use this style : /index.php?page=45&info=whatever&anotherparam=2 I plan to have pretty url to transform the previous url to : /profile/whatever/2 I know I have to use .htAccess and to redirect everything to index.php. That's fine. My problem is more in the index.php (Front Controller). How can I build back the ...

WCF Difference in two URLs that point to the WSDL

URL in browser: http://localhost:12345/FRB.EC.BMI.WebSvc/Datafaction.svc shows this: You have created a service. To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax: svcutil.exe http://sfbztkdev01v.biztalkde...

ASP.NET MVC : Ignore latter route elements in url for a form's action

Hi, I have a URL /products/search where Products is the controller and Search is the action. This url contains a search form whose action attribute is (and should always be) /products/search eg; <%using( Html.BeginForm( "search", "products", FormMethod.Post)) This works ok until I introduce paging in the search results. For example i...

Does a JavaScript bookmarklet need to be a valid URL?

I've searched around but I can't find any information about this; maybe I'm not using the best search terms. Does a JavaScript bookmarklet - i.e., a link that uses the "javascript:" pseudo-protocol that can be dragged to a browser's address bar and opened on any page - need to be a valid URL? I've heard that it does, but I'd like to fin...

How to hide all URL in Firefox status bar when mouseover to any links?

Anyone can give me the answer? TQ. ...

How to open an URL in a QTableView

What is the best way to present a clickable URL in a QTableView (or QTreeView, QListView, etc...) Given a QStandardItemModel where some of the columns contain text with URLs I'd like them to become clickable and then handle the click by using QDesktopServices::openURL() I was hoping there would be some easy way to leverage QLabel's tex...

Set img src based on current URL in Nav with jQuery - similar to hover replace

I'm looking for something similar to this: http://stackoverflow.com/questions/302955/active-navigation-with-jquery-cant-apply-a-default-class-to-anchor But I'm using images inside a unordered list and I want to detect the current URL and append the img src with _over.jpg to show it being the current page. (no lectures on using BG positi...

android webview click opens default browser

Hi friends, I have a simple problem, i have loaded an external url in my webview. Now wat i need is that wen the user clicks on the links on the page loaded, it has to work like a normal browser and open the link in the same webview... but its opening the androids default browser and loading the page there??? I have enabled JavaScript.....

Best way to redirect user in login.aspx page webforms try to access a page without access

hi guys I'm with a question. Imagine, my web site is restricted in some URLs, in a login page i try to access a url than i dont have permition And if i doesnt i need to redirect to default page. which is the best choice to do? TY ...