Using WebEngine + WebView rich HTML control?
Someone has already tried using WebEngine/WebView to create (static) content, which can combine text with images?What I would like is a control capable of reflow where I can put in text style (different styles, sizes, fonts) and some pictures go hand in hand and that the text nicely reflow around the images. Since HTML has been able to do this for centuries, and since I donot think that even a new RichText control will be able to mix images and text (and certainly not to offer all other features in HTML, such as tables, etc...), I think the Web view could fill this gap.
Get the page HTML itself inside the control is easy, using the loadContent methods... but what about pictures? I would need some kind of hook to provide Images directly (from a database or memory, no intermediate download URL step) for the WebEngine, but it seems not to be.
I guess I could put up a local Web server and point my "img src" tags to get what I want, but there may be an easier way?
Let me know.
I've been kicking around the idea of pair components WebView/WebEngine with an http server embedded in my application. I saw something as the pier. It is probably overkill for your application.
Since you mention only static images residing in a database, I think that you can embed the image directly in the HTML code as an object of data with the appropriate mime type.
This link has a discussion about it:
http://rifers.org/blogs/gbevin/2005/4/11/embedding_images_inside_html
and so for this:
http://www.campaignmonitor.com/blog/post/1761/embedding-images-in-email/
If you need an example of this, just check your email SPAM. These guys are experts.
I think it goes something like this:
-Pat
Tags: Java
Similar Questions
-
Hi support them.
I have a text as well as the image used as a hyperlink, as follows.
"Sample text. < a href = "javascript:myfunction()" > < img title = "sample image" src = "sample.gif" "/ > < / a >" "
When I copy the above text and paste it inside an HTML control (for example, iframe), the command removes the href of the tag "anchor". It only happens with firefox and safari. It does not work properly in internet explore.
"Sample text. < a > < img title = "sample image" src = "sample.gif" "/ > < / a >" "
Is there a solution for this. ? Waiting for the answer as soon as possible
Try to click the link below
http://screencast.com/t/sXq6BcZvJB
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.org/KB/safe+mode
-
Ignorant WebView tags html anchor
I use a WebView in my application of waterfalls to view help for the application. Many of the pages have hyperlinks to topics about other help pages, but WebView not scrolls at anchor on the other page.
I tested my help html in Chrome is WebKit based too and makes the same as display Web help. I discovered that Chrome seems to apply HTML5 and so has removed in favour of the , because the "name" attribute is deprecated in HTML5. This solved the problem in Chrome, which also was not scrolling to the anchor on the page target, but it has no effect in the Web mode. It will not even go down until in the right place even when the anchor tags using id rather than by name.
Has anyone else experienced this and more importanly, nobody knows how to get the anchor tags to work properly in a WebView? Some of my help topics are quite long, and used reading all the way until you find a subject from another page is not very friendly.
Thank you.
OK, I came up with my own solution to this. I can't understand why the WebView does not respect the hash of the anchor on the URL, but for now, it works like a charm.
I had the idea of trying to run JavaScript in the WebView force it to scroll when I wanted to. The general consensus among developers JS, is that all you have to do is this:
location.hash = 'anchorID';
.. who can work very well for good browsers, but everything he says WebView do a reload the page with the hash plated anchor on the end, even once, what he does, but of course he simply ignores the anchor again. After some research, I found an another guru that suggests something completely different. So different in fact that readers of the forum was laughing that it wouldn't work, and anyway it was too complicated compared to the idea of location.hash . As soon as I saw him, but I knew it was probably solve my problem. The simple JavaScript snippet that he provided looked something like this:
element = document.getElementById('" + anchorID + "'); element.scrollIntoView();
I've expanded this nugget of kernel in this:
WebView { onLoadingChanged: { var token; if (loadRequest.status == WebLoadStatus.Succeeded) { var tempStr = url.toString(); var hashIndex = tempStr.lastIndexOf("#"); if (hashIndex > -1) { // ---There is an anchor hash on the end of the URL. Force WebView to use it. var tempStr = tempStr.substring(hashIndex + 1); token = evaluateJavaScript("element = document.getElementById('" + tempStr + "');element.scrollIntoView();"); } } } }
Basically what this does that get a # character at the end of the URL, and if there are any characters after it are passed to JavaScript which seeks the element and then scrolls to it. Note that, because this script using getElementById() you must set your anchor points with the id = "" attribute. " If you want to use the old style that should work too, but I have not tried. Something like that...
evaluateJavaScript("element = document.getElementsByName('" + tempStr + "')[0];element.scrollIntoView();");
This example assumes that you have only one element on the page with this name. If this isn't the case, you will need to change appropriately array index.
Hope this helps someone.
UPDATE: Just tested the alternative version using getElementsByName() and it works perfectly also. Just be sure to have only one of the items on each page with the name of the anchor. Unlike identifiers, names must be unique.
-
BONES of Sierra crashing to the LOGIN screen while using the service of mission control.
After Sierra OS upgrade my MacBook Pro hangs on login screen every time I have used the function of mission control.
Hey hernj103,
Thank you for using communities of Apple Support. I can see your post after upgrading to Mac OS Sierra that reboots your MacBook Pro, if you use mission control. There could be a number of reasons that could cause this and I want to help you have a reliable working Mac, so I'm here to help! If you have not already done, you want to make sure that you have a backup of your data and you can use the option in the link below:
Use Time Machine to back up or restore your Mac
Once your data is secure, you'll want to test this function in Mode safe mode and see if you get the same effect. Safe mode (sometimes called secure boot) is a way to start up your Mac so that it performs certain checks and prevents certain software from loading automatically or opening. Also, it verifies your startup disk and trying to fix problems if necessary directory and delete font caches, hiding the kernel and other files of the system cache. The following link can show you how to start your MacBook Pro in Mode safe.
Try safe mode if your Mac does not end commissioning
If you continue to have problems after the safe boot mode, let know us and we can continue to solve the problems there.
See you soon.
-
When you use Roland FC300 footswitch to control transport LOGIC, all midi keyboard USB (UMA25s) notes do not reach the logic.
They are visible using MIDI Monitor s/w so reach the OS X - but do not make SENSE.
I tried the function of the environment of the logic and the double check OS X Midi Setup but no difference statistically.
I would appreciate any help on how to proceed.
Thank you
Paddy
I do not understand your post. Your use the FC300 to control logic - how is it connected? Is it plugged into the keyboard via middle or did you connect to logic directly via a midi interface? (sense are the keyboard and the FC300 connected independently.
When you say midi notes reached illogical (those transmitted by the FC300 or those via the USB keyboard do you mean?).
First thing to do is to circumvent the control surfaces to exclude...
Then, the control screen the custom value and see if data midi reached logical... If his hitting the midi monitor 99.9% sure it is hitting logic.
-
Bug found during the use of references to the control in subVis on Compact RIO?
Hallo,
I have a simple task. I want to read higher VI into a Subvi the real value of a control to a level. I want to solve this problem by using a reference to the control.
I have attached a simplified program that shows this.
But the problem is now. When I run the main VI on a cRIO-device, the indicator "DataByReference" is not updated with the actual value. Only when I opened during execution of the "RefMain.vi" too, then everything works fine.
More strange thing is, when I run the VI of hand on the host PC, everything works well, also without having to open the "RefMain.vi" when executing.
Someone at - it an explanation for this behavior?
Thanks in advance!
Bernd
This isn't a bug. See this explanation.
-
original title: Devicewhat is the error code 21
I went on the nexon combat arms and the gme was not letting me use the wasd keys to control. so I left the game, and when I stop, I got a noticce that says error code 21! What it means?
Hello
We really need more information - ask in the games and/or Windows Forums for your
version of Windows.Answers - Windows Forums
http://answers.Microsoft.com/en-us/WindowsYou can also check your version of Windows, then good topic Windows: games.
It is a question where you may need to actually test in several forums.
Don't forget to check the known issues with the support from the game and forums, but also any device
in question.-------------------------------------------
Reboot to see if the problem comes back.
Here are the general meaning.
21
Windows removes this device. (Code 21)
Wait a few seconds, and then refresh the display of the Device Manager. If the device appears, restart the computer.
I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
missing volume control
volume control was gone. I tried to go into my control panel to use it, but I get an error that says:
"Windows cannot display the control volume on the taskbar because the Volume control program has not been installed. To install it use Add/Remove programs in Control Panel. »
I have lost my Windows XP disc in a move and can't reinstall the file to a disk, how to fix this?
When you use certain features sounds and Audio devices, you see a message like this:
Windows cannot display the control of volume on the taskbar because the Volume control program has not been installed. To install it use Add/Remove programs in Control Panel.
It seems that the c:\windows\system32\sndvol32.exe file is missing.
This may occur if your antivirus/antimalware application thinks the file is suspicious and quarantines (effectively delete) the file. You can replace the missing file with a backup copy of the file that is in another folder on your system.
Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..
Assuming that Windows is installed on your C drive...
We know that XP keeps copies of critical system files in the following folder:
c:\Windows\System32\dllcache
Using the Explorer, search for or navigate to the following folder:
c:\Windows\System32\dllcache
Locate the sndvol32.exe file, right-click, choose copy (it copies the file to the Windows Clipboard).
If your Solution Explorer settings are not set to display file extensions, you will see only a file called 'sndvol32' which has an icon that looks like to the volume control slider (this is the file you need).
If the file is missing in the dllcache folder, look for a copy of the file in this folder:
c:\windows\ServicePackFiles\i386
Browsing from a level in the following folder:
c:\Windows\System32
Right-click on an empty area in the window of c:\windows\system32 and choose Paste to paste in the missing file where it belongs.
Answered in the affirmative if invited to replace the existing file.
Now try your features sounds and Audio devices.
Note that run sfc/scannow will not replace the missing file because it is not this that sfc/scannow does.
-
OS: Vista Edition Home Premium SP2
Unable to use WMI (Windows Management Instrumentation) control backup/restore because of 'Access_denied' Win32_OperatingSystem and Win32_Processor. Is there a reference that offers the recommended default value for the security permissions for each Namespace?I stumbled upon the answer to
http://social.msdn.Microsoft.com/forums/en-us/SQLExpress/thread/b924e835-b835-4883-8323-8b3600dfb0c1/
of greggnlisa.
-Goto the start menu and LOCATE your command prompt (need to be
Accessories).
-Right-click on it and select "Run as Administrator".
-At the command prompt, type the following: net localgroup "Directors" "NT Authority\Service" / Add-Then press ENTER.
-Reboot and you're done.
I do not understand how it worked, but it took me several weeks to locate.
-
* I have already connected to fss.live.com and https://familysafety.microsoft.com. This solution does not remedy the issue.* *.
When you try to use the Windows 7 parental control features, it first asks you to connect to Live. When I do, I get the 8004B3E9 error Code and it asks me to "connect to account.live.com and accept the terms of use. However, in doing so, there are no terms of use for me to accept. I also go to fss.live.come and familysaftely.microsoft.com and no option for the conditions of use is available to accept. In addition, I tried different browsers.
I can connect on Live.com and view my account easily, but without conditions of use prompt appears for me to accept, so my attempts to use the parental controls are stuck in this cycle, where it won't let me past without accepting conditions that do not seem to exist.
How can I make sure I am set up as the account 'Parent '.
Help, please
3 hours later I'm finally able to access Family Safety. Thank you!
The correct link to solve the "Terms of use" requirement is:http://g.live.com/0fsenus4/nexusmigrate
-
How to use black skin for specific controls?
I am using black skin for segmented control. There seems to not be any property of skin or colorshade.
How would I do that?
Hey,.
There are two methods available to set the skin to a control object segemented. The first is a setBackgroundSkin() and the second is a method of setButtonSkin(). Try the following and see if the counting works:
import qnx.ui.skins.buttons; (...) var myControl:SegmentedControl = new SegmentedControl(); (...) myControl.setBackgroundSkin(SegmentedControlSkinBlack); myControl.setButtonSkin(RoundedButtonSkinBlack);
Be sure to import the skin button package and also replace "myControl" by your control object segmented. Hope that helps. Good luck!
-
1001 error code in the registry when you try to remove an old program using programs and features in Control Panel. How can I fix?
Computer Windows 7
Tried to reinstall the older version, she received error 1001 something again with the registry. Does not remove old software.
Hi Carol,
1. what program or software you are trying to delete?
2. What is the code or an exact error message?
Please provide us with more information on the specific question, to find a solution as soon as possible.
Follow the link below and check them with the question:
Solve problems with programs that cannot be installed or uninstalled:
http://support.Microsoft.com/mats/Program_Install_and_Uninstall/
I hope this helps.
-
Original title: a device attached to the system is not functioning
I am trying to use the "Word 2007 Content Control Toolkit" Windows8 6.2.0092
When you click the shortcut on the desktop, I get the error as indicated above.
It seems to work on another computer running Vista, but I bought this machine W8 is because the keyboard is kaput on this machine.
Hello
Since you are faced with the question with Word 2007 Content Control Toolkit, the question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums for assistance:
Microsoft Office for developers-MSDN Forums
Let us know if you need help with Windows related issues. We will be happy to help you.
-
Can I use a USB pedals to control Play, Pause and reverse in first Pro CC?
What I can or ever be able to use a USB pedals to control Play, Pause and reverse in first Pro CC?
This would specifically for the production of subtitles.
Play... listen... pause... translate... repeat, repeat, repeat etc...
First looks almost as good as MacCaption if it had the ability to use a pedal USB instead of the JKL keys it could make it much more user-friendly for our Transcriber of closed caption.
It must use the keyboard to type or transcript and must switch from windows by clicking on the window, she needs to handle.
IF she could continue to type and use only the pedal to play, pause, reverse the playback head and still be able to keep typing in its captions window that would greatly simplify the process.
Can present you this as a feature request?
Thank you.
rburleson wrote:
Can present you this as a feature request?
You can do so here:
-
the stream using the grid 10.2 control configuration
can configure us the flow through the grid control 10.2? Please let me know the step by step workflow configuration.
Thank you.Grid control has a wizard that allows you to configure the table, a schema or database replication complete. You can use the wizard to generate a script for the configuration, ask well. There are some resources available online covering the wizard of replication and monitoring of streams in general with EM.
For example, there is an annotated presentation (Grid Control 10.2.0.5: workflow management) which describes the pages EM streams and how to use them. Link: http://download.oracle.com/docs/cd/E11882_01/server.112/e10703/tdpii_repcont.htm
There is also an Oracle by example (OBE) demonstrating 11.2 management DBControl Brooks walking through the wizard configuration and replication and monitoring. Link: http://http//www.oracle.com/technology/obe/demos/11gr2/streams11_2/streams_and_em/streams_and_em_viewlet_swf.html
11.2 2 Day + data replication and integration book (Chapter 4) also includes a tour through the pages of stream DBControl 11.2. Link: http://download.oracle.com/docs/cd/E11882_01/server.112/e10703/tdpii_repcont.htm#BABEFAFI
Published by: pmcelroy on March 30, 2010 19:45
Maybe you are looking for
-
Browser does not open! Help! Urgent!
Hi people, It's kinda a worry! Started this morning when I called Virgin Media on the use of a 5 GB connection... (At this point Firefox worked just fine...) as part of the 'process' before we get to talk to a human being, they run 'tests' on your co
-
Is it possible to display only icons on the personal bar?
I want to show only icons on the toolbar bookmarks... in order to keep more items bookmarked that I often open. In the "Customize toolbar" dialog, I chose 'Icons' in the drop down list of 'Show', but still see the text in the bookmarks toolbar. Anoth
-
Equium A60-157 PSA67E: where to find the Toshiba common module
Slowly work his problems but can someone tell me what is the "Toshiba common module" as one of the programs will not because he can't find it. Also the Intervideo windvd v5.0b11.288 - srs has been modified to Toshiba systems and it's around anywhere?
-
Hi did anyone know where I could get the typical test for TCE (Toshiba certified engineer) questions please contact me at [email protected] as soon as POSSIBLE
-
laptop light shop and was asked to check the internet connection, he tried his, but he said that without internet conection will not work even the wireless