473,394 Members | 1,755 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,394 software developers and data experts.

Ajax.Updater (prototype.js) and updating a div with a php function

Hello Everyone,

altought by English is not so ggod, I try to explain my problem...

With the prototype ajax.updater it's possible to update a div trough
a given url.
Is there any possibility to update it with a function?

Wenn cklicking on a link, the layer 'mainContent' show be updated with
the function Shop::cart()

Thanks for your answer.

Nov 1 '07 #1
2 5257
On Nov 1, 1:44 pm, chrissi <cschl...@gmail.comwrote:
Hello Everyone,

altought by English is not so ggod, I try to explain my problem...

With the prototype ajax.updater it's possible to update a div trough
a given url.
Is there any possibility to update it with a function?

Wenn cklicking on a link, the layer 'mainContent' show be updated with
the function Shop::cart()
For questions specific to Prototype.js you are more likely to have
success on the Prototype group

http://groups.google.com/group/rubyonrails-spinoffs

The regular contributors in comp.lang.javascript generally dislike
Prototype.js for many good reasons. If you can avoid using it and use
almost any other library you will be making a better choice. There is
currently a long thread in comp.lang.javascript about JavaScript
libraries. It is a very sensitive issue around here.

Peter

Nov 1 '07 #2
chrissi wrote:
Hello Everyone,

altought by English is not so ggod, I try to explain my problem...

With the prototype ajax.updater it's possible to update a div trough
a given url.
Is there any possibility to update it with a function?

Wenn cklicking on a link, the layer 'mainContent' show be updated with
the function Shop::cart()

Thanks for your answer.

First of all, Shop::cart() is not a javascript function. So what are
you talking about? It's probably a server-side function, in which case
Ajax.updater is exactly what you want (if you insist upon using
Prototype). You just need to determine the URL that maps to
Shop::cart(), and if there isn't one, make one. If you need help
figuring out how to do this, it would be a better question for a group
about your server-side language.

Jeremy
Nov 2 '07 #3

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

Similar topics

1
by: marc.fuehnen | last post by:
hi everybody, tried the framework and build a little SQL Update, triggered by a JS function: <a href="Javascript:updateData()"><img src="../images/thumbs/thumb_blue.png" border="0" /></a> ...
2
by: hardrock | last post by:
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...
7
by: BeeRich | last post by:
Hi folks. I built an ajax.updater reply in a website on a Mac, and she works fine. It's a simple reply, the html supplied is correct, and I also supply the target DIV as well. Just wondering...
1
by: gzerphey | last post by:
I hope you guys can help me on this. I have two functions. The first calls a periodical updater and does it quite successfully. The second is meant to stop said updater. It however fails when I...
3
by: noballack | last post by:
I've got a problem, I'm working with Ajax in a web with a form with a list of checkbox added to the form via an Ajax.Updater method. These added checkboxs are not been sended by the form if I use...
2
by: Megalith | last post by:
I'm getting perplexed on this, essentially i have an html file which is using prototype to provide the Ajax. the html has a button which when clicked calls the settings.php file and should display...
6
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post by:
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick...
1
by: conspireagainst | last post by:
Is there any possible way (I'm using prototype framework) to glean what the name of the container element to be updated (using Ajax.Updater) is? I have appended at the bottom of prototype.js a...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...
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...

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.