473,396 Members | 1,913 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Prototype Ajax.Updater error - "html has no properties"

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('images', '...path...',
{asynchronous:true, evalScripts:false}); return false;">Update 2</a>
not working code:

function update ()
{
new Ajax.Updater('images', '...path...', {asynchronous:true,
evalScripts:false});
}

<a href="#" onclick="update(); return false;">Update</a>
I already traced back the code in the prototype.js file:

950 update: function(element, html) {
!951 $(element).innerHTML = html.stripScripts();
952 setTimeout(function() {html.evalScripts()}, 10);
953 },

804 updateContent: function() {
805 var receiver = this.responseIsSuccess() ?
806 this.containers.success : this.containers.failure;
807 var response = this.transport.responseText;
808
809 if (!this.options.evalScripts)
810 response = response.stripScripts();
811
812 if (receiver) {
813 if (this.options.insertion) {
814 new this.options.insertion(receiver, response);
815 } else {
!816 Element.update(receiver, response);
817 }
818 }

Does anyone have a clue why that is / could be?

Regards

hardrock

Jun 28 '06 #1
2 4359
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.javascript 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/
Jun 28 '06 #2
> 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.

Jun 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
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...
3
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...
9
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...
6
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> ...
5
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...
2
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...
1
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
1
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
tracyyun
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...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.