Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: JBorges
  • Content: Threads
  • Order by date
  1. JBorges

    Infinite Scrolling Both Up and Down

    Hello. I'm looking for a way to have infinite scrolling work both up and down. Presently the code below only works when you scroll down, meaning it shows the next html file, index3.html, when scrolling to the bottom. But let's say that my web page starts with index2.html, then I'd like to...
  2. JBorges

    Merging and Sorting Files

    Hello. I'm looking for a way to merge 2 files, and have the final file sorted according to how the list is set up in fileA.txt, the master file, like described below. Can it be done with AWK? fileA.txt: "LANG_AJ" = "azerbejdżański (alfabet grażdanka)"; "LANG_BS" = "basa (Kamerun)"; "LANG_BQ" =...
  3. JBorges

    Removing Character on Click Revisited

    thread216-1705590 @feherke Some time ago you helped me removing a character from a text inside a div element. That works great, but now I need to have 2 characters removed with an ID value of 'mr' and 'fn' respectively. Please see the thread linked to with the working code of removing 1...
  4. JBorges

    Increment Replacement With Starting Value

    Hello. How do I find and replace a string with a specific starting value? I have this text: xx xx xx and would like to replace it with: 0 1 2 My awk code is contained in my regex.awk file and run from my Mac's Terminal. This code works fine but it starts replacement at value '1' and I want...
  5. JBorges

    Getting the Id from a tag

    Hello. I have some text that is nested within custom named tags, 'vs', and preceded by a bold tag with their own id. Now, I'd like to get the id of the 'b' tag when clicking any link in the 'vs' tags. Example, if I click on the first, second, or third link I'd like to get the id "2:1" and if I...
  6. JBorges

    Find Search Occurrences That Includes Special Characters

    Hello. The Javascript code below searches for any word in an HTML file entered into a textfield. Now, the text that needs to be searched through contains special characters like the apostrophe and dot in this sample text: "And the tribe of Zeb′u·lun." If I type Zebulun with no special...
  7. JBorges

    Hi. I have this JS code below. I

    Hi. I have this JS code below. It extracts the text from my bs element. However, some of the text in the bs elements have HTML italics tag, but the code excludes the text in the italics tags while extracting the rest. How can I edit the code to also include the text in the italics tag? <bs...
  8. JBorges

    Find Next Occurrence in Search

    Hello. I have this JS code which I found on the web. It searches for a text string the user inserts into a textfield. I would like to be able to tap a button that goes either to next or previous occurrence. Setting up the GUI is not a problem, it's just how to code the next/previous function in...
  9. JBorges

    Using an Object Element to Go to Bookmark in HTML File

    Hi. I'm trying to reference a bookmark using the object tag element. I've tested this in Safari and Firefox, same files different results. Firefox jumps to the section in the object element with no issues. But Safari merely loads the iframe.html file and doesn't jump to the bookmark. My...
  10. JBorges

    Getting Current Id from Tag Element

    Hi. I'm looking for a way to get the currently selected id from a tag element. I'm building an iPhone Bible app and as a way for the user to see where he is I extract the title and verse reference into a label. I can extract the title just fine but I need to get the numbers like '1:4' from the...
  11. JBorges

    Extract Elements While Excluding Other Elements

    Hi. Is it possible to extract only the text of a tag element while excluding the tags that are children of the parent tag? Like, how can I get the text without getting the links that are named 'M'? Right now I can get the text of the tag named 'vs' using this code...
  12. JBorges

    Extract Value From Multiple Tags

    Hi, I'm designing a Bible for iPhone and use Javascript to extract a verse into a label when the verse is touched. That's why I'm asking for help in this forum. A typical HTML file look like this: <a href="" id="1:1">Now these are the names of Israel’s sons who came into Egypt with Jacob...
  13. JBorges

    Detecting Tag Ids On Scroll

    Hi, I have this script below that shows a popup box when I start scrolling an HTML page. It let's me know where on the page I am, e.g. Page 1, Page 5 or Page 26. It works great when it's just single digits. But I'm making an HTML Bible and would like to adapt the script to show e.g., Genesis...
  14. JBorges

    Activate Function Only On Scroll

    Hi! I have a javascript function that shows a popup box when it passes any given div element. It appears when I both press the up or down arrow and when I use the scrollbar. How can I make the popup box appear only when I use the scrollbar? It annoys me that it also shows up when I use the up...
  15. JBorges

    Go to Anchor Function

    Hi! I have this code below that let's me type in a number that goes to the requested anchor tag. All my anchor tags in my html file are numbers. <input type="text" onchange="window.location ='#' + this.value;" /> I would like to make this a function. I tried the following but it doesn't work...
  16. JBorges

    Go to Anchor Function

    Hi! I have this code below that let's me type in a number that goes to the requested anchor tag. All my anchor tags in my html file are numbers. <input type="text" onchange="window.location ='#' + this.value;" /> I would like to make this a function. I tried the following but it doesn't work...
  17. JBorges

    Displaying Link Title Upon Scrolling.

    Hi, When making links to a location on the same page it is possible to give it a name, i.e., <a name="page6" title="Page 6"/>. And so when your mouse hovers over the the part of the html-file that contains the <a name...> code a little yellow box appears saying "Page 6". I was wondering...
  18. JBorges

    Access anchor tags in multiple files.

    Hi, I have directory named 'Library'. This contains a subfolder named 'Books', i.e., 'Library/Books'. In the 'Books' folder I have placed 70 html-files, dubbed 1, 2, 3, ... 68, 69, 70. What I would like to do is when I type in the page number '154' in an input field it knows in which of the 70...

Part and Inventory Search

Back
Top