Display Alt Text From A Search?
Feb 24, 2011
This is a follow up to my older thread, about tables and finding images within them. So after getting some help from "Krupski" :thumbsup: I found myself stuck again. I'm trying to go at this rather from an other point of view, instead of getting the cell information I am now trying to get the alt text value. from within the image tag. but being a novice at this well ive hit a wall. :confused: My code so far. searches though the table finding the sad images then i want it to display the Alt-text or an other value table_id or similar. also is there a fast way of putting in Alt text like A1,2,3 B1,2,3 etc like an automated loop. (might work on this after the main problem is dealt with)
View 2 Replies
ADVERTISEMENT
Nov 9, 2010
I am trying to set up this Javascript to work with my XML exported from Microsoft Access for support on an Intranet page. I borrowed from a tutorial code but I cant seem to figure out how to get the Javascript to recognize my values in the xml file. I believe my issue is related to the formatting of the xml file.
The example is formatted like:
While my access file exports a little messy... Sadly, unless this can be changed.. I would love to just enter the code myself for each entry.. but I need it to be exportable and immediately updated to the Javascript search. Access exports like this.
How I can get Javascript to recognize the values without a CDdata tag?
View 3 Replies
View Related
Jan 24, 2011
i want to search the index.xml file throu diff input like combo box and input text shown in the search.html file and output the result in a tale.
search.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>Search</title>
<script type="text/javascript" src="search%20xml/search%20xml%20with%20mouseover%20table/searchindex.js"></script>
[Code]...
View 3 Replies
View Related
Apr 19, 2010
The javascript below is looking for the word 'margaret thatcher' in the body and surrounding it with a link. It's lower-case but the script is ignoring the case so that won't matter. But, the problem is that because Margaret Thatcher is a proper noun, it will be capitalized in the body text yet replaced with lower-case text. How can I modify this script to look for the word while ignoring the case but use the same text it found as the replacement instead of using the text object?
[Code]...
View 2 Replies
View Related
Mar 9, 2011
I wanted to do a search addressbook and display the results without refreshing the page. I am told that it can be made using jQuery. I have a fairly good understanding of php and my data is stored in mysql. Its woking should me some what: User enters an employee id. As he leaves the textbox, details of the employee are to be filled in the relevant text boxes.
how to create a jQuery ajax request and how to receive and display the data into different form fields>
View 2 Replies
View Related
Apr 8, 2010
need to search forkeywordsin my database and display the results in the same page with afriendlyinterfaceall without refreshing the page
View 1 Replies
View Related
Jul 17, 2011
I found the following 'Cut & Paste Google Internal Site Search script' in the Javascriptkit.com library - it works well and provides an easy solution for adding a search function to a website - code below
<script type="text/javascript">
// Google Internal Site Search script- By JavaScriptKit.com (http://www.javascriptkit.com)
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
// This notice must stay intact for use
//Enter domain of site to search.
var domainroot="www.javascriptkit.com"
[Code]...
View 1 Replies
View Related
Nov 19, 2009
I have a project to do for a kind of business directory and while I already have it designed I'm stuck on one aspect of it. As it stands, you select a category and then get the results in a nice little invisible table with colored rows. Now, I can create any table I want through the use of a hidden Javascript function that contains the information (No, I'm not worried about updates) and then creates the table.
The problem I have is this. If someone changes the category or puts in a partial name or full name, how can I delete the currently displayed results and then show only the results for the new search? And how can I do this consistently? The problem I have almost sounds like a problem that should be solved using PHP but it doesn't sound so complicated that it couldn't be done in javascript either.
View 2 Replies
View Related
Mar 15, 2010
outputting the results from a javascript search function onto a new page. Right now I am using a javascript search script on 7 pages and it works but the results overwrite the current page that the search was initiated from. I would like it to open a new page and print out into a specific area. Im not really proficient in js, tho I know enough to get by. since ive been grinding my gears at work trying to get this to display right. I'll post the code tomorrow morning when I get to work so you can see the function.
View 2 Replies
View Related
Dec 10, 2010
I have a search field on the website, and when I type a word to search, it search good, but after preforming the search, the search term from search text field disappears and become the default 'Search' word.
How can I make search term stay in search field after preforming a search ? For example, when I type into the search field 'JavaScript' I want that term to stay in search field and after the search is done.
View 1 Replies
View Related
Feb 22, 2010
I'm wondering if there is a way to search or find text within a page using js? I have searched through the web and it seems that it is possible, but everything I read is very convoluted and seems a bit complex for what I need. I've also searched this forum but didn't find what I need.My goal is to search through a page to check for the string "Submitter Draft In Progress". I want to then use the results in an IF statement.
View 9 Replies
View Related
Aug 11, 2009
I'm pretty much lost at javascript, and unfortunately can use php to accomplish this, so here goeI have existing html page that includes a Week #. ie, 1, 2, 3, 5.... and so on.I'd like to be able to have a text, csv, or similar file that I can update on frequent basis that will list a Week # and than custom field of some type. (likely a date or unix time stamp).Is there a way to open a text file (or csv, etc) in javascript. Than be able to compare and get the correct data?Off the top of my head, I think its possible, and would involve something like the following?1. Create a csv file like below1, this is custom, my other custom2, some more, and this too3, and somthing, see spot run2. Next would be have a javascript open and read the file. You would assign a variable name to each 1st, 2nd and 3rd item of each line.Than the script would loop through each line until it found a a match of Variable
View 3 Replies
View Related
Oct 15, 2010
How can I search and replace Text with jQuery? I'm new to Jquery and Javascript.
View 2 Replies
View Related
Nov 22, 2002
Highlight a portion of the text and you can search it on the major search engines. The search box can also be used as a conventional search box too....
View 3 Replies
View Related
Feb 2, 2011
is there a way to use javascript to search a text file for a keyword string? I'm including a file on my webpage, but I first want to search it for a keyword,and then include it if it's found
View 9 Replies
View Related
Jun 14, 2011
I'm trying to reduce a large number of pdf files to text format. Acrobat has a batch processing feature that will convert the files, and also allows a JavaScript to be executed as part of the conversion process.
I would like to add JavaScript code that allows me to replace and/or remove certain text/characters from the file.
Examples would be:
A) Remove all double, triple, multi-spaces and carriage returns
B) Change all uppercase characters to lowercase
C) Remove all punctuation
What i'm really aiming for is to be able to run the batch process in Adobe, then have a javascript filter out all that junk within a file with X amount of lines, not just one.
View 1 Replies
View Related
Dec 1, 2010
My work website, [URL] has an activity search on the top-right side of the page that searches congregation details. It mostly works fine, except that if you search "greenwood" instead of getting shown Greenwood Uniting Church, it tells you that there are no congregations within 15km of Greenwood. Yet if you search "Kingsley" (Next suburb over, less than 15km from Greenwood) it finds the Greenwood Uniting Church.
We worked out that the issue is that there is more than one Greenwood in Australia, so it needs to be clarified that the state of WA needs to be added to the search. The easiest way (I feel) is to check whether WA has been included in the text, and if not, to add it to the search text. This is the code I've got so far (written by a friend, who wasn't certain whether it would work or not):
PHP Code:
echo '<script type="text/javascript">';
// Check that there's state appended to the search
echo 'function checkState(){';
echo 'var searchField=document.getElementById("suburb-address");';
echo 'if (searchField.value.lastindexOf("WA")==0) { ';
echo 'searchField.value+=", WA";';
echo '}';
echo '}';
echo '</script>';
(It's included in a Wordpress Plugin, hence the echo tags)and the form itself:
PHP Code:
echo '<form method="post" action="http://'.$current_site->domain . $current_site->path.'home/activity-search" onSubmit="javascript:checkState();return true;">';
echo '<label>Suburb:</label><input type="text" name="address" id="suburb-address" title="Enter Suburb & State" />';
echo '<select name="categories[]" >';
echo '<option value ="">All Activities</option>';
$categories_list = split('[
]', get_setting('categories', $db));
foreach ($categories_list AS $cat){
$cat = trim($cat);
echo '<option>'.$cat.'</option>';
} echo '</select>';
echo '<label>Country:</label>';
echo '<select name="country" id="country">';
echo'<option>au</option>';
echo '</select>';
echo '<label>Radius:</label>';
echo '<select name="radius" id="radius">';
echo'<option>15</option>';
echo '</select>';
echo '<input type="submit" name="submit" value="Search" class="btn" />';
echo '</form>';
I'm wondering whether the if statement is valid, but I'm not knowledgeable in Javascript, so I don't know where to begin.
View 3 Replies
View Related
Feb 1, 2010
I'm looking to use JQuery to setup something like this:(Textbox input via search)(Multi-select select/option box here with results already populated)There are a large number of results already in the multi-select box and I'd like to narrow them down on the fly by text input into the "search" field. What would be the most efficient way to do this?
View 2 Replies
View Related
Apr 7, 2009
I have written a JS search function. I want it to work with IE, Firefox, Opera and Windows Safari. At this point it is working in all four of these browsers except for one feature: if the word I'm searching for is at the bottom of the textarea (not in the visible text) then the search function will not scroll the text up so that the find is visible.
I should quickly say that this does work in IE but not in the other three browsers. I'm at a loss as to how to get the textarea to scroll the found word into view in FF, Opera and Safari.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
[Code]......
View 3 Replies
View Related
Sep 8, 2010
I have this search box form with 2 select boxes :
<form action="search.php" method="get">
<select name="RingType">
<option value="Nose">Nose</option>
<option value="Toe">Toe</option>
[Code]....
For example, when a visitor selects "Belly" RingType, I want "Belly Ring" to appear in the search box.
and
when the visitor selects "pearl" NecklaceType, I want "pearl necklace" to appear in the search box.
if the visitor first selects "Belly" RingType, and then selects "pearl" NecklaceType, I want "Belly Ring pearl necklace" to appear in the search box.
After making his selections in the search box, if he types something in the search box, it should add to what is already there in the search box. Or, if he first types something in the search box for example, "jewelry" and then selects "pearl" in the necklacetype select box, the search box should show : "jewelry pearl necklace"
View 8 Replies
View Related
Mar 6, 2011
I have a text area to enter a search, and I have already written the JavaScript part of it (unsure if this is where the problem lies). The text that will go into the text area is a URL. the search button is disabled if there are spaces in the query, or if the field is blank, else the button is enabled. The problem I'm having may or may not be to do with my script. The HTML is set to 'onKeyUp' and 'onBlur' to run the function. now, it works fine, unless the user uses the mouse to copy and paste a URL into the text area. the button remains disabled until the user focuses out of the text area then back in. if ctrl+v is used, then the function works.
View 4 Replies
View Related
Sep 1, 2011
import java.net.*;
import java.io.*;
import java.util.*;
[Code].....
i have added a code which extracts all the data from a web search page... but i need to split the titles ,urls and snippets.. which parser or package can be used to extract only titles,snippets and urls in a web search page.
View 1 Replies
View Related
Feb 11, 2010
I'd like the text in the search box to disappear when the box is clicked in. Easy, right? I've found several how-to pieces online, and gotten it to work with at least two different methods. However, I found a rather snotty discussion of form semantics that made me wonder: what's the right way to accomplish this, can I tighten up this code to be clean and tidy, and most importantly, can someone explain it to me so I can understand it? Forms tend to leave me confrazzled.
[Code]...
View 13 Replies
View Related
Aug 27, 2011
How do I link a cookie, presented in a div, to a text box on the same page - so it can be searched?
Now I have a search box that link to the Google Maps API. I also have the two most recently search items to show up as cookies below the map. My goal is to have the cookies show up as links so that when you click them, they show up in the text box to search.
I'm thinking of three ways to do this and wonder which is the best way to do it.
1) Can I just adjust the div tag to link to the text box?
2) Can I adjust the function relating to how the cookies are posted on the page?
[Code]...
View 2 Replies
View Related
Feb 11, 2011
I am trying search and replace text in a table tds.
Search is case insensitive and it should replace the text with same text adding bold style. code...
View 2 Replies
View Related
Jun 22, 2010
I have a basic search box that I want filled with light gray text that says <enter search query> or similar, and I want it to disappear when the box is clicked on. I also want the '<enter search query>' to reappear when the page is reloaded.
View 3 Replies
View Related