load html in flex 3.5 and more - apache-flex

I want to load some html page see this in Flex 3.5 or more I followed this tutorial but somehow i think it only works in Flex 2, I even tried by unchecking Generate HTML wrapper file but no luck. Can somebody help me? Thanks

search about iFrame in FLEX application will give you the best result. I have used iFrame but still not get the expected result so i have ignored that thing to implement in my project but might be you can get better result. Best Luck. Have a nice day.
one of the advice from my senior i get is "when you are passing from the firewall you can't get the result in iFrame." so this sentence might be useful to you.

Sorry to dissapoint you, but HTML with Inner Frame and Flex is not a good option.
If you want a wysiwyg html editor, I suggest you to create your own editor, or you can buy one.
And if you need to open a new window of contents, you should open a new window in the HTML way, outside the Flex App.
My experience in IFrames with Flex was with this google code. Some people have modified it and posted it, and you should find in other sites, doing the same thing: It works in some cases, but, for example, will not work if you need to put more complex needs in your App along with IE compatibility.

I used this Guide to make it work. (mostly about adding wmode="opaque" to the html)
Download the flexiframe from this location
Use xmlns:flexiframe="http://code.google.com/p/flex-iframe/" in your component
and <flexiframe:IFrame id="iFrame" label="Google" source="http://www.google.com" width="100%" height="100%" />
That's it.. this worked for me and surprisingly it works on IE, Firefox and chrome
Note: You can also use pdf

Related

How to make outputed html source compact in asp.net

Visited http://www.12titans.net/p/s/register.aspx, right click view source on the page .I found the html source so compact,have no blank. How to do like this in asp.net?
I am use IE8 ,tks in advance! sorry for my bad english!
I have the same problem with debugging some spring mvc projects, What i normally do is use chrome, right click on the page and inspect element. The element explorer is the source code with javascript applied to it, so i might be a little different, but normally for the better
hope this answer your question.
When you generate HTML using ASP.NET, just don't insert tabs or line breaks or spaces in the source code, and when you code HTML by hand, do the same thing.
In other words, do it by hand.
You can also use a DOM Parser which should be able to get the bare necessities and print it out without any tabs or whitespace.

Invoking one application in the other

I have one solution with web forms approach (soln1) and the other one in MVC 2.0 (soln2). On a page page1.aspx in soln1, I want to render soln2. I used iFrame and in src atribute, I provided starting URL of soln2. Is there any other approach to this? Basically I dont want to use iFrame because of some styling issues.
Thanks
There are three ways (that I can think of) to load one webpage inside another:
IFrame
jquery.load
Frames
Unfortunately all of these options have their problems.
IFrame's can have styling issues as you know.
JQuery's load has compatibility problems with some browsers and an issue with event bubbling.
Frames demands a static layout to your site and probably has the same styling issue for you.
Considering those problems, an IFrame is probably the best choice, it's also specifically intended for the kind of behaviour you're trying to achieve.
Why don't you post about your styling problems, as that might be the easier thing to solve.
Update:
To fix the scroll bars, you can add this attribute to your iframe
scrolling="no"
For an example see here:
http://jsfiddle.net/FZ4eZ/

How to disable menu wrap and enable horizontal scrolling on window resize?

First of all I am not programmer nor web developer.
Someone made a website for me but can not contact him right now.
After 3 days of googling i decided to post this question.
How to enable gorizontal scrolling instead of menu and footer wrap on window resize?
I tried attributes such as: display:inline-block; white-space: nowrap (i think this is related to text only), some JavaScripts.
I might placed these elements in wrong place as it's hard to know that code.
This is index file:
http://slawgd.webpark.pl/index.rtf
and pls find CSS here:
http://slawgd.webpark.pl/style.css
Thank you very much for you help!!
Greg
CAUTION: I am sorry that my answer has no real solution so you can choose to ignore.
The followings are just my comment on your web page after I had analyzed it.
It would be slightly better if you copy the rendered code of HTML as we won't get your data in your SQL Database.
Simply right click the page in browser and find Source Code to get it.
Also, you might find a better answer from the someone who help you to produce it because he is the only one person familiarize your page most.
EDIT: Just a suggestion and not a solution.
After I looked at your page, it is suggested that to find the someone because the page was complicated designed.
It needs lots of effort to modify it without affecting other component.
Moreover, it is quite horrible to work out on cross-broswer compatibility because the code is not well designed.
In mainland China, users of Firefox might not have much, but there are still numbers of users using Maxthon which include WebKit engine.
Variant IE-based browser in mainland China also give a slightly different result of rendering so the code must be optimized.
Therefore, ask the website editor for cleaning the code (such as repeating CSS, malformed HTML structure, etc) and working hard on cross-broswer compatibility is considerable.
More personal comment:
In conclusion, if you find a worker for your website construction with money pay, it seems that it is a huge job to rewrite it and it is not easy to persuade him to help you.
Maybe you can ask someone to help you with a simpler basic structure and insert the original JS background slide effect and drop menu effect to your newer, simpler, and cleaner structure.
There are still a readable amount of unnecessary wrappers inside the page.

customising asp.net fileupload control

Using the asp.net file upload control is very easy, i'm trying to squeeze it into my site and the dam thing is very ugly!. Can I not change the browse button to an image of my choosing ?
So far i'm failing to achieve this seemingly simple goal. Any ideas on this one ?
Thanks
Unfortunately you can't do much with as it's really down to the browser how it is styled and functions. Just try it in Safari & IE to see the difference.
I have seen sites where people have used overlays to make it look different, kind of giving it a mask.
Here's a more thorough discussion on quirks mode about the problem: Styling an input type="file"

ASP.net site looks completely different on IE, Firefox, and Chrome; why?

I'm doing css for a website. I send the html and css to a guy, he puts it into ASP.net. The problem is that the transfer didn't end well for my code and it needs some fixing. The problem is that when I look at it in Chrome, or Firefox, or IE8, I get three completely different renderings. I spent a good amount of time trying to fix a drop-down menu that is supposed to appear while hovering over a link. The one he had in place from ASP.net worked in IE, kinda worked in Firefox, and was completely broken in Chrome (I haven't tested Safari or Opera.) Just getting it to look basically the same in firefox and chrome was a struggle. The html source is showing me two completely different pages as well.
Does anyone have experience with this? I know nothing of ASP.net, and it seems like the guy is modifying my layout with a wsyiwyg (I found tables used in random places, which I did not put there.) Faced with this, what is my best option? Is this fixable, or am I in over my head?
Many times WYSIWYG programs don't generate code that results in reliable, consistent renderings. However, there are a few things you can do to check your site's consistency.
You can use a program like Adobe BrowserLab (there's a free trial right now) to automatically render your page in multiple browsers side by side
You can use the w3 Validator to make sure that your code is standards compliant. If your code isn't standards compliant, then you will likely have issues across browsers.
Note that you can force asp.net to generate XHTML Transitional- or Strict-compliant code (if that's the standard you choose to implement) via the web.config file. Use the directive
<xhtmlConformance mode="Transitional"/>
if you want to enable this behavior.
Was your code rendering fine in those browsers before you sent it off to the .NET guy? If so, the programmer is doing something to muck up your work. ASP .NET won't change the way your code renders... it's simply the Windows equivalent of PHP (simply put).
I would suggest (if you haven't already) testing your code before hand-off to verify proper rendering. Take some screenshots, and if after sending your code to this developer things break, you can point out that it was working until he started messing with your markup. If that ends up being the case, at least you know it wasn't you. If it was, then we have more work to do. :)
Can you provide any samples?
The html source is showing me two completely different pages as well.
That sounds like your asp.net guy is doing something wrong there. You can use asp.net to do browser-dependant rendering, but it sounds more like his job is to just make the site render what you gave him, and it's usually better to get your html and css right to begin with.

Resources