473,569 Members | 2,573 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how do you expose pylons c variables to javascript functions

Hi,

I am making a javascript call to google maps to get the geocodes of an
address. Ok, so its trivial to get the latitude/longitude, but now I
want to pass that data via the Pylons MVC framework so that my
controllers have access to them.

I could get the lat/long by instead going through HTTP via a
webservice call, but new problem comes up - how do I now hand off the
c variables to the javascript function.

Appreciate any help.

Feb 17 '07 #1
0 1119

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

Similar topics

6
312
by: Nick Dreyer | last post by:
In VB.NET I would like to not have to create property get/set procedures for every class variable I want to expose to Excel VBA projects in COM builds. Can anyone tell me if that is possible, or refer me to some documents that will make me understand why this apparent limitation of VB.NET COM builds is acceptable, i.e. why in "good" object...
8
2520
by: lawrence | last post by:
I'm learning Javascript. I downloaded a script for study. Please tell me how the variable "loop" can have scope in the first function when it is altered in the second function? It is not defined in global space, therefore it is not a global variable, yes? Even if it was global, how would it get from one function to another? In PHP variables...
1
2004
by: Prigozhin Roman | last post by:
Hi , I have a COM object implemented in C# Problem is that my properties ( which defined public in the class ) can not be seen from the outside ( When I call COM ) I can see only functions I defined in class interface. If I try to define variables there I get an error : Interfaces can not contain variables ( which is understandable )....
2
2289
by: Matt Kruse | last post by:
Let's say I want to create two (or more) global functions from within a closure, so they can both share some "private" variables and methods. What is the recommended way to do this? (function(){ var message = "hello!"; window.showMessage = function() { alert(message); } window.setMessage = function(str) {
4
1507
by: Mage | last post by:
Hello, I don't want to be impolite, just in short: I am thinking about leaving RoR and coming back to Python. I've missed the last two years in Python, however I have been subscribed to this list and there are not too many e-mails about Pylons in my mailbox. On my Gentoo the latest Pylons ebuild has date "jul 2007" or something like...
1
1140
by: John Salerno | last post by:
Hi everyone. I was thinking about signing up with a web host that supports Pylons (among many other things) and one of the differences between the various plans is application memory for long-running processes. The plan I'd like to sign up for has 80MB. Does anyone know if this is enough for basic Pylons applications? Just in general, how...
5
1445
by: John Salerno | last post by:
I just installed Pylons onto my hosting server so I could try out templating with Mako, but it seems a little more complicated than that. From the look of it all, the site seems to want a full Pylons application. Is it possible to just use regular HTML files with a bit of the Mako language embedded, or will I actually have to use all aspects...
1
1175
by: sniipe | last post by:
Hello, I have a question about framework pylons - how to run(in paster) webpages over https? Is it possible, or not? Best regards
0
522
by: Daniel Fetchinson | last post by:
Hi Senior, For the javascript library I would strongly recommend extjs: http://extjs.com/ It makes javascript work VERY easy including event handling, GUI building, ajax calls, etc, etc. Cheers,
0
7701
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, 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...
0
7924
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, 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. ...
0
8130
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7979
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 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...
0
6284
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3653
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...
1
2115
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
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
940
bsmnconsultancy
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...

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.