Wallaby, HTML 5 and browser detection
I have a web site that runs a simple flash move that changes pictures and text.
I have used Wallaby to successfully convert the fla file to html5 code and i have the code working in Safari.
The html5 code won't work in Firefox or IE so i need to put some conditional code to detect the browser and then use the appropriate code (fla or html 5)
How do i do this?
Thank you very much!
Steve
This should get you started: http://www.w3schools.com/js/js_browser.asp
Similar Messages
-
I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. I did not have this issue in the older version. I use an iMAC running OS10.6.8. How do I resolve this issue?
Starting with this, you have errors in your CSS code.
body {
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
color: 151515;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
background-color: EFF5F8;
body {
margin:0;
color: #151515;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
background-color: #EFF5F8;
font-size: 100%;
Related links:
Windows Chrome, why do my fonts look so bad? - Lee Green
css3 - Bad font rendering Chrome - Stack Overflow
Nancy O. -
1-Why Reports format behaves different in Excel and browser(if desformat=html or pdf)?
2-I made three queries Q1,Q2 & Q3 and linked them with proper field links but suppose Q3 returns no records for some Q1&Q2 records & when the report runs for delimited options it reflects only those records as output for which all the queries return records(if Q3 returns no record then the related records from queries Q1,Q2 don't reflect) while the output in desformat=html or pdf is ok..
can you please resolve my problems
( I have installed patch 5a in my report server machine)
Thanks & Regds.
Suneel
nullWhat do you mean by "different"? (In our
experience, Oracle html output has too many
columns, which are not visible in the
browser but are obvious in Excel.)
We build our own html programmatically, so
that Excel matches the browser more closely.
-- Allan Plumb -
Send html and image data to browser
Hi,
Is it possible to send both html and image data to browser.
Can I dynamically generate the image and send the image data without storing the image in web server's hard disk.
Can you plz tell me what areas that I should look for and learn in order to do this.
THanks a lot,
Chamal.u can make use of jakarta`s commons fileUploader classes to upload ur file to the server
here is a small example i made
html is like this
<html>
<form method="post" action="/uploadFile" enctype="multipart/form-data">
<input type="text" name="uname"/>
File
<input type="file" name="upfile"/>
<input type="submit"/>
</form>
</html>
my servlet contains these code
FileUpload fup=new FileUpload();
boolean isMultipart = FileUpload.isMultipartContent(req);
// Create a new file upload handler
System.out.println(isMultipart);
DiskFileUpload upload = new DiskFileUpload();
// Parse the request
List /* FileItem */ items = upload.parseRequest(req);
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
System.out.println("its a field");
} else {
System.out.println("its a file");
System.out.println(item.getName());
File cfile=new File(item.getName());
System.out.println(cfile.getName());
System.out.println(getServletContext().getRealPath("/mine"));
File tosave=new File(getServletContext().getRealPath("/"),cfile.getName());
item.write(tosave);
for more info
http://sun.calstatela.edu/~cysun/documentation/jakarta/commons/fileupload-1.0/apidocs/org/apache/commons/fileupload/FileItem.html -
I have a site with several flash buttons. I can see them in
IE but not Fiirefox or Netscape. I have re-downloaded Flash Player.
This is the page:
http://trainedwhistle.com/Audio_Books.html.
I have found references to the Flash Browser Detection Kit on this
sire but none of the links work. can anyone help me?I get a 404 error when trying your link.
Can you check it and re-post.
regards
Nick Barling
www.barkingweb.com -
Does Weblogic Provides any in built utility for server side browser detection
Hi
Does Weblogic Provides any in built utility or package for server side browser
detection i.e. to know the browser details
of the client with the first request.
One such available product is BrowserHawk(http://www.cyscape.com).
any thing similar to this available?
Thanks in advance
Mrutyunjay
Hey Mohammed,
yes, you could use just wl server to do file uploading. in your html client
code, you need to specify the type of the data that you are sending as
follows:
<form action="UploadTestServlet" enctype="multipart/form-data" method=POST>
File: <input type=file name=file><br>
<input type=submit>
</form>
This will send your file to be processed by the UploadTestServlet. You need to
code UploadTestServlet yourself to parse and extract useful data. check out
www.servlets.com for a utility class that does just that
Winston
Mohammed Ali Usmani wrote:
> Hi to All;
>
> I want to know if I can use weblogic (webserver) for file uploading from
> client browser without using any ftp server.
> Do I have to use some special code (may be in my servlet/html page) for
> handling this. I mean that do I have to provide the implementation of RFC
> 1867 by myself at server side?
>
> Or it is just merly a browser support? It doesn't effect the webserver at
> all?
>
> Thanks
-
Design view and browser view in DW are different than when I view from local folder
I'm brand new to Dreamweaver CS5.5 and here is my problem:
I've made an html page in dreamweaver with a banner, with an additional graphic and some text on top of the banner. It displays just fine in every browser when I view from the local folder, but when I open DW and view, it displays incorrectly in all three design, live and browser views within DW. If I make changes to the css file until it views correctly in design view, it no longer displays correctly from the local folder and it still doesn't view correctly in live or browser view within DW. If what I'm doing isnt going to display accurately in any of the views provided by Dreamweaver as compared to the live server, whats the point in having this software? I could just keep building webpages in notepad and uploading with CoreFTP.
Any suggestions? Is it some setting that I dont know about that I need to change within DW? Please help.align="center" is deprecated (obsolete) code in XHTML & HTML5 doc types. Instead of styling markup with HTML, you should be using CSS.
CSS
.center {text-align:center}
HTML
<p class="center">some centered text here</p>
With respect to break tags, in XHTML doc types the correct syntax is <br /> not <br>. However your usage of line breaks is inconsistent with good symantic markup. Use headings <h1> <h2> <h3> <h4> for important keywords. Use <p> for descriptive paragraphs. Use <ul> <li> or <ol> <li> for lists. Line breaks should be used minimally if ever.
XHTML doc types require all tags to be lowercase. Uppercase tags will throw errors.
Your design is too rigid. When text size is increased in browsers, your content is unreadable. See screenshot.
SOLUTIONS:
1) DO NOT USE POSITION ABSOLUTE. You don't need it. Absolute positioning removes content from the normal document flow resulting in a jumbled mess. Use default CSS positioning (none) with margins, padding & floats to align elements.
2) Remove HEIGHT values from all CSS containers. Height limits a container's capacity to hold more content when needed. Container height should always be determined by the amount of content it holds; not explicit values. If required to reveal a background image, for example, use CSS min-height instead of height.
CSS Box Model
http://www.w3schools.com/css/css_boxmodel.asp
CSS Floats
http://www.w3schools.com/cssref/pr_class_float.asp
CSS min-height
http://www.w3schools.com/cssref/pr_dim_min-height.asp
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com/ -
HTML and JS in Adobe Muse is slow to load?
Hi, I've embedded an Edge Animation into Muse by inserting the HTML and uploading the Javascript using a MuCow widget provided by Adobe. 'LoadJSAtBodyEnd.mucow'
The animation takes a very long time to load? 11 seconds in Safari, 20 seconds in Firefox and 5 seconds in Chrome. I know the animation isn't to big as when i export it as a .oam into Muse the animation loads within a second. The reason it has to be in HTML and JS is because it includes a trigger that updates the windows URL to an anchor on the page. [ window.location.hash = "#about";] If the animation is a .oam file the trigger updates the URL inside the animations window not the website window. I could use [ window.open("#about", "_parent");] with an .oam file however it just refreshes the page every 8 seconds as the animations
Any ideas why the animation is taking so long to load? or is there an alternative code for the .oam?
ThanksHi Zak, There is nothing on the page yet expect a small .svg logo, two 100% width rectangles beneath the browser bottom guide, two anchors and a widget from MuseResource.com for magnetic scrolling between anchors.
-
Java Swing/AWT and FX is so old school! Give me HTML and CSS for GUI!
Dear Java,
I am a seasoned programmer and I feel it's time JAVA implements a GUI system where it uses HTML and CSS for the GUI. For the love of god just look at the interfaces you can make using HTML and CSS alone. I am a big fan of Java Swing and the recent GUI designer for FX is quite cool. But they are just not as simple as HTML and CSS. And JavaFX has some interesting requirements for the graphics.
I know it is possible to use JavaFX and implement the WebView/WebDriver and make it load a HTML page, etc... but why go through all the trouble?
Just imagine... if you make Java where it has powerful back-end to do what it does best and the HTML/CSS powered GUI on the front-end. It will make the lives of many developers much much easier.
I am not sure whether a Swing designed GUI will be faster than a HTML designed GUI... but if you look at a traditional browser and how fast it renders HTML/CSS, I am sure if Java had a native Form where it uses HTML and CSS to render the GUI, Java will make the dreams of many programmers a reality.
Make it happen!!!!Check this i solve problem just now using this
https://wiki.archlinux.org/index.php/Ja … ow_Manager -
Font in Design View different from font in Live View and browser preview
My external style sheet has the body set for a sans-serif font and there is nothing to contradict it in the HTML documents. But while I get sans-serif in the Design View (as you would expect), I get a serif font in Live View and Browser Preview, not to mention on the Web itself.
How is this possible (and what should I do about it)?
--PaulMurray and David: it worked! It is a rare and joyous experience to have a straightforward solution to the sorts of problems I come up with (including other realms). But I have to say that with HTML and CSS (and hence with Dreamweaver), solutions to difficulties have seemed within easier reach than in other parts of the computer world.
By the way, I wanted to choose "correct answer" for both your posts, but after making the first click it was no longer available for the remaining post--so I typed "helpful" even though that one was correct too.
Thanks again.
--Paul -
I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.
That is because you don't have a web server configured and running to serve the html page. In order to see the page in a browser you need to access it using a url similar to http://localhost/~yourUserName if you are serving the page from your user account.
Prior to Mountain Lion you could go into web sharing and turn on the web server. With Mountain Lion there is no option, other than using terminal, to turn on the web server. The web sharing menu item has been removed in Mountain Lion. Apache is still on your computer but it will take a little searching these forums or the Internet to find how to turn it on.
If you want a graphic user interface to turn on/off the Apache server you could download and install a server application like xampp, http://www.apachefriends.org/en/xampp.html. I use this and it works well. -
Tools for validate HTML and CSS Error in DW?
Hello Guys,
Want to know any addon or menu tool in Dreamweaver to validate HTML and CSS error.
Because every time i have to check in w3c validation. If DW having in this options it wouldbe great to develop website with out error.
Please let me know your suggestion for that.
Cheers
Abdul
www.ilearnsmart.com
www.whitehouseit.comDW does provide tools to help with validation:
http://articles.sitepoint.com/article/dreamweaver-8-standards/1
http://www.adobe.com/support/dreamweaver/htmljava/migrating_hs_to_dwmx/migrating_hs_to_dwm x06.html
I find it a bit more comfortable though to use teh W3 Validator and I always access that with the Firefox Browser and the Web Developer plug-in. Another good plug in for FF is Firebug.
Martin -
Learning HTML and CSS for DWCS3
How do I determine what Page type and Layout to use for each
webpage, as I do not have the trial and error experience with being
a web designer?
I'm reading "The Missing Manual" and HTML books. I've also
been learning a lot from these forums... what to do and what not to
do. I've started our new website with a blank HTML template in DW,
though the more I read - the more I realize I am not informed. Like
one of the Newsgroup Pros (Murray) on this site has indicated about
his scheme for laying out a website, I now know that I need a
layout plan for this website. Since I used to create databases, I
know the questions to ask to layout the relational tables for the
optimal result and making the front end easy enough for a Monkey to
use. However, this is my first website ever and with a new
employer. I've already loaded our products in the purchased
shopping cart and I have a mock up for the website Home page. There
will be an additional 6 webpages. Any suggestions are greatly
appreciated.> >What page type? Not sure what you mean here.
> The Page type is within DW new document selection. I
selected Page type -
> HTML
> template for building my webpage.
That's OK. You could also select Blank HTML, build your page,
and then use
FILE | Save As Template. Either path will get you a DW
Template at the end.
If you would be using server scripting on the child pages,
then you would
want to use FILE | New > whatever scripting model is
appropriate, and then
the latter method when you are ready to save the page as a
Template (FILE |
Save as Template....) so that DW can set the appropriate
extension
(*.dwt.php for a PHP template, for example).
> Our current website does not track browsing habits of
our users, so I do
> not
> have this info.
You would get this information by watching a typical user's
screen.
> The only probable info I have is our users use IE or
another
> browser compatible with Windows.
That's no help. You may be able to guess by evaluating the
technical
inclination of your typical user. People who are less familar
with
computers will likely not know that they can maximize their
browser to fill
the entire screen. You would also want to know how old the
typical computer
being used in your demographic is. Older computers tend to
have smaller and
lower resolution screens, therefore narrower browser
viewports.
> My choice without knowing how much trouble I will cause
myself or the pros
> and
> cons of each that you indicated, I would select "d.
Flexible (within
> limits)
> and left aligned"
Actually, I think the better choice would be fixed width and
centered, but
since that's my personal preference I'm likely biased.
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
==================
"HappinessGrows" <[email protected]> wrote
in message
news:[email protected]...
> Thanks for the reply Murray. My answers here will
definitely show you that
> ~I'm
> dancing on the border line of clueless with I know a
little about HTML and
> DW
> to get me started and not enough to keep me out of
trouble~.
>
> >What page type? Not sure what you mean here.
> The Page type is within DW new document selection. I
selected Page type -
> HTML
> template for building my webpage.
>
> >1. What is the primary target demographic for this
site?
> We sell wholesale to Dealers and Distributors.
Additional website users
> will
> be Sales team, CCTV techs and new potential customers.
>
> >2. What are the browsing habits of that demographic?
Do they normally
> > >have
> their browser window maximized on the screen?
> >3. If they usually have their browser maximized,
what is the typical
> > >screen
> width?
> >4. If they usually do NOT have their browser
maximized, what is the
> > >MINIMUM
> screen width in that demographic.
> Our current website does not track browsing habits of
our users, so I do
> not
> have this info. The only probable info I have is our
users use IE or
> another
> browser compatible with Windows.
>
> >As you can see, this decision is probably much more
complex than you
> >thought, and will require that you know quite a bit
about your intended
> >target visitor and their browsing habits.
> Yes, what I've been reading the choice is much more
complex and I'm asking
> many more questions to piece together the website that
will load quickly
> on a
> browser and be effective for our customer.
>
> >So - which is it? 8)
> My choice without knowing how much trouble I will cause
myself or the pros
> and
> cons of each that you indicated, I would select "d.
Flexible (within
> limits)
> and left aligned"
>
> -
Hello,
I work on a Web site optimisation for the Nokia N95 phone terminal. I did not find, in the Nokia Web site, any reference documents on the HTML and CSS supported by the N95 Web browser. Where can I get such technical references ?
Actually, I try to use the command max-device-width and min-device-width which allows to select a stylesheet according to the device dispay mode (width = 240 or width = 320). I noticed that it is not supported by this browser. Are there any alternative ? I would like also to know if the meta tag name = "viewport" is available on the N95 browser.
Any answear would be appreciated.
Best regards,
Xavier OttoliniYou will find info about this on nokia's developers forum:
www.forum.nokia.com -
Outlook HTML and CSS Validator Problem
Hi,
I downloaded this
Outlook
HTML and CSS Validator for DreamWeaver 8
(WordMailSupportMacromedia.msi) but when I
followed
the instructions and went to the Browser Check settings,
"Microsoft Word" did not show up in the Target Browsers list.
Anyone know why or have a fix?
Thanks much!FederalWayDave wrote:
> Hi,
>
> I downloaded this
>
http://www.microsoft.com/downloads/details.aspx?familyid=0b764c08-0f86-431e-8bd5
> -ef0e9ce26a3a&displaylang=en for DreamWeaver 8
(WordMailSupportMacromedia.msi)
> but when I
>
http://msdn2.microsoft.com/en-us/library/aa338200.aspx#Word2007MailHTMLandCSS2_D
> reamweaver]followed the instructions and went to the
Browser Check settings,
> "Microsoft Word" did not show up in the Target Browsers
list.
>
> Anyone know why or have a fix?
>
> Thanks much!
>
you can open your html pages FROM Microsoft Word.
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing List
Maybe you are looking for
-
I am not able to update my software, it says network connection timed out and shows error 3259
I have tried udating my ipod touch(4th gen) 5 to 6 times but each time after finishing the download it say Processing and then it say network session timed out. Also it show error -3259 in the itunes. Please advise...
-
Iphone 5 signal dropping issue
Hi guys, I just got my Iphone5 as a gift from my friend month ago. It was really exciting when I first got it. However I found sometimes when I unlock the screen, the signal will suddenly drop to 1 bar and then searching, this will take seconds and t
-
ML1000 RPR load balancing and multicast problem
Hello, We have SDH network consisting in a STM16 ring with 7 ONS15454 MSPP nodes, sw version 9.0.1. In each node we have a ML1000-2 card connected in a RPR configuration through VC4-8C(8x155Mbs) circuits. My questions: Q1 We had expected the ring to
-
Hi All, Please could someone explain how to conditionally display the Header row on first and subsequent pages, but make it dependent on the body row. That is, if the output flows into the second page and there are line items to display on the second
-
Smooth scrolling in Library (grid view)
The scrolling has been greatly improved in grid view. It feels not slugginsh anymore (I do have one of the latest iMac + SSD) at rendering the thumbnails. However, the view is still not using the smooth scrolling hability in Mac OS: it scolls by step