url

How do I determine an image url string is without a base domain through javascript?

I'm capturing data from an external url using php and throwing it back to my page via ajax to load images. My problem is the external url have some images that are relative("images/example.jpg") so I have to prepend their base domain("http://www.example.com) so I can load it in my page. Problem is some of the images includes a base domai...

ASP.NET MVC - How to get Ajax 'onclick' for a specific action (I need for Ajax.ActionLink what Url.RouteUrl does for Html.ActionLink)

Hi, REVISION I want add a onclick to a element that handles a Ajax request, not just a route-redirect. I have these options for a route-url. Html.ActionLink(params) Url.RouteUrl(params) 'returns JUST ActionUrl So I can go like <div onclick="javascript:location.href('<%=Url.RouteUrl(params)%>')"></div> But how do I generate t...

Load URL from text box into iframe

How do you load a URL from a text box into iframe in a HTML file via javascript? ...

Why is ID in the URL a bad idea?

Hi, Why is it a bad idea to have a ID in the URL in terms of SEO? How does this: http://example.com/user/1234 Make SEO bad? Can someone give me a practical example where the SEPR lowers? ...

Can I do use a direct URL like twitter or myspace in PHP

Can I do that thing that twitter and many other sites do where a url shows a users page. www.mysite.com/the_user_name In php... or how does one do it? ...

PHP Equivalent to Perl's URI::URL

I'm in the process of rewriting a Perl-based web crawler I wrote nearly 8 years ago in PHP. I used the quite handy URI::URL module in perl to do things like: $sourceUrl = '/blah.html'; $baseHost = 'http://www.example.com'; my $url = URI::URL->new($sourceUrl, $baseHost); return $url->abs; returns: 'http://www.example.com/blah.html' t...

How do I easily parse a URL with parameters in a Rails test?

I have a some code that embeds a return_to URL into a redirect (like OpenID) that I want to test: def test_uses_referrer_for_return_to expected_return_to = 'http://test.com/foo' @request.env['HTTP_REFERER'] = expected_return_to get :fazbot # @response.redirected_to looks like http://service.com?...&amp;return_to=[URI-encoded ver...

url encoding using Flex navigatetoUrl function

Hi, I want to post data to a URL on my server from a Flex app. im using the following UrlParam = UrlParam + '&name='+ name.text + '&business=' + buisness.text; navigateToURL(new URLRequest(UrlParams),'_self'); the problem im having however is that if i enter a business with an ampersand ("A&b.com") then the name does not send. D...

[SharePoint] Publishing HTML Field Control Converts Relative URL to Absolute URL

So, after much research on whether or not we should the CEWP or the HTML Field Control on an external facing SharePoint site, we settled on using the Field Control (much thanks to AC). Now, we are having an issue that all the blogs I read say should not be an issue. When we put a relative URL into the HTML Editor and hit OK, it is auto...

URL for a user content site and SEO

I was thinking about how i should write my URLs. I want them to A) Be user friendly B) SEO C) allow fast DB queries. The information i have are username, category, mediaId, title and other data i dont feel is necessary (date, hash, etc). Should i have the username before or after the domain name? (username.mysite.com/ vs mysite.com/user...

C# How can I check if a URL exists/is valid?

I am making a simple program in visual c# 2005 that looks up a stock symbol on Yahoo! Finance, downloads the historical data, and then plots the price history for the specified ticker symbol. I know the exact URL that I need to acquire the data, and if the user inputs an existing ticker symbol (or at least one with data on Yahoo! Financ...

is there any way to overcome the 2k character limitation on the URL length?

I think the URL length can only be 2000 or so characters long. Otherwise, it will choke some versions of IE. Is there any way to overcome this problem? At first i was thinking about tinyurl, but tinyurl actually immediately redirects to the longer URL, so that probably will fail too. Update: I need such long URL because I need to be...

Is there a URL validator on .Net?

Is there a method to validate URLs in .Net (or ASP.Net, or ASP.Net MVC)? ...

What's the best character to represent blank spaces in a URL?

When you are building URLs that should be legible for users and search engines and you do it automatically from the content, what's the best way to represent blank spaces? Hyphens (this is what StackOverflow uses)? Underscores? Any other? Does any of those make a different for SEO? ...

How do I get URL label when parsing request URL?

URL can have a label, separated with a "#" sign, coming after the URL parameters. E.g. http://example.com/foo/bar.jsp?p1=v1#test_label I would expect label to be part of request.getQueryString() and part of request.getRequestURL().toString(). But it doesn't seem to be there. Is there a way to retrieve the label value from HttpServletRe...

Multiple domains point to one PHP file

2 of my urls, for example www.abc.com and www.def.com point to the same .php file. I have some text on that target page that needs to be dynamically changed depending on whether it came from www.abc.com or www.def.com. Can this be done? How? ...

building a url queue

Which is better for building a URL queue in large scale web crawler. Linked-list or or B-tree? ...

Get current URL from IFRAME

Is there a simple way to get the current URL from an iframe? The viewer would going through multiple sites. I'm guessing I would be using something in javascript. ...

How can I display short URLs without file extention?

Hi, I've looked around but wasn't able to find what I was looking for. I'm looking for a way to automatically create short URLs displayed in the browser, not using a URL shortener. Basically I would like to re-create something like this: idzr.org/1ptb I upload screenshots to my server with "GrabUp" on a regular basis but it creates r...

load html page into flex textarea

Hello I would like to show some textcontent from a website in a textarea box in flex. <?xml version="1.0" encoding="utf-8"?> import mx.managers.PopUpManager; import mx.core.Application; import flash.net.URLLoader; import mx.rpc.events.ResultEvent; import mx.controls.Text; import mx.controls.Alert; [Bindabl...