|
A gotcha.
Well I'm not sure if you can force FF to do that directly, but what you could so is have the page load, then have JavaScript open a popup, then close the window.
I must admit though that I haven't often interfaced between a Forms app and a Browser.
Can I ask why you can't built an HTML editor in the app itself?
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
Aha, yes, a popup would be great, thanks.
There are no HTML editor controls that will also work on Mac OS X. All the available editor controls use the embedded IE ActiveX control.
BTW, the entire layout etc. for FF is defined as markup, and has its own DOM, so I am confident that with time (the crux) I could make FF my slave. Mmmwooohhhahahahaha.
|
|
|
|
|
Brady Kelly wrote: I could make FF my slave. Mmmwooohhhahahahaha.
SSSSSSHHHHH, the was Microsoft's "Secret" plan!
And no problem, glad to help.
Need anything else?
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
Bradml wrote: Need anything else?
Not right now, but thanks for your advice so far. I'll post here again if I do.
|
|
|
|
|
I want to learn about browsers, mostly on internet explorer, how they took a page data and render it to client. And want to get performance tips for making more faster pages by learning explorer ways of doign its job.
I want to find answers of question like...
--> which one is best fast for ie .. using divs or tables to layout conttent?
--> when to include style data in page or when to put style on a css file?
--> how to find javascript usage of cpu and ram on a page, and compare with each other?
--> does flash object is bad for rendering speed of a page?
--> which doctype is best, in which stuation
--> is it really helps giving all dimension, like height, to tags that explore do not need to think about it.
--> how many percent of a page elemnets takes total time of rendering all elements.
....
and so on..
Please send any urls, or clues on the subject, and give your opinions.
thanks.
karanba
|
|
|
|
|
karanba wrote: --> which one is best fast for ie .. using divs or tables to layout conttent?
Honestly you would need to be formatting an insane amount of data to really see the difference, but divs can be processed slightly faster because they are each individual objects, a table is completely constructed before it is shown to the user.
karanba wrote: --> when to include style data in page or when to put style on a css file?
If you have a lot of pages that use the same styling then CSS is faster, because it is downloaded once. Otherwise embedded CSS is faster on a per page basis.
karanba wrote: --> how to find javascript usage of cpu and ram on a page, and compare with each other?
I don't think you can, but JavaScript rarely takes up too much CPU/Ram.
karanba wrote: --> does flash object is bad for rendering speed of a page?
Flash will slow download, but once down the rendering is nto affected. Just make sure it loads into an area with a predefined size.
karanba wrote: --> which doctype is best, in which stuation
This really depends on how structured you code is. If you think that you can make a XHTML page with no problems, then use it, otherwise use transitional.
karanba wrote: --> is it really helps giving all dimension, like height, to tags that explore do not need to think about it.
It depends on what you are rendering, if it is dynamic text which does not have a height limitation then leave it, else set it and set the overflow/
karanba wrote: --> how many percent of a page elemnets takes total time of rendering all elements.
Hope that helped. Want to know anything else?
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
thanks this answer really help..but I want more.. I go on key rendering engine for browsers but could not catch any good resource also no resource about that. what could be the key word for this subjects to searc for.
karanba
|
|
|
|
|
Honestly the documentation in this area is very poor.
If you had to look something up then probably research:
1. Cache
That is pretty much the key to the fastest pages.
One thing you have to realize is that once the browser receives all the information the rendering takes milliseconds.
I'll give you a hint that will help you speed up your download/rendering times. Research how to properly deploy a XML/XSLT solution. What this does is put all the rendering and formating information in one place(this can even make menus, banners, footers, etc) and it is only downloaded once by the user.
Then you make every page in XML with little/no formating. This means that only the unique content for every page is downloaded. The XSLT is only downloaded once and then stored in the Cache.
If you need information in more specific areas I'd be happy to help.
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
I want a javascipt code for calender
on which display current date and I can navigate to any month and year.
plz help me.
Bharat Bhusanam
|
|
|
|
|
google
Christian Graus - C++ MVP
|
|
|
|
|
Christian Graus wrote: google
Can I get a hallelujah!
Brad
Australian
By contacting your lawyer you negate the right to sue me.
|
|
|
|
|
|
Translation: I need something, but don't want to do any work for it. Please give me a complete sample that requires me to only copy/paste into my project.
|
|
|
|
|
Hi friends
I am woking in asp.net 2.0
i dont know how to build dll file for web application.
Thanks
pathan
|
|
|
|
|
|
Hi all,
I am in urgent need of a solution for the problem I have.
I have a grid inside a div tag, but the horizontal scroll bar moves to slowly and I want to increase the speed.
Please help.
Regards
Virat Soni.
|
|
|
|
|
Make the font smaller.
If that is not an option then please post a bit more information, like to you mean a manually moved scroll bard or an JavaScript controlled one?
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
Thanks for your response.
Making font smaller is not an option.
This is the scrollbar of the div within which I have a grid.
Like the following
<div id="tbl-container" style="OVERFLOW: auto; WIDTH: 995px; HEIGHT: 400px">
-------code for the div---------
</div>
Its working fine except the speed of the scrollbar in the horizontal direction is too slow.
|
|
|
|
|
Unless you're scrolling programatically, the speed is determined by the browser and the OS it runs on. If you have an extremely large amount of data, the speed may even be limited by processor and memory constraints. In this case, the best you can do is simplify the data being scrolled.
|
|
|
|
|
Can you help me in determining how to scroll it programmatically?
|
|
|
|
|
theDiv.scrollTop = position;
|
|
|
|
|
Using IE 6, I the error 'this.prototype' is null or not an object.
The script that defines my object and creates objects of this type looks something like the following:
function NameObject( Name ) {
this.Name = Name;
this.prototype.FixName = function() {
if( this.Name && this.Name.length != 0 )
this.Name = this.Name.charAt(0).toUpperCase() +
(this.Name.length > 1 ) ? this.Name.slice(1) : "";
}
this.FixName();
}
var Ted = new NameObject( 'ted' );
var Bill = new NameObject( 'bill' );
The books I have on Javascript don't indicate that IE6 doesn't support this feature, but from the error I'm getting ('this.prototype' is null or not an object) the magic where the prototype sub-object of my NameObject is supposed to be automatically created and then the members exposed in my class isn't happening.
Why is this, and is there a work around that provides the same benefits as real prototyping?
Thanks in advance.
|
|
|
|
|
Here is one possible work-around, but I don't know if it actually saves on the method storage space. I know it doesn't do the automatic internal prototype creation and mapping to top level properties, like prototyping is supposed to do, but if it saves the space needed to save the method bodies, that's enough for me.
function NameObject( Name ) {
//
// define FixName_ProtoType Method outside of the
// instance, i.e., no 'this.' in front of the
// function name.
//
function FixName_ProtoType () {
var NewName = "";
if( this.Name && this.Name.length != 0 ) {
NewName = this.Name.charAt(0).toUpperCase();
if( this.Name.length > 1 )
NewName += this.Name.substr( 1 );
this.Name = NewName;
}
return this.Name;
};
//
// create the Name property.
//
this.Name = Name;
//
// Attach the FixName_ProtoType Method to the
// instance so it can be called using x.FixName().
//
this.FixName = FixName_ProtoType;
//
// Execute the method for the newly created object.
//
this.FixName( this.Name );
}
However, I suspect that because FixName_ProtoType's declaration is nested inside of NameObject, that javascript will just create one per instance. To get around this I may have to move the FixName_ProtoType declaration outside of the NameObject's body, but then that wouldn't expose the function definition.
Anyway, I'm still interested in comments about how to make real prototyping work in IE6 or a better work-around, if there is one.
Thanks again.
|
|
|
|
|
howardjr wrote: how to make real prototyping work in IE6
function jsps_strequals(s)
{
return ( 0==this.indexOf(s) && this.length == s.length);
}
String.prototype.equals = jsps_strequals;
var str = "Hello";
if(str.equals("Hello"))
alert("Hello found");
led mike
|
|
|
|
|
Thanks
So you can't define the prototype in side of the contructor?
|
|
|
|