Comparing 2 html files

I'm a newbie so thought I'd go through the 'Getting Started
with
Dreamweaver' tutorials. My file looks fine in IE but doesn't
display
correctly in Firefox (problem with background color). The
equivalent file
provided in the tutorial works in both browsers. I've looked
through the
code to see where I goofed but can't find any differences. I
used Compare
Suite and it says the files are identical. Is there any other
way or better
program for comparing 2 html files? Maybe something I should
look for since
it looks fine in IE but not Firefox?
Thanks
Boze

> Interesting to me that it displayed properly in IE.
It's a well-known IE misadventure....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Boze" <[email protected]> wrote in message
news:g75vgb$a9t$[email protected]..
>I had forgotten the # sign before the hex number for the
background color.
>Interesting to me that it displayed properly in IE.
>
> Thanks for all answers on comparing files. That's great
information to
> have for use in the future. I appreciate the help.
>
> Boze
>
>
>
> "Boze" <[email protected]> wrote in message
> news:g75lie$hi$[email protected]..
>> I'm a newbie so thought I'd go through the 'Getting
Started with
>> Dreamweaver' tutorials. My file looks fine in IE but
doesn't display
>> correctly in Firefox (problem with background
color). The equivalent
>> file provided in the tutorial works in both
browsers. I've looked
>> through the code to see where I goofed but can't
find any differences. I
>> used Compare Suite and it says the files are
identical. Is there any
>> other way or better program for comparing 2 html
files? Maybe something
>> I should look for since it looks fine in IE but not
Firefox?
>>
>> Thanks
>> Boze
>>
>
>

Similar Messages

  • How to compare two html files

    Hi,
    I have two similar css files and want to have a third version with some properties from one and some from other file. But I do not know how to compare two files in DW. Is there some hint or program?
    Thanks.
    reagrds, Natasa

    hans-g. wrote:
    It might sound strange, but for this I use a word processing program. I build a table with three columns (in portrait or in landscape mode depending on your needs). I set the paragraph marks so that I can compare the paragraphs. The new combinated version I copy into the third column. And then the way is free to copy the new compounded text into your new DW file.
    Hans,
    Have you tried WinDiff, WinMerge, Beyond Compare (my choice) or Compare It! or several others which automate much of the manual system outlined above?
    http://www.scootersoftware.com/moreinfo.php?zz=screenshot&shot=TextCompare
    http://www.scootersoftware.com/moreinfo.php?zz=screenshot&shot=TextMerge
    These diff tools can then be used in conjunction with DW.
    http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7edda .html
    Just a thought.

  • Print HTML file inside JEditorPane

    Hi Guys,
    I'm trying to print the contents of a JEditorPane - actually, a html file that I read and display in that component from the underlying file system. I've had the class that manages the JEditorPane implement Printable - the following is my print() implementation:
    public int print(Graphics graphics, PageFormat pageFormat, int pageIndex)
              throws PrinterException {
              if (pageIndex > 0) {
                   return (NO_SUCH_PAGE);
              } else {
                   Graphics2D g2d = (Graphics2D) graphics;
                   g2d.translate(
                        pageFormat.getImageableX(),
                        pageFormat.getImageableY());
                   ivTextArea.paint(g2d);
                   return (PAGE_EXISTS);
    }I've got another method that gets called when a print button is clicked:
    class .... {
      PrintJob pj;
      PageFormat pf;
    private void printMe() {
               if (pj == null) {
                   pj = PrinterJob.getPrinterJob();
                   pf = pj.defaultPage();
                   pf.setOrientation(PageFormat.PORTRAIT);
              pf = pj.pageDialog(pf);
              pj.setPrintable(this, pf);
              try {
                   pj.print();
              } catch (PrinterException e) {
                   throw new RuntimeException(e);
    }Clearly I'm doing smth wrong, since only a single page gets printed and moreover the formatting is awful [text gets cut instead of moving on the next line]. Can someone help?
    Thanks much!

              if (pageIndex > 0) {
                   return (NO_SUCH_PAGE);This is why you only get a single page.
    page gets printed and moreover the formatting is
    awful [text gets cut instead of moving on the next
    line]. Can someone help?Yeah. Your best bet is either to put the editorpane in a scrollpane and just print what's visible, OR, you can take the print graphics object, convert it into a graphics2D object, and call scale on that by comparing component.getWidth/height to PageFormat.getImageableWidth/Height
    I'm attaching my StandardPrint class. It uses the pageable interface to carry the number of pages + page format as well. I'm not sure if I did the scaling here or not, but I've done it before so I know it works :-) Also, I've got methods for previewing the print, which can save a lot of paper.
    Please feel free to have and use this class, but please do not change the package or portray this as your own work
    =============================
    package tjacobs.print;
    import java.awt.*;
    import java.awt.image.BufferedImage;
    import java.awt.print.*;
    import javax.print.PrintException;
    public class StandardPrint implements Printable, Pageable {
        Component c;
        SpecialPrint sp;
        PageFormat mFormat;
        public StandardPrint(Component c) {
            this.c = c;
            if (c instanceof SpecialPrint) {
                sp = (SpecialPrint)c;
        public StandardPrint(SpecialPrint sp) {
            this.sp = sp;
        public void start() throws PrinterException {
            PrinterJob job = PrinterJob.getPrinterJob();
            if (mFormat == null) {
                mFormat = job.defaultPage();
            job.setPageable(this);
            if (job.printDialog()) {
                job.print();
        public void setPageFormat (PageFormat pf) {
            mFormat = pf;
        public void printStandardComponent (Pageable p) throws PrinterException {
            PrinterJob job = PrinterJob.getPrinterJob();
            job.setPageable(p);
            job.print();
        private Dimension getJobSize() {
            if (sp != null) {
                return sp.getPrintSize();
            else {
                return c.getSize();
        public static Image preview (int width, int height, Printable sp, PageFormat pf, int pageNo) {
            BufferedImage im = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
            return preview (im, sp, pf, pageNo);
        public static Image preview (Image im, Printable sp, PageFormat pf, int pageNo) {
            Graphics2D g = (Graphics2D) im.getGraphics();
    //        PageFormat pf = sp.getPageFormat(pageNo);
    //        int width = im.getWidth(null);
    //        int height = im.getHeight(null);
    //        g.setColor(Color.WHITE);
    //        g.fillRect(0, 0, width, height);
    //        double hratio = height / pf.getHeight();
    //        double wratio = width / pf.getWidth();
    //        g.scale(hratio, wratio);
            try {
                   sp.print(g, pf, pageNo);
              catch(PrinterException pe) {
                   pe.printStackTrace();
            g.dispose();
            return im;
        public int print(Graphics gr, PageFormat format, int pageNo) {
            mFormat = format;
            Graphics2D g = (Graphics2D) gr;
            g.translate((int)format.getImageableX(), (int)format.getImageableY());
            Dimension size = getJobSize();
            if (pageNo > getNumberOfPages()) {
                return Printable.NO_SUCH_PAGE;
            int horizontal = getNumHorizontalPages();
            int vertical = getNumVerticalPages();
            int horizontalOffset = (int) ((pageNo % horizontal) * format.getImageableWidth());
            int verticalOffset = (int) ((pageNo / vertical) * format.getImageableHeight());
            double ratio = getScreenRatio();
            g.scale(1 / ratio, 1 / ratio);
            g.translate(-horizontal, -vertical);
            if (sp != null) {
                sp.printerPaint(g);
            else {
                c.paint(g);
            g.translate(horizontal, vertical);
            g.scale(ratio, ratio);
            g.translate((int)-format.getImageableX(), (int)-format.getImageableY());
            return Printable.PAGE_EXISTS;
        public int getNumHorizontalPages() {
            Dimension size = getJobSize();
            int imWidth = (int)mFormat.getImageableWidth();
            int pWidth = 1 + (int)(size.width / getScreenRatio() / imWidth) - (imWidth == size.width ? 1 : 0);
            return pWidth;
        private double getScreenRatio () {
            double res = Toolkit.getDefaultToolkit().getScreenResolution();
            double ratio = res / 72.0;
            return ratio;
        public int getNumVerticalPages() {
            Dimension size = getJobSize();
            int imHeight = (int)mFormat.getImageableHeight();
            int pHeight = (int) (1 + (size.height / getScreenRatio() / imHeight)) - (imHeight == size.height ? 1 : 0);
            return pHeight;
        public int getNumberOfPages() {
            return getNumHorizontalPages() * getNumVerticalPages();
        public Printable getPrintable(int i) {
            return this;
        public PageFormat getPageFormat(int page) {
            if (mFormat == null) {
                PrinterJob job = PrinterJob.getPrinterJob();
                mFormat = job.defaultPage();
            return mFormat;
    }>
    Thanks much!

  • Print html file with barcode from abap report

    hi
    i am printing html file from abap program using gui_execute.
    i am using netscape.exe , its printing first time and when reprint its not working
    basically html file contains gif file which has fedex barcode.
    could you please let me know how to print html file from report

    DGU wrote:
    where to check RAW or TEXT? the print report vi only asks for file name and printer name.
    When I print from notepad, everything just goes by default. This is a label printer, so I never need to specify printing parameter such as size, orientation, etc in the past
    Famous last words go something like this: "...never had to do that before."  Maybe you have to do that now.  It's worth at least comparing the defaults settings for bothe generic drivers.  It could save you a lot of headache if you notice something different.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How to I get access to the Captivate object in javascript within an HTML file?

    I'm still struggling with this and would really appreciate any help/guidance you can .
    here's what I've got right now:
    var g_bIsInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
    document.write("<P><H1> g_bIsInternetExplorer=" + g_bIsInternetExplorer + "</H1></P>");
    document.write("<P><H1> setting objCP....</H1></P>");
    var objCp = g_bIsInternetExplorer ? Captivate : document.Captivate;
    document.write("<P><H1> set objCP....</H1></P>");
    var description = objCp.cpEIGetValue("m_VarHandle.cpInfoDescription");
    document.write("<P><H1> description=" + description + "</H1></P>");
    I've published the captivate project.. I then launch it and then launch the html file that has this code in it
    It does everyting up thru and including line 3
    But it seems to fail on line 4..
    Any ideas /suggestions?
    Thanks in advance.

    Hey Jim - thank you thank you thank you
    Here's what was up with my code:
    This worked:
    alert("about to set objCP...");
    var objCp = document.Captivate;
    alert("completed setting of objCP, about to set get cpInfoDescription...");
    var description = objCp.cpEIGetValue("m_VarHandle.cpInfoDescription");
    alert("description=" + description);
    This did NOT work:
    document.write("<P><H1> AT BEGINNING </H1></P>");
    alert("about to set objCP...");
    var objCp = document.Captivate;
    alert("completed setting of objCP, about to set get cpInfoDescription...");
    var description = objCp.cpEIGetValue("m_VarHandle.cpInfoDescription");
    alert("description=" + description);
    ====
    I'm guessing the 2nd didn't work because i tried to get the captivate object AFTER the script wrote something to an HTML file.  I'm ultimately trying to get Captivate to generate a report for the user to report out what they did in response to the various quiz questions in the course (in HTML in table).   I've posted a query on how to do this here: http://forums.adobe.com/message/5120417#5120417
    Any chance you could take a look at this posting and let me know your thoughts on how best to do this .. It seems like this would be a fairly common thing to do .. It comes stock in Articulate Storyline (through their 'Report.HTML') but I haven't found a comparable one in Captivate.
    Thanks again!
    tom.

  • ActiveX bypass in Outlook 2010 & 2013 for specially crafted html file

    Whilst testing an IE exploit to see if a Windows system was patched or vulnerable, I noticed a difference in the way Outlook behaves compared to Internet Explorer when opening a .html file containing ActiveX code.
    POC system is Windows 7 Version 6.1.7601 Service Pack 1 Build 7601 using either Outlook 2010 or Outlook 2013.
    Use case 1. If I open the .html file in the OS, the default program is IE and I am prompted that ActiveX is restricted in the lovely yellow pop up banner, before I click "Allow Blocked Content" and pwn the machine and crash the browser and DEP
    kicks in to save the day.
    Use case 2. If I email the .html file to myself and open the email attachment from Outlook 2010 or 2013. I get the prompt from Outlook warning about "opening the attachment" which is pretty standard, but no warning in IE about ActiveX code
    and pwn the machine straight away as it would appear that the browser ActiveX controls are bypassed or just not there? DEP then kicks in to save the day again.
    Use case 3. Same as use case 2 except this time using Outlook.com as the email client. This email client provides little warning, the file download prompt asks "do I want to open or download the file", I click open and the file download
    runs the file by opening up another browser tab without prompting any ActiveX warnings and bang! IE has to recover from a crash.
    Does anyone know why use case 2 and 3 prevent the browser from prompting for ActiveX or bypass the browser from prompting for ActiveX and seemingly the user accepting the opening of an attachment in Outlook or the downloading of the file from Outlook.com
    is then a gateway to having the exploit run in the browser?
    Finally, I appreciate that all the above controls are pretty weak and so probably no need for a big essay like this and we're all weary of users opening mysterious attachments, but I was intrigued by the disparity in the user experience and ActiveX.
    Any takers?

    Hi,
    In case 3, what does it mean by "using Outlook.com as the email client"? Did you configure an Outlook.com account in Outlook client, or use Outlook.com account on web?
    Please open Outlook, go to FILE -> Options -> Trust Center -> Trust Center Settings -> Automatic Download -> Uncheck "Permit downloads from Web sites in this security zone: Trusted Zone" -> OK. I'm not sure if this helps but you can have
    a try.
    Regards,
    Melon Chen
    TechNet Community Support

  • Reading HTML files in a java

    Hi guys,
    In a project that I have to submit, I have to read a HTML file's text and then have to check if it contains any word or words, that are present in a List.
    I already have the list, But how can I read the HTML file and then how can I compare it's text...
    any idea please...any kind of help is appreciated

    [http://forums.sun.com/thread.jspa?threadID=5115338&messageID=9394434]

  • How to compare two files in java & uncommon text should print in text file.

    Hi,
    Can any one help me to write Core java program for this.
    How to compare two files in java & uncommon text should print in other text file.
    thanks
    Sam

    Hi All,
    i m comparing two HTML file.. thats why i am getting problem..
    import java.io.BufferedReader;
    import java.io.FileReader;
    public class textmatch{
    public static void main(String[] argv)
    throws Exception{
    BufferedReader fh =new BufferedReader(new FileReader("internal.html"),1024);
    BufferedReader sh = new BufferedReader(new FileReader("external.html"),1024);
    String s;
    String y;
    while ((s=fh.readLine())!=null)
    if ( s.equals(y=sh.readLine()) ){    
    System.out.println(s + " " + y); //REMOVE THIS PRINTLN STATEMENT IF YOU JUST WANT TO SHOW THE SIMILARITIES
    sh.close();
    fh.close(); }
    thanks
    Sam

  • How to compare two files in Java & uncommon text should print in Diff text

    Hi All,
    can any one help me to write a java program..
    How to compare two files in Java & uncommon text should print in Diff text file..
    Thanks
    Sam

    Hi All,
    i m comparing two HTML file.. thats why i am getting problem..
    import java.io.BufferedReader;
    import java.io.FileReader;
    public class textmatch{
    public static void main(String[] argv)
    throws Exception{
    BufferedReader fh =new BufferedReader(new FileReader("internal.html"),1024);
    BufferedReader sh = new BufferedReader(new FileReader("external.html"),1024);
    String s;
    String y;
    while ((s=fh.readLine())!=null)
    if ( s.equals(y=sh.readLine()) ){    
    System.out.println(s + " " + y); //REMOVE THIS PRINTLN STATEMENT IF YOU JUST WANT TO SHOW THE SIMILARITIES
    sh.close();
    fh.close(); }
    thanks
    Sam

  • Multiscreen HTML5: iPhone Output Not Built Correctly (Missing HTML Files)

    I need expert help to resolve this issue. Hopefully, this issue will sound familiar to someone, and they can provide some guidance.
    Since I started using RH10 a few months ago, I have delved into the details of Multiscreen HTML5 only as much as was needed to get the work done. I have an issue that has me flustered.
    By default, I am building my help project for all platforms (iPad, iPhone, Desktop, etc.), with iPad selected as the Default. The iPad & Desktop help both work fine, no issues.
    However, when I open the index.htm file in the iPhone folder, it opens the table_of_contents.html screen, which contains nothing but a search field. Additionally, many of the html files (that are in the iPad folder) are not being built for the iPhone folder (missing). When I look at the other folders (kindle_fire, or android_galaxy_tab for example) the files are all there and they work fine.
    When I compare the HTML for the Table_of_Contents.htm files for ipad and iphone, they are identical except the default file for iPhone is home.htm instead of table-of-contents.htm. But when I change the HTML to make them identical, I still have the same problem. When I open, it jumps to the searchresults.htm screen instead of displaying the Contents.
    When I wipe out the iPhone folder and rebuild it, the results are the same.
    So, somewhere, somehow, I have evidently unknowingly either selected or deselected something that caused the missing sections to be excluded (or not be built).
    I appreciate any help resolving this issue.
    Thank you,
    JimC

    Yes. Each device can have different content. It could be that some topics have tags and that layout has an expression that is excluding them.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Combining history, .html files, and sorting

    Is there a way to create something comparable to a bookmarklet (as described in [/questions/956384]) for browsing history and if so, how?
    Also, would any of the history be lost (as mentioned by John99 in connection with [/questions/956552])?
    Thank you!

    Sorry, there isn't an option to export browsing history to an HTML file as with bookmarks. History was never stored in an HTML file, so that's why that option isn't available for history. And the old RDF history format ''(pre- Firefox 3.0 versions)'' had few other uses beyond data storage and has seemed to quickly fall by the wayside as far as the number of files in Firefox that use RDF format files any longer. Plus browsing history isn't considered nearly as important as bookmarks.
    Wait and see what other support helpers can come up with as far as ideas, but it may take a few days for getting usable ideas.
    ''I added an additional "tag" - history - to this thread, which might help others to find and respond to your query.''

  • "local" html files hangs browser more that 3.X any work arounds?

    I have a program on another machine that creates an html file every 30 seconds. This html file has javascript which compares dates and figures out when to check for the next 30 second update. Works fine in the office. When I VPN in it takes longer to fetch this file. Firefox 3.X did not seem hang for minutes at a time, 4 does. Any tweaks available? I don't want to down grade to Firefox 3 because I LOVE the pinned tabs feature!! For now I'm running a separate instance of firefox just for this page.

    ( links in emails )
    this is what fixed my issue with links in my windows live mail
    in Firefox go to tools >options >advanced > general tab > at the bottom click the check now button to make sure Firefox is your default browser . if its not click yes to make it default now your links in emails should open in Firefox properly

  • Previous saved bookmarks.html files were almost twice the size. If I rely on this much smaller folder for saving my I may lose bookmark data. Can someone explain why my folder is now suddenly so much smaller?

    Since I upgraded to 3.6.3 my bookmarks folder has become nearly half the size upon exporting it in html format. I normally refresh my working copy of Mozilla by saving the bookmarks and then erasing all aspects of Firefox and starting over from scratch. I am concerned that if I rely upon this smaller folder I may be losing data. Can someone tell me what is happening here? It could be that this is just an improvement in Firefox but I do not know how to test the waters to see if all my data is saved.

    Are you comparing the size of the bookmarks.html file that is exported from Firefox 3.6.3 to a bookmarks.html file that was exported from earlier versions of Firefox?
    Really shouldn't be a difference, there hasn't been a change to Firefox regarding the bookmarks.html file in years.

  • How to compare multiple files in EODQ

    HI
       I have a requirement to compare multiple files, when I used Link profiler, it throws error 'Invalid Processor' please let me know any tutorials to compare multiple files
    Thanks
    Babu

    Hi All,
    i m comparing two HTML file.. thats why i am getting problem..
    import java.io.BufferedReader;
    import java.io.FileReader;
    public class textmatch{
    public static void main(String[] argv)
    throws Exception{
    BufferedReader fh =new BufferedReader(new FileReader("internal.html"),1024);
    BufferedReader sh = new BufferedReader(new FileReader("external.html"),1024);
    String s;
    String y;
    while ((s=fh.readLine())!=null)
    if ( s.equals(y=sh.readLine()) ){    
    System.out.println(s + " " + y); //REMOVE THIS PRINTLN STATEMENT IF YOU JUST WANT TO SHOW THE SIMILARITIES
    sh.close();
    fh.close(); }
    thanks
    Sam

  • Does Spotlight Search HTML Files?

    I have a folder full of HTML files I just imported to my MacBook about a week ago. They have been backed up by my Time Capsule. But when I search for keywords in the contents of them, they do not show up. The file names will show up, but none of the contents (which are mainly text). I have tried to force Spotlight to search only the folder that contains the files, but it does not seem to be searching the HTML files.
    Are HTML file contents excluded from Spotlight searches? I seem to have a number of webpages that come in Spotlight for keyword searches that appear to be the result of searching the file contents. So is there a trick to this? Is there some way I can force Spotlight to index this folder? Just not sure why it seems to search the contents of some HTML files and not others.

    Are HTML file contents excluded from Spotlight searches?
    No, HTML files are not excluded.
    Open System Preferences > Spotlight, under Search Results tab is Webpages checked?
    If yes, download a new html file and see if Spotlight finds it. If yes, then it could be a permissions issue with the files you imported. Do a Get Info and compare permissions between the new and old files.
    You can reset your permissions on all your files similar to Disk Utility using the Recovery Drive. See instructions here:
    Use OS X Recovery Disk Assistant to reset Your files and folder permissions
    (Fair disclosure: NeedHelp4Mac is my site. I may receive some form of compensation, financial or otherwise, from my recommendation or link.)

Maybe you are looking for

  • I don't understand.........

    I recently got a new computer with Windows 8.1 installed. It came with Skype (says 2.8.0.1001) and it's completely wacko. I installed the regular Skype (6.16.60.105), which is much better. But when I open the other Skype (2....), I have two messages

  • Student I Cards

    Hi All, I want to generate a abap report in Campus Management through which I can display student I Card with respective information like :- Student Name: Address: Student Photo... etc. can anyone let us know how to go for it, actually the master dat

  • Add custom embedded region or link in talent management

    We are doing a proof of concept implementation of Oracle Talent Management. As part of this implementation we have been requested to add Salary change functionality to the employee performance appraisal process. Usually this process is only used to e

  • Spry Vert Menu: Weird top item display in DW design view

    Whenever I insert a vertical menu, the top Item always dispalys in Design View right justified (see attached image).  Really distracting. Displays fine once published.  Just bugging me?

  • How to know the record status changing from NEW to INSERT while keying-in a field

    Thanks to Kevin Clarke & Steven Declercq for helping me out with my previous queries. Can any one out there tell me how to intercept when the reocrd status is changing from NEW to INSERT (while a field is being keyed-in in a blank(new) record). Thank