I’ve run into an iMacros situation that I have never encountered before and was wondering if anyone has ever come across anything like this. I developed a macro for an application our company developed. It basically enters a location, a start time, and a run time. It runs good on my machine. I sent it to the person who requested it and it doesn’t work for her. She is getting this error:
Error -1300: Cannot find HTML element of type "INPUT:TEXT" with attribute(s) "NAME:WRKD_DOCK_NAME_label".. Line 3: TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:page_form ATTR=NAME:WRKD_DOCK_NAME_label CONTENT=LOSANGELES
I’ve checked her machine for the following items to confirm that it is the same as mine (they are):
(1) Tab settings in Internet Explorer
(2) iMacros Add-ons:
a. iMacros Browser Helper Object (enabled)
b. iMacros for IE (enabled)
(3) iMacros version 10.3.27.5830
(4) 32 bit machine
(5) Operating System: Windows 7 Enterprise
(6) Confirmed that LOSANGELES is a valid value
All of these are the same. Something has to be different. Let me know if you have any suggestions. Thanks………
Related
We are still on Kentico 10 and failed a PCI scan. Results said XXS vulnerabilities. Not completely understanding Kentico Documentation on how to resolve this. Tested with alert(1) in Search box and it executed with a 1 in a message box popup.
Already updated Web Config file with recommendations. Documentation lists the following as ways to avoid, but I am not sure where to do this. In the CMS itself? On the server?
If you keyed a script call into your Search Box and received the popup that means you need to encode text being entered. HTMLEncode is probably the first one I'd do. Do that in the code-behind before you save it to the system or use the input for anything.
im using opencart 1.5.6.4. I just cleared the cache and made a few changes mentioned in http://cartadvisor.com/blog/2013/11/05/speed-opencart-store/ to make my site speed.
now suddenly i get a list of jumbled characters. i dont see any error in the error logs and the site doesnt work
this is how the site looks now
i also replaced the htaccess, language files and reverted all the changes done but still i see the site like that. i tried in several PCs it doesnt work now.
any reason why this has happened?
You'll need to deactivate the OC output compression, go to System -> Settings -> Server and set "Output Compression Level:" to 0 - that worked well for me!
I need to detect when a web page along with all its contents and embedded URLs, Images, Audio, Video etc. are completely downloaded. I debugged the file docshell/base/nsDocShell.cpp --> nsDocShell::LoadURI(). It gives me clear indication that page load is complete, but only problem is that I can still see page download in progress while above API indicated page download is over. Can someone help regarding this, Am I looking/digging into wrong location? I don't have to write AddOn or Extension, but only dig into base source code and take the information.
Well, there is no singular "all downloaded" state. After "everything" is downloaded, parsers might be still active, causing more downloads as more image tags and script tags are parsed, and so on. Parser might be paused even, e.g. when encountering synchronous script tags which.
The nearest "all complete" state is likely when document.readyState is set to "complete" and the load/error event for the document is dispatched.
This happens (IIRC) in nsDocumentViewer::LoadComplete.
Even then more external resources might be loaded as a result of scripts inserting new tags, CSS rules being triggered, XMLHttpRequests and so on. Modern web sites are for that reason never fully loaded.
Okay SO. I need some guidance. I apologize for the length of this post, but I need to provide some details:
I've got someone who is interested in me to do a small project for them. The application in general is a fairly straightforward employee record keeping / documentation app, but it makes pretty heavy use templated Word and Lotus documents. The idea is you select the employee “event” such as commendation, promotion, discipline, etc., and it loads the appropriate template doc and you fill it in from there, and later you can select an employee, view all the “events,” and view the individual documents associated with each one.
Thus, the app must know where the .docs are saved when the user is done.
The client actually has a v1 of this app (it doesn’t do any management of the files or anything, just launches Word/Lotus with the document you wanted to view in a new instance, presumably via a system() call.) We’ve not gotten into a detailed requirements phase, but the client and I agree that for this to really work, some kind of control over where the user saves the .doc’s to is going to be critical , because otherwise the app provides them with the new copy of the template doc, they "Save as" somewhere else, and the app is pointing to the blank copy it provided them with.
Obviously, I can’t think of a way to achieve “Save as” restriction/control in any way via just launching a new instance of Word. The client has the idea of an embedded Word/Lotus instance in the app with the template doc when you choose one, but I’ve few reservations with that:
I’ve dug around online and I’ve read that whichever version of Word I borrow MSWORD.OLB from will be the one the end user would require?
I’ve tried to do the MSDN example of embedding a Word doc from here, but as I’ve come to get used to, the MSDN example doesn’t even compile.
Even if I CAN figure out how to embed a .doc file into their application, I don’t know that I could control the use of “Save as…”
All of this STILL hasn’t touched on Lotus (!)
So… instinctively, I feel the embedded Word/Lotus thing has to be more work than it’s worth in the end.
So I’ve had a few other ideas brewing around.
One is looking into using Office XML (and if there’s a lotus equivalent), and get the user’s “inputs” separately and generate the document on the fly each time. I’m not particularly thrilled with that idea, but I think it COULD work, provided I just use old features to try and stay far backwards compatible.
Get user’s “inputs” separately and generate a document in HTML. Meh. Works, very cross platform and easily parsed and understood, but not good if you want to be able to email it to someone (who emails a .html? Works, yes, very unconventional which to the average user will throw them off) and even worse if you need to email it to someone for revisions…
Perhaps some kind of editable PDF? I know there are PDF libraries out there, and the more I stew on it, the more this sounds like the best option, though I’ve not done much work with PDFs and I don’t know how easily embeddable they are / what options one has when creating them. I know they can be save-disabled, I’ve had that with my bloody state taxes before.
I need some input here. Here’s the TLDR questions:
Is launching a new instance of Word for each .doc as bad as I feel, given user can “Save as” document wherever and then application is left pointing to a blank document?
Is trying to support embedded Word as big of a trouble as I feel like it is / more work than it’s worth / likely to cause problems with supporting multiple versions of Word? (Forward compatibility as well as currently released versions?)
What are thoughts on the PDF plan?
Any other good ideas?
Word does allow for programming some "Save" and "Save As" control via its object model. Any subroutines coded in VBA and placed into your Word template will be copied into all documents generated from that template. Additionally, most menu and Ribbon commands can be intercepted by creating a module containing subroutines named for the intercepted commands. So, for example, if a module contains a sub named FileSaveAs(), any code in that sub will be executed instead of the standard File|Save As command. Lastly, this code will replace Save As commands executed via keystroke, toolbar, menu, or Ribbon.
The code below will launch a dialog box to a predetermined path whenever a "Save" or "Save As" command is executed:
Sub FileSave()
ControlSaveLocation
End Sub
Sub FileSaveAs()
ControlSaveLocation
End Sub
Sub ControlSaveLocation()
Dim Directory As String
Directory = "C:\Documents\"
With Application.Dialogs(wdDialogFileSaveAs)
.Name = Directory
.Show
End With
End Sub
Hope this helps.
I've hit a weird snag developing a reports using ColdFuions 8. The report prints a number of large HTML tables and the customer wants them to be formated ins such a way that when they are printed out the user will get 2 of the tables per page.
So it wasn't hard to make a page break by using a
<p style="page-break-before: always"></p>
However, while I got the desired effect while using the development ColdFusion environment on my laptop, I get a diffent effect when printing reports generated on the test web server. There the reports print out with a much larger font so that the second table spills over onto a second page.
Has anyone else experienced this or has a recomendation for how to try and tackle it?
When a report needs to be printed, I would recommend using CFDOCUMENT to create a PDF. You get much more control over the final output including changing page orientation which is great for tables that are wide. It honors a lot of HTML and CSS including the page-break-before style so you shouldn't have to do to much conversion to use it outside of wrapping the report area with CFDOCUMENT tags. It has been available since CF7 so it should work for you on CF8.