I'd like to be able to right-click on an element on a web page and get the URL of the nearest anchor.
For example, say I'm looking at online docs, and I see a paragraph saying something surprising, then I'd like to be able to right-click on that, choose "copy URL of nearest anchor", then go to my IDE and be able to paste a URL like "htt...
Given the following url:
http://example.com?arr[]=hello&arr[]=to&arr[]=you
Am I able to bank on the fact that:
params[:arr] == ['hello', 'to', 'you']
?
I ask because I have some additional data that will be sent with the request that needs to be mapped to each of the values in params[:arr].
...
Hi!! I have an .aspx page named PropertyListNew.aspx which it's url is rewriten like this:
<if url="/Propiedades/(.+)/([0-9]+)">
<rewrite to="/propertyListNew.aspx?currentPage=$2" />
</if>
the thing is: I have an asp:DropDownList inside my page (with current url "/Propiedades/(.+)") with autopostbak=true and when that dropdown...
any one knows a way to get all the URLs in a website using javascript?i only need the links starting with the same domain name.no need to consider other links
...
I have an X amount of hrefs that look like:
<a href="http://url.com/?foo=bar&p=20" title="foo">Foo</a><a href="http://url2.com/?foo=bar&p=30" title="foo">Foo</a>
I'm trying to extract the parameter p from each href found; So in this case have an end result array as: array (20, 30)
What would be a good regex for this? Thanks
...
So i have a mvc system setup but it does not generate search engine friendly urls.
A typical url is in the format:
http://sitedomain.com/class/classMethod?parameter=valueA?parameter2=valueB
This is what i need to have:
http://sitedomain.com/class/valueA/valueB/
My .htaccess actually modified a part of the url already but i dont kn...
I'm setting up a search system which has urls eg. all parameters are optional and there are 15 possible params in total
http://example.com/search/key1-value/key2-value/key3-value/key13-value/key15-value
Is there a better way to set up the route than this?
Route::set('search', 'search(/<param1>(/<param2>(/<param3>(/<param4>(/<param5>(...
I am having a problem with the URL rewrite module. I have a subdomain with it's own set of rewrite rules and I am getting 404 errors whenever I click on Urls that have been reformatted. My setup is below.
On the main site I am using the following inbound rule to rewrite requests from {http}://mydomain.com/subdomain to {http}://subdomain...
I am having a problem with the URL rewrite module. I have a subdomain with it's own set of rewrite rules and I am getting 404 errors whenever I click on Urls that have been reformatted. My setup is below.
On the main site I am using the following inbound rule to rewrite requests from {http}://mydomain.com/subdomain to {http}://subdomain...
I'm using cURL to scrape web pages but I can only seem to scrape top-level URLs. For example, if I want to cURL the URL "http://www.businessweek.com/news/2010-09-29/flaherty-says-canada-july-gdp-report-tomorrow-may-be-negative.html" then it returns nothing (as if it's a blank page).
This is my C code:
#include <stdio.h>
#include <curl/...
Hi!
I want to work with assets (images, videos, audios...) which are uploading and which I can access to via URL, http://www.mypage.com/videos/nameVideo.flv, for example.
What I want to do is to extract metadata from them or other stuffs without have to download them in my local machine.
Before, what I have been doing is getting from my ...
Hi, I have the HTML in the form of a string and before I display it in the browser, I want to change all the relative urls on the page to absolute urls. How can I do it the best way? I was thinking of Regex as an option to get the href attributes of anchor tags and append the base url to it, but not sure how to do it? Can someone help or...
Is there a way to get the physical filepath from an ASP.NET's URL?
Scenerio: I have an app that is on two severs, but it will now be on lots more, and each server puts it in a different physical file path. Right now I'm doing this:
//for server 1
if (Request.Url.GetLeftPart(UriPartial.Path).Contains(".com"))
{ Application["StoreFiles...
I am currently working on downloading the data automatically on this page:
http://jcmramp.pjm.com/jcmRamp/ramp-data.jsp
I would like to somehow be able to control the URL so that, say, when I use the URL:
jcmramp.pjm.com/jcmRamp/ramp-data.jsp?directionSlt=1
the option selected for Location parameter would be PJM and when I do
jcmr...
Hi,
I am trying to get my urls to look like this:
example.com/posts/id_of_post/title_of_post
I have this in my controller:
match ':controller/:id/:link', :controller => 'posts', :action => 'show'
Say I have a list of posts.. how can I link to them?
<%= link_to 'Show', post %>
Just gives the usual /posts/id
On another note, at t...
I'm mirroring some internal websites for backup purposes. As of right now I basically use this c# code:
System.Net.WebClient client = new System.Net.WebClient();
byte[] dl = client.DownloadData(url);
This just basically downloads the html and into a byte array. This is what I want. The problem however is that the links within the h...
I am using a ALAsset Framework for accessing the files in the device's photo gallery.
So far I am able to access the thumbnail and display it.
I want to display the actual image in an image view but I am unable to figure out how to do this.
I tried using the URLs field in the ALAsset object but was unsuccessful.
Anybody knows how this ca...
I am using spring frameworking following is the mapping of url to controller
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/controller.web">webController</prop>
<prop key="/robots.txt">robotsController</prop>
</props>
</property>
</bean>
Whe...
How can i get external URL's HTML using jquery?
...
Say if i have
www.xxx.com/origin-to-destination/date/time
, will google index
www.xxx.com/origin-to-destination or www.xxx.com/origin-to-destination/date/time
or both
...