I am the author of easyajax.source forge.net, and I have a problem on
Firefox 1.5, I post the problem here and hopes somebody help me.
The test page can be: http://easyajax.sourceforge.net/demo/overview.html
The page works well in Firefox 1.0.* and IE 6.0, and Opera 8.5, but it
doesnt work on Firefox 1.5, the first time you open the page, it works
well, but when you refresh the page(such as CTRL-R), the page will
displayed in bad way.
When debug the code( It is difficult to debug without a working
debugger), i found that it was occursed at the following code:
var iframe = document.create Element("iframe ");
iframe.src = this.url;
iframe.style.he ight = "0px"; iframe.style.wi dth="0px";
//iframe.height = -1; iframe.width = -1;
// iframe.style.di splay = "none"; // not works in opera
this.element.in sertBefore(ifra me, null);
the iframe is hope to load the url normally, but in Firefox1.5(Refr esh
mode), it load another url instead, not the given url.
Can anybody tell me how to solve the problem? very thanks. 12 2495
wangzx wrote: I am the author of easyajax.source forge.net, and I have a problem on Firefox 1.5, I post the problem here and hopes somebody help me.
The test page can be: http://easyajax.sourceforge.net/demo/overview.html
The page works well in Firefox 1.0.* and IE 6.0, and Opera 8.5, but it doesnt work on Firefox 1.5, the first time you open the page, it works well, but when you refresh the page(such as CTRL-R), the page will displayed in bad way.
You may need to make life a little easier for those who might take up
the challenge of helping you. The link has invalid XHTML - your
proposed method of including a custom jsclass attribute will ensure that
anyone using your 'easyajax' will also generate invalid (X)HTML.
You have:
<textarea ... disabled="true" >
For valid XHTML use:
<textarea ... disabled="disab led"> When debug the code( It is difficult to debug without a working debugger), i found that it was occursed at the following code:
var iframe = document.create Element("iframe "); iframe.src = this.url; iframe.style.he ight = "0px"; iframe.style.wi dth="0px"; //iframe.height = -1; iframe.width = -1; // iframe.style.di splay = "none"; // not works in opera this.element.in sertBefore(ifra me, null);
Somewhere in the 3,000 lines of code in the the 3 attached js files? the iframe is hope to load the url normally, but in Firefox1.5(Refr esh mode), it load another url instead, not the given url.
Can anybody tell me how to solve the problem? very thanks.
Maybe something to do with:
<script type="text/javascript">
$("elSrc").valu e = $("elDiv").inne rHTML;
</script>
Where is '$' defined? Somewhere in the 3 external js files?
--
Rob
RobG wrote: Where is '$' defined? Somewhere in the 3 external js files?
Yes, it's a standard function from prototype.js - replacement for way
too long document.getEle mentById
To OP:
Seems like "url" is not an allowed identifier in XHTML. Try to rename
it to something like 'myURL'. The reason it chokes on FF-only may be
because it's the only browser which takes this X-crap anyhow seriously
(besides Amaya of course).
The best and the most reliable way - especially if you plan to have a
redestributable solution with IE support - get all XHTML out and use
normal HTML. Use DTD Strict if it helps you sleep better :-)
Thanks. Somewhere in the 3,000 lines of code in the the 3 attached js files?
the code is in easy.js line 184
> Seems like "url" is not an allowed identifier in XHTML. Try to rename
it to something like 'myURL'.
url is just a varible name in Javascript, it has no relation to the
XHTML element. The best and the most reliable way - especially if you plan to have a
redestributable solution with IE support - get all XHTML out and use
normal HTML. Use DTD Strict if it helps you sleep better :-)
That is a bad things for easyajax, the framework heavly use extended
attribute in HTML element, and the attribute is understand by the
javascript library.
wangzx wrote: url is just a varible name in Javascript, it has no relation to the XHTML element.
If you decided to use XHTML then forget the regular common sense - it
doesn't help too much. Get yourselve Amaya <http://www.w3.org/Amaya/>
and parse everything in this browser until no errors are shown. Edit
all errors however stupid or W3C-contradicting they would be. Only then
move one step forward.
In the particular your current page shows in Amaya:
*** Errors/warnings in http://easyajax.sourceforge.net/demo/overview.html
line 19, char 0: Invalid XHTML attribute "jsclass"
line 19, char 0: Invalid XHTML attribute "url"
line 46: Missing mandatory attribute cols for element textarea
The framework heavly use extended attribute in HTML element
Which one? "space slash" at the end of tags? ;-)
For extended attrubutes and tags there are custom namespaces, standard,
well documented and supported across all modern browsers.
It looks IE' DOM doesnot support namespace access. That makes easyajax
choose default namespace to support both IE and Firefox.
wangzx wrote: It looks IE' DOM doesnot support namespace access.
Of course it does over scopeName property. See at:
<http://groups.google.c o.uk/group/comp.lang.javas cript/browse_frm/thread/d1ae4172c5bcba4 6/0da38b3070962dd 0>
for Julian Turner post
"scopeName" applies on element only, it dont apply on attribute.
also, scopeName is not part of the DOM standard.
Once the browser support W3C DOM more, and AJAX world would be more
interesting.
for the origin problem,I think it is a bug in Firefox 1.5 on iframe
that is not occurs by the reason of namespace or name conflict..
wangzx wrote: "scopeName" applies on element only, it dont apply on attribute. also, scopeName is not part of the DOM standard. Once the browser support W3C DOM more, and AJAX world would be more interesting.
You're the king - I'm just a humble adviser. I just feel the smell of
premature death from XHTML, so your waiting for better support may get
much longer than you think. But very well can be that it is something
wrong with my nose ;-)
for the origin problem,I think it is a bug in Firefox 1.5 on iframe that is not occurs by the reason of namespace or name conflict..
Wery well can be. There is a very old and wery weird instability bug in
Firefox depending on how do you address dynamically created iframe and
even on how do you name it. The relevant description and newsgroup
thread link can be found at:
<http://www.geocities.c om/schools_ring/ArrayAndHash.ht ml#HTMLCollecti on> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Aaron Gray |
last post by:
Hi,
I want to access the properties of an IFrame but seem unable to get access
to the IFrames document body.
<html>
<body>
<iframe src="test.html" id="IFrame"></iframe>
</body>
|
by: brussel |
last post by:
I'm trying to copy information in one iframe to another iframe with javascript. I am using firefox and information from my local domain so there are no security issues. However I'm just not getting it. Somebody please give me some help here, perhaps show me the right tag names. I'm tired of trial and error guessing. Are there any good books that deal with firefox, iframes, javascript, and asynchronous AJAX?
<?xml version="1.0"...
|
by: Dave |
last post by:
Usual apologies if this is old territory.
I'm resizing a bunch of iframes on a page to the height of their
contained documents. Some of the contained documents contain IMG tags.
On IE this doesn't cause a problem and the resize works correctly. On
Firefox, if an image extends below the last line of text in the
document, that bit gets chopped off. In other words, the returned
document height doesn't allow for the image.
My code for...
|
by: mistral |
last post by:
Can anybody tell me how to get source code of page in iframe? (popup
window is clickable image).
When I right click on this popup border to view source, i see just as
follows
<html>
<head>
<title>New offer!</title>
</head>
<body style="margin-left: 0%; margin-right: 0%; margin-top: 0%;
|
by: visu |
last post by:
Hi ,
I need a solution for my problem with IFRAME in firefox.
The problem is that i ve to make the IFRAME to increase in its height
to displays its whole content dynamically .i ve set scrolling=0 ,i
dont want the scroll bars to appear in the IFRAME.
I ve achieved this somehow thru javascript in IE.. but it is not
working in Firefox.. is there anyway to increase the height of the
IFRAME dynamically depends on its content in FIREFOX?
| |
by: CAG |
last post by:
Hello,
I have following scenario in my web application.
I want to load different web forms in single iframe. Iframe in contained in an ASP page. ASP page has “Submit” button, which submits iframe form, & then load new form in same frame.
This is more like slide show of child forms. ASP button also has “Back” button which loads previously submitted form in same iframe. On click of “submit” button, it resubmits child form.
This works...
|
by: Sura |
last post by:
Hi
I have a flash interactive window which has html links and this
appears on an html page. This window can be moved with the mouse on
the html page. The html page has an iFrame too. When the flash window
comes above the iframe area the html links stop working. Yet the links
remain active when the flash window is outside the iFrame area. This
problem is coming in Firefox, but running fine in IE.
If anybody has any solution, please...
|
by: tequilamala |
last post by:
I have an Iframe in one of the pages i am developing... the iframe is suppose to scroll up and down and the links target the iframe. the problem is that the iframe scrolls side to side on internet explorer but not on firefox. I dont want it to scroll sideways. in index.htm the iframe is at the bottom of the code.
index.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">...
|
by: SunshineInTheRain |
last post by:
My project has 3 files,
File1 has included master page.
file1 consists of iframe1 that load file2.
File2 consists of iframe2 that load file3.
Javascript used on each file to resize the iframe height based on the each iframe's content height.
It is work well on IE, but the error "has no properties" occured with firefox on code as below. Where both code is to get the id of iframe on file1....
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |