My web application allows members of the university to lookup and display their university ID number. It displays that number in an agreed upon format 99999-9999 which was picked to help distinguish it from, say, a Social Security Number, and to make it a bit more readable and easier to memorize. Unfortunately there are a few downstream applications that, for whatever reason, do not cope with the dash and expect a 9 digit integer. This becomes a problem when users, quite reasonably, use cut and paste to capture their ID number from my app and plug it into the afore mentioned brain dead app. I am unable to fix, nor can I apply pressure to have fixed, the brain dead apps, while I am being pressured to remove the hyphen. But before I do that, is there some straightforward, reliable technique that would somehow allow the user to see the ID number with the hyphen, but cause the number without the hyphen to be captured with a browser copy/cut operation?
How to control or edit text that is copied from a web page (for good, not evil reasons)
143 Views Asked by KillerRabbit At
1
There are 1 best solutions below
Related Questions in WEBBROWSER-CONTROL
- C++ Get file content from the DLL resource
- WPF How to show a MemoryStream PDF document to a WebBrowser
- Determine if an IHTMLTxtRange object is visible
- Results of locating small objects with pyautogui change depending on browser's window size
- WebBrowser.Navigate does not appear to be returning DocumentText
- Capture a screenshot of HTML content using a WebBrowser control
- Set Attribute of DOM-Element in C# With the webBrowser in Windows Forms
- What methods exist to copy a gif to the clipboard and post it into other applications?
- the code gets stuck after I select the word file
- Windows Forms WebBrowser: CTRL+F Search doesn't find anything
- How HTML & CSS Code Can Be Used to Print POS on vb.net
- WPF WebBrowser-Control open Link in Internet Explorer
- VBA webbrowser findtext next occurrences
- How to set Paper Size A5,PageOrientation,Set name Printer in a web browser control with code in VB.NET
- why does my web browser's PrintPreviewDialog display become small when loaded in vb.net
Related Questions in CLIENT-SIDE-SCRIPTING
- Parameterise variables in sitespeed.io scripting
- Why won't or statement work in a for loop?
- UI Action returning GlideAjax undefined in ServiceNow Workspace
- How to download and rename the list of google drive links on real time during the download process
- how to implement the Smartsheet API client-side code using Browserify?
- fetch() API with NodeJS server makes req.redirect() not working
- Accounting Application Self-Generated SerialNumber is Duplicated in PHP
- Uncaught TypeError: Failed to resolve module specifier "@microsoft/applicationinsights-web". Relative references must start with either "/", "./"
- How to work with python as client side scripting language
- How to update the data source in typeahead in JS?
- how to click action link menu option in JavaScript
- How to reload an iframe in Javascript?
- How to Refresh a page in JavaScript and redirect to controller's Action method with parameters
- Plotly Dash - not fully understanding the extendData feature with stacked barplot
- Debugging javascript for webforms project hosted on iis
Related Questions in CLIENT-SIDE-DATA
- how to get data filled in pdf application dispalyed in angular 5 client side?
- How can I filter a string field in a dataset with a like clause and an umlaut?
- How to track users without authentication on nodeJS
- Javascript store client-side password across pages in memory
- REST Web api application data managment
- Chrome Extension and a Client-Side Database
- Best way to cache client-side data across iron-router routes in Meteor
- use client side database to show results in webpage
- Client Side binding Telerik RadListView not working, what is missing?
- Simple, standalone (i.e., no external files), offline, client-based solution for selecting file and displaying contents in HTML with Javascript
- How to save form input data to a XML file using Javascript?
- Best way for cross platform client storage?
- Communication between a .Net desktop application and a Silverlight application in browser
- IDBKeyRange querying by key, where key is String
- In a classic ASP application, is it better to use a session or cookie for cross-page data persistence?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Of course you can, now are you wanting to copy it from your web browser control or from an external internet explorer window? If external IE window, then you will need to get a reference to this window, which can be done using the windows title, then using that reference (or, if in a web browser control, directly using your web browser control), you can search for the element where that id resides in either by tag / element name, or tag / element id, or other means (ie: you will need to figure out if its in a div tag or span tag etc)... Once you find it, get a reference to it, probably using IHTMLElement to declare your reference type... And you'll be able to either copy it and do some string manipulation on it and store it wherever you want, or you can just update the live value on the page with the new value (live editing on the page the user is seeing, to change the elements value by copying id, removing hyphen from copy in a string variable, and then assigning it back to the element we got it from).
You can use the elements .value property to read from and assign to the element, depending on the element, but most elements use .value or innertext, once again, depending on the tag/element :).
Let me know if u need some code you will need to tell us what element we are dealing with, or the HTML sample of what surrounds the student Id you want to play with.