|
Hi guys,
I have an API call that essentially returns the HTML of a hosted wiki application page. I'm then doing some substr, str_replace and preg_replace kung-fu to format it as per my sites style guides.
I do one set of calls to format my left nav (changing...
Started by Cory Dee on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The classic....
The structural difference to normal regular expressions is that the expression itself is wrapped into delimiters that separate the expression from possible modifiers .
The preg_* functions expect Perl-Compatible Regular Expressions (PCRE).
|
|
Hi People. I have implemented the following in to one of our sites to show an external link icon next to external links:
$(document).ready(function() { $('#extlinks a').filter(function() { return this.hostname && this.hostname !== location.hostname; }...
Started by Jackson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Please make sure links start with http:// I've tested it with following ....
The
this.hostname !== location.hostname
is returning true.
In front, not relative links.
It looks like the links are being written on the page with the www.
|
|
I am writing a program that will help me find out sites are my competitors linking to.
In order to do that, I am writing a program that will parse an HTML file, and will produce 2 lists: internal links and external links.
I will use the internal links...
Started by Eytan Levit on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
links in a page.)
i had used Regex for Html parsing it is really fast but now there are better.
|
Ask your Facebook Friends
|
Hi guys,
I know this is a common requirement and there are lots of answers out in the wild. I would really appreciate if someone can provide a correct script which opens only external links from an HTML file in a new window.
Started by theraneman on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If external, open in new window + " external....
You can use any, allow the link to progress as normal (i.e., return true and the like).
Callback, check to see if the href attribute of the link goes to an external site.
|
|
I have the following (jquery) selector looking for external links.
This works, and ignores all links that include location.hostname (e.g. www.domain.com)
My question is, how to extend this to also ignore links to subdomains of your site? (e.g. new.domain...
Started by htxt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For example, if your hostnames are always x.y.z then you could split off the last two pieces of the hostname and ignore any ... .
Well if you know what your subdomains look like with respect to your site's hostname, you could just make a regex out of that .
|
|
Hello all
I've configured external access to some sharepoint applications, including MySites, using AAM and ISA configuration.
Every seems working well, but when using the external access (ie via https), some links are not working because they use the...
Started by Busted Keaton on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
If your sharepoint application that is exposed to the external users has the internal name in the link to mysite when pages are rendered..
To be consistent for each zone.
|
|
I'm building my webapp using the wicket java web framework. there is one page that i'm building right now contains 20+ external links, a lot of them are pointing to the wikipedia pages. i'm currently hardcoding the url for all these links in the html ...
Started by fei on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Flexibility comes.
In my opinion, all of the text and links in a web application should think the links don't change, wait with programming until you need the flexibility.
Out you need to be more dynamic.
|
|
I am trying to remove external links from an HTML document but keep the anchors but I'm not having much luck. The following regex
$html =~ s/<a href=".+?\.htm">(.+?)<\/a>/$1/sig;
will match the beginning of an anchor tag and the end of an ...
Started by Mark on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If you="external" href="http:....
Why not just only remove links for which the href attribute doesn't begin;a class="external" href="..."> ) rather than putting together fragile solutions using s/// .
For your particular problem.
|
|
I'm a bit confused whether or not I should make the links on my website that point externally target="_blank". Does this practice negatively affect the usability of your site (i.e. breaking the "back button trail")? Is it commonly found annoying by most...
Started by Robert Greiner on
, 13 posts
by 13 people.
Answer Snippets (Read the full thread at stackoverflow):
I tend to err ....
However, the marketing types believe that opening an external link in a new window will keep realize that they have that choice, and will lose your website when they click a link to an external site.
Window.
|
|
I have some links on a site which I need to direct to a page telling the user that they are leaving the site. All of these links already have an onClick function on them which normall triggers an alert telling them that they are leaving the site.
For ...
Started by jon_brockman on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Why doesn't you just put an if in your displayWarning function using your already this as a parameter ... .
I think this is what you want:
location.href='/warning?url='+encodeURIComponent(location.href);
I can't understand what you're trying to achieve.. .
|