Removing Keywords In URL?
Apr 4, 2009
I'm having an issue in Internet Explorer to where the javascript i'm using isn't working now. In firefox it works great!
Code:
<script src="::URL::/jscript/php.js" type="text/javascript"></script>
<script language="Javascript">
function gup( name ) {
name = name.replace(/[[]/,"\[").replace(/[]]/,"\]");
[Code]....
I am using php.js from phpjs.org
You can see a live sample by visiting [URL]
View 1 Replies
ADVERTISEMENT
Jun 1, 2009
I want to validate an imdb URL and an keywords field who contain minimum 3 words separated by comma. This script valdate any url, but I want to validate url like this: [uRL]
var urlRegex = /http://[A-Za-z0-9.-]{3,}.[A-Za-z]{3}/;
if(url == "") {
inlineMsg('url','<strong>Error</strong><br />You must enter an URL.',2);
return false;
} if(!url.match(urlRegex)) {
inlineMsg('url','<strong>Error</strong><br />You have entered an invalid url.',2);
return false;
}
View 3 Replies
View Related
Apr 17, 2010
I've Googled this without success. I have a webpage with an iframe which is on my same server. My parent page is a form which posts to the iframe page. The iframe page is a shell script that is used to telnet to routers and process commands and display the commands and responses.
I need to have a highlight text option on the parent page for what is displayed in the iframe. Is this possible to do this with Javascript and if so, can you share that with me?
View 1 Replies
View Related
Jun 5, 2010
i have situation that i need to remove table that is automaticly generated, but i also need to not remove contents of table.
<UL>
<table class="mytable" width="100">
<body>
[code]....
View 2 Replies
View Related
Apr 28, 2009
By using the following code i am able to find only first occurrences of the keywords. How to make it work for all of the occurrences.
View 2 Replies
View Related
Apr 1, 2009
1. append the following results to a .txt file.
2. transform the ampersands to white spaces.I am in germany so there are many letters like: �, �, � which google writes as ampersand
3. if keywords = table content, then hilite the table-cell (DIV)where they are situated
I am not working with PHP.
<script type="text/javascript">
var searchFld = document.getElementById("adiv");
if (searchFld != null)
{
[Code].....
View 1 Replies
View Related
Jun 4, 2009
I need to compare a form input which has called the referrers Keywords with another DIV text content.If the content is the same then this DIV would come to the top. Till now I have tried the following, where the call referrers keywords is ok, but the comparison fails:
<html>
<head>
<script type="text/javascript">
[code].....
View 27 Replies
View Related
Nov 24, 2011
Using the search box in plugins to find a file uploader. File, upload, uploader, file upload, file uploader all return zero results. This seems a bit weird, what else can you call the thing? Are there really no uploaders in the repository?
View 1 Replies
View Related
Apr 13, 2010
I'd like to find certain keywords in the text of an html page and give it an underline and the ability to show a tooltip when hovered. When I try to use .text() on the top-level element, it just spits everything out, including javascript, etc. How can I go through line-by-line and do a word comparison with the keyword I'd like highlighted? I'm thinking of basically doing:
$(#toplevel).each(function () {
if ($(this).text() == 'keyword')
$(this).contents().filter(return this.nodeType == 3).wrap('<a></a>');
If that makes any sense.
View 72 Replies
View Related
Oct 27, 2010
We have site that has autolinking of keywords (~150), each going to a specific page in the site. On a forum page with 300+ posts (all on one page) the php script takes too long and errors with max execution time exceeded. (the owner want it all on one page, and there are also anchor links somewhere else directly to the posts)
Now I have tested jQuery with viewport plugin to see if I can only autolink the table-rows that are visible in the screen only. (if I run the function on the whole page the script becomes unresponsive) It works fine on page load, but when I run it in a loop to update every 5 sec the already matched keywords just disappear! I have tried the scrollstop plugin as well, but made the scroll unresponsive
var map = { 'test':'/test/test.php?id=2','test':'/test/test.php?id=2'}//these are in prod about 150 key-value pairs
(function( $ ){
$.fn.autolink = function (theProfName,theProfUrl) {
[Code].....
View 1 Replies
View Related
Aug 22, 2011
Our company own a lot of domains and want to put a short page of copy on each address along with keywords before redirecting the user to our main site. I have been able to get the page to load the main site after the desired time using this code in the head...
<META HTTP-EQUIV="refresh" CONTENT="40;URL=http://webaddress.com/">
That works perfectly, I am now trying to display a countdown timer from 40 seconds down to 0, and on 0 redirect the user. Saying something like "You will be redirected in XX seconds". Is there anyway of doing this? I've been searching google for the answers with no luck and can only seem to find timers that countdown to a set date.
View 13 Replies
View Related
Jul 23, 2005
I have an HTML file that has a call to a Javascript function in it as
follows:
<!-- bunch of stuff -->
<script type="text/javascript">doXMLFromString()</script>
<!-- bunch of stuff -->
Now I make a copy of this HTML file by creating a new window and writing
var body = document.body.innerHTML;
printWin.document.write (body);
But this copies the script tag above as well, and then tries to call
that JS function (doXMLFromString). I don't want it to do that.
In other words I dont want that javascript statement to be executed. I
tried removing it from the document (using removechild) however it would
still get called.
How can I stop this?
View 2 Replies
View Related
Jul 23, 2005
Just wondering there is any other way to remove the toolbar from the browser
than using
" ...toolbar=no ..."
in the
window.open(...)
is there a way to do it after the browser opened? (say some Java script)
are there any parameters or style like stuff that can be embedded in the
HTML code and does it when the new page created?
or is the above method the ONLY way?
View 8 Replies
View Related
Dec 26, 2005
I am weak when it comes to regexp but hoped someone might know in this case.
I am trying to take a url like this :
something.lasso?blah=blah&blah2=blah2&sort=hello&blah3=blah3
And remove the &sort=XXX without hurting the rest of the url. The parameter
to be replaced would be a parameter passed to a function. Here is what I
have so far:
function refresh(item) {
current = document.location.href;
if(current.match(item.name+'='))
//pseudo code here
//current.replace(item.name regexp , '');
return (current + "&" + item.name + "=" + item.value);
This function would be fired like this :
All <input type="radio" name="show" value="all"
onclick="document.location=refresh(this);">
Mine <input type="radio" name="show" value="mine"
onclick="document.location=refresh(this);">
View 13 Replies
View Related
May 24, 2006
I've been given a large number of HTML pages. Each page has one or more
tags. When the pages were being built I asked that an ID attribute be
included with each element that will later be referenced. The first
ID'ed element on the page has the ID 'item0', the next 'item1' and so on.
Unfortunately they also included a NAME element which in many cases is
similar to the ID but out by one. That is the first element on the page
has the NAME 'item1', the next 'item2' and so on.
This stuffs up some things that depend on the ID (IE seems to make use
of the NAME instead of the ID when I ask getElementByID). Is there an
"easy" way to remove all the NAME attributes, or at least make them
invisible to IE, on page load?
View 2 Replies
View Related
Jan 4, 2011
My goal with a script I am writing is to remove signatures from a forum I am a part of. Some of the people abuse it with half a page of stuff and it's out of control. So here is what the HTML source code for it looks like
<table cellSpacing="1" width="100%" border="0" class="tback" cellPadding="2">
<tr>
<td width="100" class="headcell">Author</td>
<td class="headcell">Topic</td>
</tr>[CODE]...
The very bottom where it has the 'span' tag and it says "SEC Champions" is where the Signatures are located. I want to completely remove that using my script and this is what I have right now
function sigRemove() {
var sigs = document.getElementsByTagName('span');
for (var i = 0; i < sigs.length; i++) {
sigs[i].style.display = 'none';}}
I know it's incomplete but I only want to remove that bottom span tag and everything inside of it and not every span tag on the page.
View 8 Replies
View Related
Mar 21, 2004
I am retrieving a memo field from a db and using SS VB writing it to a JS function like so:
document.form.textarea.value = "<%=rs("Story")%>";
The problem I have is if the value of the recordset contains a CR, the function errs. How can I replace the CR with a /n or something similar that fixes this problem?
View 1 Replies
View Related
Mar 28, 2006
I have finally figured out how to make a call to an XML file using AJAX and then bringing it into the browser to manipulate with JavaScript. The only problem I'm having now is that I can't figure out how to remove the whitespaces between nodes so they won't show up as a childNode.
View 1 Replies
View Related
Jul 13, 2007
How do I remove the resulting comma from the output in this sort snippet?
<script type="text/javascript">
var arr = new Array()
arr[1] = "C"
arr[2] = "B"
arr[3] = "A"
document.write(arr.sort())
</script>
Gives me: A, B, C
Needed: A B C
View 1 Replies
View Related
Jun 19, 2010
I'm working on a Wordpress site and am using a photo gallery plugin. However, this plugin, for some reason, generates an empty table row and it's messing with my layout because I'm inserting a background image for each of the "TDs". I don't want to mess w/ the core files since the changes will be gone after the next upgrade. check out these two image links to see exactly what I mean.
[URL]
I know there are ways to dynamically remove elements using DOM. Would I be able to use that method here?
-edit- This gallery is paginated and I just noticed that on the last page, the last row actually contains two pictures and a " ". So, a better question would be: Is there a way to target just the td elements that have in them so I can add a display:none via css?
View 14 Replies
View Related
Nov 24, 2011
at the moment my code: new Date();
this displays:
Thur Nov 24 201115:28:53 GMT+0000 (GMT)
I only want it to say:
Thur Nov 24 201115:28:53
View 6 Replies
View Related
Jul 23, 2005
There doesn't seem to be any mechanism to "clear" a node of all
it's children (not that its necessary very often, but I have come
across situations where I'd like to clear a node of all it's
children before appending other nodes). I've come up with two
possibilities: Code:
View 4 Replies
View Related
Jul 23, 2005
Does anyone have or know of script that will stop yahoo adding their adverts to end of post to groups?
View 3 Replies
View Related
Jul 23, 2005
I wrote a simple script to remove an element of an array but I don't think this is the best way to go about it. I have a list of about five elements seperated by ";"
I split the array using array.split(";") command and proceeded to update the elemment by assigning the null value to the arrayindex
array[index]=""
This of course assigns null to the element
But there are two problems
1. The array size is still five instead of 4 and my list is now seperated by "," with an exta "," to go.
View 5 Replies
View Related
Jul 23, 2005
I've seen several older posts saying there is no way to hide menu bars
in IE unless you call window.open().
Is this still the case?
I'm interfacing with a app that I don't have control over. The idea is
that users log into my app do whatever and I then populate form tags
with user id and password and submit the form to the other app. This
logs the user in but the called app is used for reporting and the
status bar, menu bar and tool bar take up a lot of vertical space.
View 1 Replies
View Related
Apr 5, 2006
I just have one index.html page with NO links NO pics. Just a simple
html page.
Whenever I open that page I want to eliminate few things like:
I don't want scroll bar -> I have a solution <body scroll="no">
I don't want status bar -> ? need solution ?
I don't want toolbar bar -> ? need solution ?
I don't want menu bar -> ? need solution ?
I JUST want the title bar, address bar and the IE window.
View 5 Replies
View Related