Hello!
I'm working with the prototype library version 1.4.0 and having a
strange error lately. When I want to make an Ajax.Updater call, it
basically works. But as soon as I put the call into a function, so that
I can call it from a popup, I get the error:
"html has no properties" (in Firefox)
working code:
<a href="#" onclick="new Ajax.Updater('i mages', '...path...',
{asynchronous:t rue, evalScripts:fal se}); return false;">Update 2</a>
not working code:
function update ()
{
new Ajax.Updater('i mages', '...path...', {asynchronous:t rue,
evalScripts:fal se});
}
<a href="#" onclick="update (); return false;">Update</a>
I already traced back the code in the prototype.js file:
950 update: function(elemen t, html) {
!951 $(element).inne rHTML = html.stripScrip ts();
952 setTimeout(func tion() {html.evalScrip ts()}, 10);
953 },
804 updateContent: function() {
805 var receiver = this.responseIs Success() ?
806 this.containers .success : this.containers .failure;
807 var response = this.transport. responseText;
808
809 if (!this.options. evalScripts)
810 response = response.stripS cripts();
811
812 if (receiver) {
813 if (this.options.i nsertion) {
814 new this.options.in sertion(receive r, response);
815 } else {
!816 Element.update( receiver, response);
817 }
818 }
Does anyone have a clue why that is / could be?
Regards
hardrock 2 4372
hardrock said the following on 6/28/2006 6:46 AM: Hello!
I'm working with the prototype library version 1.4.0
I'm sorry.
and having a strange error lately.
That seems to be common with prototype library.
When I want to make an Ajax.Updater call, it basically works.
OK.
But as soon as I put the call into a function, so that I can call it from a popup, I get the error:
"html has no properties" (in Firefox)
Did you try contacting the author of prototype.js?
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
> Did you try contacting the author of prototype.js?
No, since I was still expecting this to be a pretty common error with a
solution that's to find.
I didn't think that this would be a normal problem with Prototype,
since even in documentations of Prototype this is listed as code
example. If you go to http://www.sergiopereira.com/article...ingAjaxUpdater
you can see that the example given for the Ajax.Updater class is also
written inside a function body, and I don't think that this guy wrote
some non-functional code there . . .
I will try contacting the author of prototype.js though. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: MAK |
last post by:
I'm stumped.
I'm trying to use Python 2.3's urllib2.urlopen() to open an HTML file
on the local harddrive of my WinXP box.
If I were to use, say, Netscape to open this file, I'd specify it as
"file:///c:/mypage.html", and it would open it just fine. But
urlopen() won't accept it as a valid URL. I get an OSError exception
with the error...
|
by: kj |
last post by:
This problem is driving me nuts. The code at the end of this post
below works fine with IE, but fails with Mozilla. You can see it
in action at
http://tinyurl.com/2jvo3
With Mozilla 1.4 and 1.6, the function msg works fine if it's
installed as an onclick handler for the button, but fails as an
onload handler for the page. The error is...
|
by: Arash Dejkam |
last post by:
Hi All,
Is it possible to write on an <OBJECT type="text/html"> using
document.write() from within the html containing that tag the way we write
on a popup window? I couldn't do that after a lot of try.
Thanks in advance.
|
by: Jon Davis |
last post by:
I recently learned how to do an <OBJECT> alternative to <IFRAME> in current
browsers using:
<object id="extendedhtml" type="text/html" data="otherpage.html" width="250"
height="400"></object>
My question is how do I access the document DOM of this object in
Javascript? For example, "alert(extendedhtml.innerHTML);" doesn't work and...
|
by: Brad |
last post by:
All samples related to this see to come short of being 'truly' dynamic. For
instance, after creating all the code to load/save a properties value, you
turn around and save it to one you KNOW exists:
foo.Height = (my loaded value)...
I am trying to load and set the property on the fly - without necessarily
knowing what it is. Imagine a 100...
| |
by: Jim Heavey |
last post by:
Why does intellisense not show me all of the available properties for a
control, such as a text box when I am adding that control in the HTML view.
For example, "ToolTip" does not show up as a "available" property for a
textbox that I am adding to an EditItemTemplate. Does not seem to mind
that I place the value in the element block, but it...
|
by: Earl Teigrob |
last post by:
After I have instanced a webcontrol (in code) and set its properties, I would
like to get the html that it would render to the display. Can this be done.
How???
Earl
|
by: rajesh |
last post by:
Hi all;
For me also the same error "crossobj has no properties" is occuring
while running in mozilla browser for the same calender.Plz help me to
solve this problem with coding as soon as possible.
Thanks u in advance
by N.Jayaram
|
by: pbd22 |
last post by:
hi.
for some reason i am not able to navigate the dom.
i keep getting the 'no properties' error but i think i
am doing everything right. this is an XML response
from an AJAX call.
The ajax method to call the server code looks like this.
i am passing a cookie as a parameter:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
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. ...
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |