Search Multiple Intranet Pages With One Form?

Jun 24, 2011

There are multiple intranet pages with a list of names on them that are updated regularly.At the moment, there is no easy way to check if a name is on the pages without going in to each one at a time and searching them individually.

Is there a javascript script I could use to search all of the pages at the same time, and if a match is found, open the relevant page and highlight the result?

View 4 Replies


ADVERTISEMENT

Search/replace Patterns In Web Pages?

Jul 20, 2005

I need to search and replace patterns in web pages, but I
can't find a way even after reading the ad hoc chapter in New Rider's
"Inside JavaScript".

Here's what I want to do:

function filter() {
var items = new Array("John", "Jane");

for (x = 0; x < items.length; x++) {
//Doesn't work
pattern = '/' + items[x] + '/'
//Doesn't work either
document.body = document.body.replace(pattern,"IGNORED");
}

ie., create an array of items to look for in the BODY section of the
page, and if any item exists, replace the item with IGNORED.

Anyone knows how to do this?

View 4 Replies View Related

Using Single Search Box For Multiple Search Methods?

Dec 7, 2011

I have a website that I'm designing where I have the need to search multiple sites at specific times. By this I mean that In some cases, we would want to search only the internet using google, or only search the site that I've created (which currently uses the jse_search.js solution), or only our company's website.

I currently have four different search boxes that will search either the internet, the internal site, a separate internal site, or a third-party website, which all working fine. The problem is that the search boxes take up quite a bit of space, and the layout is becoming cumbersome. Is there a way in Javascript I could use a single search box and a drop-down list to select which method to use? The code I'm currently using is below. With the exception of the Google search function, I've modified some of the site names to general site names and paths to preserve the company's anonymity:

Code in the <head> tag:
<script language="JavaScript1.3" type="text/javascript" src="jse_form.js">
</script>
Code in the <body> tag:
<!--Begin Internal Site Search 1!-->

[Code]...

View 2 Replies View Related

Smart Search Form & Browsers Saved Search Fields?

Aug 18, 2010

I have created a similar smart search like yellowpages:[URL]... Here is the problem I have with mine:

Lets say I search 'Attorneys' I start typing 'Att' ... then 'Attorneys' shows up in the smart search so I click on it and press enter. The next time I start typing 'Att' my browsers saved search field pops up over the websites smart search. Here is an image which might help explain the problem a bit more:

View 1 Replies View Related

Transfering Multiple Div Between Php Pages

Dec 2, 2010

I have created a form with 4 textboxes and one listbox. What I want to do is for every record which i select from the list to populate the boxes with information from a MySql database. I have managed to do this for one textbox, but i have a problem when doing the same for more then one textbox (DIV). Below is the code I am using to identify the div and write the info in the right place, for only one text box.

THE FORM

THE AJAX FUNCTION

What should i do to transfer the DIV NetMask along?

View 3 Replies View Related

Mouseover Opening Multiple Pages

Nov 30, 2010

I was wondering if there's a way to get rid of the button, and make it so when the user opens the webpage, it automatically opens the multiple webpages.If that's not possible, I was also wondering if there's a way to make the button "click" on a mouseover, so when they move their mouse across the button, it opens the pages.

View 3 Replies View Related

Switching Stylesheets Across Multiple Pages?

Jul 13, 2011

I'm trying to allow the user to change the stylesheet of my website. I can change the stylesheet on a page by page basis (eg. from red style to blue style) but once the user navigates to a different page the stylesheet resets back to the original setting.

For example, when the user visits the site first its set to the red style, they can change it to blue but when they navigate to another page the style goes back to red again where as I want the style to stick across pages. Does anybody know how I can sort this out?

[Code]...

View 5 Replies View Related

How To Build A Table That Has Multiple Pages?

Jan 1, 2006

I am looking for code samples or websites that show me how to build a table that can split into multiple pages if there are more than certain rows. I am using AJAX to load the data into the table. But if the websites or code samples do not do AJAX, it's fine too because I maybe able to modify it to work with AJAX.

View 3 Replies View Related

Calling Pages In Multiple DIVs?

Apr 10, 2009

I have a site which lists the basic information of CDs and allows the user to click a link to see detailed information regarding each CD. I've been doing that for a long time by just putting the detailed information in a DIV and using a script to toggle the visibility of that DIV. Unfortunately, I've reached the point where that bloats the page too much for it to load efficiently.

My idea is to use an AJAX call and simply load the detailed information from an external file whenever the user clicks the link. This is basically the code I've tried to use for that, but using it would require me to individually assign an ID to every DIV, which is unreasonable.

I've kicked around various ideas--making a similarly-functioning code that applies to classes instead, using a script to apply an ID to an element when it is clicked and then calling the external page into that, etc.--but none of them have worked out.

View 8 Replies View Related

Sortable Tables With Multiple Pages Navigation

Oct 31, 2006

there are a lot of different scripts out there to sort a table with multiple
columns. However, I want to do something specific.

I have a table that is "spread" accross multiple pages. Usually, when a user
wants to change the page, what you do is compute indexes in the server and
return the modified list. But that's not what I want to do, I want to be
able to navigate through the pages AND be able to sort the columns within
the client screen.

Does anyone know of a good example of something like that ? I know it can be
done, I would have to write the entire data in the client side, and then
manipulate it with indexes and sorts. I am very much able to write such
data, but should "delete" and "add" new table Elements (in a way that is
browser compatible) or show/hide <TRelements, maybe overwrite these table
rows?

I was wondering if this is somehow trivial so you can suggest a coding
strategy or if anyone knows a good page that displays this possibility.

View 3 Replies View Related

Malicious Code Inserted Into Multiple Pages

Mar 5, 2010

So today I have discovered some malicious JavaScript code inserted into a bunch of my pages on a webserver. Access to these pages through FTP is granted to 3 people, myself, my boss, and a contract programmer. Unfortunately, the FTP server wasn't set to log, so I can't tell for sure if it was the programmer, but my assumption and suspicion is that it was him.

This code was inserted at the bottom of multiple pages. I can't make heads or tails of it, but it cannot be good, whatever it is. When I view the page that it was on, I noticed the web browser connecting to [url]. Browsing to this page takes you to some foreign hosting site. Googling superseasilver.ru only provides a page that has this address listed in a blacklist.


Code below:

View 9 Replies View Related

Two DIVs - How To Print Multiple Pages In Firefox

Sep 20, 2010

I have a web application which has two DIV, one is main and one is child. I am having problem in printing multiple pages. There is a lot of data in the child DIV and I am using JavaScript functions to control the print functionality. When i print using window.print(), only the data on the main page currently being showed is printed. I further researched and checked out the Style.Overflow property. Now I am using divMain.style.overflow = "visible". After this the complete print comes. But in Firefox, the scroll bar disappears and only single page is left with no scroll bar.

Now if after print I give
divMain.style.overflow = "Auto" OR
divMain.style.overflow = "Scroll", still the scroll bar doesn't come and if
It comes then its inactive. I am unable to see the complete data on the page after the print is taken. The problem is not coming in I.E and the full data with scroll bar is recovered in I.E. How to get the normal page with full data and scroll bar after printing in Firefox.

View 2 Replies View Related

Calling A Function From Multiple Pages - OnLoad

Nov 19, 2007

JavaScript is not my strong point though and I have found that the previous web editor has a lot of repeat functions on the pages.

My idea is to create an external .js file and just call the function...it is for a rotating banner ad. The problem is the the function is called in the <Body> tag..this means that I have to change 100's of pages by adding the call function to the tag on every page.

Is there a way I can call the function as well as adding the function to the onLoad event.

I have tried adding "window.onload = rotateBanner;" to the beginning of my javaScript but it does not seem to work...what am I doing wrong

View 1 Replies View Related

IFrame Resize When Copied To Multiple Pages?

Jul 26, 2010

why the iFrame resize code would stop working when I copy the code over to another page? It works fine here: [URL]... But when I copy the code over to another page (www.rjt-online.com/video.php) in it's entirity, and just change the urls, it stops working?

View 4 Replies View Related

Send Multiple Html Pages To Print One At A Time

Oct 11, 2006

The problem with using HTML as a report writer is primarily the
unreliable page breaking.

However it is a rather handy way of writing reports with images
embedded.

I could generate say 10 HTML pages of a maximum length to fit a page -
page1.htm, page2.htm, page3.htm ...etc.

Can I print all 10 pages, one after another automatically using perhaps
Javascript or some other method. Naturally dont want to ask the user
to do this.

Browser compatability would need to be I.E. 6 and Safari (not sure of
the version).

View 3 Replies View Related

JQuery :: Validating Multiple Forms On Pages With Single Tag

May 27, 2011

It doesn't appear to be possible to validate multiple forms on a pages that only has a single <form> tag, using the JQuery Validation Plugin offered by Jörn Zaefferer. The reason I need to do this is because my pages are created with ASP.NET whose architecture generally calls for a single page-wide <form> tag. In my designs, I'd like to submit my data using a custom ajax call to a web-method, and link it to a click event on a button.

Below is an example:
<!
DOCTYPE
html
PUBLIC
"-//W3C//DTDXHTML1.0Transitional//EN" "[URL]" >
<
html
xmlns
=
"[URL]"
> .....

I'm not sure that I fully understand the documentation for the Validation plugin, but it doesn't seem like this is possible, as the plugin seems to need a <form> for each form.

View 2 Replies View Related

Onclick Multiple Pages Without Leaving The Current Page?

Sep 25, 2010

I have a minor problem with opening multiple pages with onclick. The code work perfectly (I run it with some PHP features). So far so good.Left mouse button will open 4 new tabs, and the view will jump to [URL]Middle mouse button will only open [URL]What I want: Open all 4 pages in new tabs in the background and stay at the current page.

<a href='http://www.domain1.com' onclick="window.open('http://www.domain2.com');
window.open('http://www.domain3.com'); window.open('http://www.domain4.com')" target='new'>Open 4</a>

View 2 Replies View Related

JQuery :: Loads Entire Page - For Multiple Pages

Aug 2, 2010

I have a page generated by php specifically for use in jQuery. It has 3 divs with 3 different IDs.

I've been using .load() to get the contents of each div and put it within the page, but I've realized that if I use it multiple times within the page (ex: load the same page, get different div each time) it actually reloads the page every time it's used.

I'm not very experienced with jQuery, so I don't know how to get the html of the page just once and then manipulate it so I can get the contents of each div. I assume with .ajax right? But can someone point me in the direction of how exactly I'd do that--the jQuery docs don't help me out too much with this.

View 2 Replies View Related

JQuery :: Select List To Remember Last Selected On Multiple Pages?

Aug 23, 2011

I've got the following almost working properly:

[Code]...

It will be included on the pages in the list and I'd like the list to remember the last selected (showing the user what page in the list they're on). I can't figure out how (other than manually doing it on every page).

The other thing is that the + and - buttons change the item selected for ALL select lists on a page, it's pretty cool but not what I'd like it to do. You can see it working on [URL]..

View 1 Replies View Related

Create A Single Report From Multiple Forms On Separate Pages

May 18, 2011

I have made a site with 5 pages, each page contains a form. Each form is a checklist with a dropdown to choose an answer for each individual item.

Here is a same of the form code:

I am trying to write a script that will be called with onclick event from the "Next" button. This script will collect all the "notOK" option value/names and send them to a document, concatenating the info from the next forms until a single report is created with a list of all the "notOK" values. One the user gets to the end of the last form, there will be a submit button which sends the entire report to a specific email address.

Here is the script I have so far, which pulls the "notOK" values for each page:

This piece of code works great for an individual page, but I need to expand it to send the data to a report instead of window.alert, and I need to add some way of concatenating the data from each form to a single page, doc, etc.

View 4 Replies View Related

Search An Replace Multiple Values At Once?

Jun 14, 2009

In a string (that contain the Flash version installed), I want to replace:

all "," by "."
"win" by <nothing>
all spaces by <nothing>
So far I do it this way:
strFlashVer = strFlashVer.replace(/,/g, '.');
strFlashVer = strFlashVer.replace('win', '');
strFlashVer = strFlashVer.replace(/ /g, '');

but I'm sure theres better way (I'm not really good with reg exp).

View 3 Replies View Related

Multiple Search Engine Textfield

Oct 13, 2010

How would you create a text field that allows users to select different search engines, and then search their keyword. Essentially what I'm looking for is a something similar to the default multiple search field that you see in Firefox and Safari.At this point in time I have the multiple search feature implemented. But all I really have is a <select> next to a <input>. What I want is something that combines the two. Basically I want the look and feel of Firefox/Safari default multiple search field.

View 1 Replies View Related

Safari Multiple Search Engine?

Oct 15, 2010

I'm wondering if the <input type="search" /> has the capability of adding search engines to the end of the drop down list. In Safari if you click on the magnifying glass on the search box, you'll see search engines at the very bottom. I'm wondering if I can do that to my webpage using <input type="search" />, but having my own search engines specified.

View 1 Replies View Related

Embed Search Form Into Page And Search That Page's Content?

Sep 28, 2011

I have a page built in Sharepoint. I need to create a little search box within that page so people can search for names on that same page. It's a page with a lot of text, hence why the search feature is needed.

I can only use an XML editor.

View 4 Replies View Related

Quick Search Action On Multiple Tables

May 17, 2010

I'm using quick search plugin (URL...) in filtering rows in a group of tables.The problem is that the old vesion of Quick search may act on multiple tables as long they have the same table_id while the new vesion acts on the first table only.

1-the number of tables is very large (in some pages may be 500 tables).

2-the action of Quick search is applied automaticaly as the user type any text in the input text box. so i don't know any way to make a loop to call the function once for each table.

View 2 Replies View Related

Search Fields For Multiple Site Searching

Sep 4, 2007

I want to make a search field for my site where the user can enter his query then select which site he would like to search the query on. Like www.torrents.to has, basically just like that. I know nothing about coding, could somebody write the code for me and tell me where to put my links, directory stuff etc...?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved