Searching Html Documents
Jul 20, 2005
I was wondering if you could cast some light on a confusing subject. is
there a way which you know of that can search through html documents and
extract selected information, and display that in another (main) html
document?
View 1 Replies
ADVERTISEMENT
Jul 23, 2005
Is it possible that the z-index property for an iframe doesn't work
when the SRC attribute is linked to a non html document? (i.e. a pdf
document)
That is what I am experiencing. I have a dropdown menu and an iframe
and I want the menu always to be displayed above any object in the
page. When the iframe is empty or it has an html page within, I can
achieve this by setting the z-index property in the menu(div) higher
than the one in the iframe, but when I try to display a pdf document
in the iframe (what I really want to do), the menu is displayed below
the iframe.
View 2 Replies
View Related
Jul 23, 2005
I was wondering if it is possible to include a xml structure in your html
document. For example given the below snippet the function "dothis()" will return 0
and "dothat()" will return 1. If I can use xml in html I should be returning 1 for both functions. Code:
View 3 Replies
View Related
Aug 6, 2010
I am retrieving an XML document like the following:
<SampleData>
<contentContainer>
<div>HTML goes here</div><div>HTML goes here</div>
</contentContainer>
<moreRecords>1</moreRecords>
</SampleData>
I was using a statement like this to take the content out of the "contentContainer" element and place it into another element:
$('#myDiv').html($(newXML).find("contentContainer").html());
This works great in Firefox, but doesn't in IE. I can use the following in IE using the text method, but that doesn't do what I want:
$('#myDiv').html($(newXML).find("contentContainer").text());
It appears that the html method isn't available with XML. Is there an alternate method I can use to grab a whole chunk of HTML within a portion of my XML document?
View 1 Replies
View Related
Sep 18, 2011
I have two div blocks of html that lists out documents for an academic year, one of which is initially display:none and the other is block. I have two links that are "2010 - 2011 Documents" and "2011 - 2012 Documents".
I want it to function such that if the 2011-2012 Documents html block is initially displayed and the user clicks on "2010 - 2011 Documents", it will hide the 2011/2012 block and display the 2010/2011 block.
I have an onclick=toggleMe(a,b) parameter on the links (a and b refer to the two blocks' ids.. the first of which is the block to be displayed and the second is the block to be hidden).
My javascript function is as follows:
View 2 Replies
View Related
May 11, 2010
However, I was wondering - I realize there does not seem to be a "standard" way to do this (without additional libraries), but is there any "hacky" method that can be used to get XPath support in IE? What I mean is for parsing the loaded HTML document.
View 1 Replies
View Related
Mar 29, 2011
It is possible to perform a find in page search that looks at a specific link, opens the page in a new window and finds the text within that document? Basically I regularly use an html page in work that has a list of people and their telephone numbers.I want to be able to type in a searchbox on my main page and it open the target page and find the name I am looking for?Is this possible or can you only Find In Page on the same page or another frame?
View 1 Replies
View Related
Jun 16, 2004
I am trying (although not succeeding) to load a page into a div. I have been tring to set the url property of the document i.e. 'div.document.url' but that does not seem to work.
View 4 Replies
View Related
Jul 23, 2005
I'm a greenhorn in SVG and javascripting but I'm learning by doing.
So, here my current problem question :
I have a svg document embedded in another svg document. I whant,
through functions in an external javascript file, manipulate objects
in either the child svg document or the parent document.
How do I get access to elements of the other document ?
Example : I have a document "A" containing X/Y - Axis and included
another svg document "B" with the graphs.
I whant now, as soon as the mouse cursor is over a graph in document
"B" the belonging lable which is located in the parent svg document
"A" to change color or size.
Or I whant the graph in "B" to start blinking as soon as the mouse is
over the lable in "A".
I don't know how cross document borders.
Can anyone give me a short exapmle to get me going?
View 3 Replies
View Related
Jul 23, 2005
I have an html file which contains link to 4 reports ( html files
). Instead of letting the user open one link at a time, and then
printing the report , I want to print all the reports with a single
button click, say on pressing a button "Print All" .
I have found out a way, in which the reports can be printed , but
the print dialog box is coming up each time( eg. for 4 reports it is 4
times, and for n documents it would be n number of times ) ; which I
find very irritating . I would rather prefer a single print dialog box
coming up for n number of reports .
View 1 Replies
View Related
Dec 4, 2005
I'm having a problem trying to use a single DIV object for a popup menu
when I'm using embedded IFrames. All the IFrames have the same parent
document but I can't make the popup appear inside of each IFrame unless
I appendChild the popup DIV to each individual IFrame document body.
Should I be able to show the popup without having to reparent the popup
object? Are there any tricks to be aware of?
View 3 Replies
View Related
Jul 20, 2005
I need to know how to call a function in a different document. At the
moment I've tried onFocus but I'm kinda in over my depth. Perhaps if I tell
you what I want to do you can give me the process and I'll go figure out the
code?
My site is divided into two frames, top frame for navigation, bottom frame
for displaying content (called "top" and "main" respectively).
"top" contains 6 images within 6 seperate anchors, that I use as buttons to
switch between sections, the sections being displayed in "main". When the
mouse is over an image, it changes because I use "OnMouseOver", similarly
for "OnMouseOut".
Here is where I get stuck. I want a different image to be displayed as the
relevant button in "top" depending on which main section is loaded into
"main".
I was hoping to solve this by using "onLoad=" in each of the main pages for
each section, that will call a function in "top.html" to cycle through the
list of images changing the relevant image depending on the content of
"main".
I can see an inherent problem here, I have to make every page (could be
hundreds! - nightmare) call this function.
View 3 Replies
View Related
Apr 13, 2010
I have the basic parsing down no problem - I can read in an XML document and use foreach and find combinations to get to the basic elements I want to get to. The problem I'm running into is that I need to do more sophisticated parsing with multiple foreach statements:
<html><head><script>
$(document).ready(function() {
$('#example').click(function() {
$.get('[URL]', function(data) {
$('#output').empty();
$(data).find('Receipt').each(function() {
var $rec = $(this); .....
I want to loop through all the Receipt elements, find the SaleItem elements, and then display each part of the SaleItem parts.
View 2 Replies
View Related
Jul 1, 2010
I have a link that opens .doc files, .docx files, csv files or .xls or .xlsx files. i want silent printing of these files. Only one file opens at a time.
If silent printing is not possible then atleast print dialog box should open up along with the file. i am trying to implement this using javascript.[code]...
View 1 Replies
View Related
Aug 11, 2009
Is it possible to open anykind of documnets in a browser?
View 7 Replies
View Related
Sep 2, 2004
Could anyone tell me how to create a user-object using javascript in a HTMl page and access the same object in another HTML page? Assume that i would like to create the user-object myObj in HTML page1, set some value to its property and then i would use location.href to load HTML page2 in the same window. Is there a way to access the user-object myObj in page2 script and read its property value?
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 5, 2009
You can use it for your own purposes and change it.SoftXPath library has two methods for loading xml:
1) load("myxmlfile.xml")
2) loadXML("<root><name country='israel'>SoftXML</name><name country='usa'>Microsoft</name></root>")
SoftXPath library has three public properties:
DefaultNameSpace - Use this property when there is namespace in your xml document
if(SoftXPath.LoadedXML) - Use this property to check if xml string was loaded
if(SoftXPath.Loaded) - Use this property to check if xml document was loaded
SoftXPath library has single method for querying xml document using XPath:
selectNodes(xpath expression)
this method returns array of objects including tag name and text content
I have tested this script in IE,FireFox,Mozilla,Opera
Code:
// SoftXPath source code
function SoftXpath(){
function completeLoad(){[code]...
View 1 Replies
View Related
Jun 13, 2006
I have been looking for a way to open a PDF file and automatically
locate and go to a certain phrase within the file. The phrase should
only appear once within the file, if not, the first occurrance is all
that is needed.
The file is needed to be opened from a website, into a new window. As
it is opened, it needs to be sent the key phrase that it is looking
for. I have no trouble choosing what phrase on the html side or
opening the pdf file on its own. Note that the opening and finding of
phrases would be done with Javascript on the html side.
Essentially what I am looking for is for the user to be able to click a
link on the website. The site would open up the new pdf window
containing the file and is automatically at the spot where the first
phrase appears in the pdf.
However, I do not wish to attach any Javascript to the pdf file itself.
The file may be changing over time by other users who may not have the
expertise to deal with the javascript adding. At the moment, the
original file is created in word and then transfered to PDF. So the
PDF file name stays the same, as well as its location which would be in
the same directory as the html file that links to it. But the contents
of the PDF may change over time so I cannot add a Javascript to the pdf
file.
Note that it may be possible if neccessary to add Javascript to the
PDF. I may be able to get the users to edit the file in PDF mode but
that is not a given.
I do not want a pop up window such as in the find option for the user
to press before coming to the right location unless any other possible
solution is not available.
View 1 Replies
View Related
Aug 18, 2009
- Asks the User to select a date (year, month, day) via drop-down boxes- Converts whatever the user inputs to a formal that will match a string value found in an imported array in a .js file... And what I'm having trouble with:- Searching through the imported array for a matching value- Printing whatever block of the array matches the value, as well as any others that also match the value.
For starters, because the array I'm working with is enormous, I'll just make one up here that is still in the same format. In working with the main code, assume that this is the cdr.js file:
var cdr = [
{
"callid": "Guest User1",
"start": "2009-05-11 15:08:40",
[code]....
I've essentially left the section where the search code needs to be blank as I'm not even sure where to begin.
View 26 Replies
View Related
Aug 19, 2009
I've been searching google endlessly and I've come to the conclusion I'm not using the proper search keywords. I'm trying to create something similar to the banner/button combo you can find here:[URL]..
I assume these type of slide show buttons combos use java script and possibly php. If anyone knows the proper name for this type of slide show or can point me to some scripting
View 2 Replies
View Related
Jan 20, 2011
I've tried every combination I can think of, and I can't figure this out. According to me, if you type a name that matches one of the xml items' names into the box using the following code:
[Code]....
it should show the gmarker with that name... but nothing. If I leave it blank and hit the search button at least I get the alert, so something is working.
View 10 Replies
View Related
Feb 19, 2004
<script type='text/javascript'>
function highlight()
{
var find = document.BODY.term.value;
var text = document.BODY.body.createTextRange();
var mark = text.getBookmark();
if(!find)
{
alert('You must enter a search term');
return false;}
text.findText(find);
alert(text.moveToBookmark(mark));}
</script>
<form name='BODY'>
<input type='text' name='term' /><input type='button' value='Find' onclick='highlight();' />
<br />
<textarea name='body'>hello there, hello!</textarea>
</form>
Basically, what I would like this to do is simply search for a string within the textarea and highlight it. So far all it does is return true or false on success ( concerning findText AND moveToBookmark ).
View 2 Replies
View Related
Jul 26, 2010
I don't seem to understand how to search for something in a JS array.If my array is...
Code:
var roilaArray = [];
roilaArray[0] = ["able", "fumela"];
roilaArray[1] = ["about", "kapim"];
roilaArray[2] = ["accident", "fituje"];
roilaArray[3] = ["account", "menoka"];
[Code]...
View 3 Replies
View Related
Nov 17, 2010
I have some elements (table, div, ...) which contains content. Now I want to search an certain text and do something if one element contains this text:
Example:
searching for 'schnitzel
'
Code 1
<div>
<p>some text</p>
</div>
[Code]......
now I tried the :contain filter, but it don`t work.
View 2 Replies
View Related