Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 javascript values back to python?

View previous topic View next topic Go down 
AuthorMessage
Vugto
Member
Member
Vugto

Posts : 6
Join date : 2011-04-18

javascript values back to python? Empty
PostSubject: javascript values back to python?   javascript values back to python? EmptyWed Jun 29, 2011 4:43 am

is there any way to pass a javascript value back to python without calling the page with parameters?

I have created a dropdown menu using a python call to a WMS server. I'd like to create another dropdown menu based on the the first menu choice. I can't do a normal dynamic dropdown menu because I have to do another python wms call based on the first menu choice.

I'd like to do the first call, read the menu choice, do the next call and create a new dropdown. I figure I'd do the first call in python, read the choice in javascript, do the second call in python then read the second choice and do more calls in python. All without doing a page call...
Back to top Go down
Scream
Member
Member
avatar

Posts : 8
Join date : 2011-03-09

javascript values back to python? Empty
PostSubject: Re: javascript values back to python?   javascript values back to python? EmptyWed Jun 29, 2011 4:44 am

Use Ajax calls from the JavaScript to call the Python code.
Back to top Go down
Vugto
Member
Member
Vugto

Posts : 6
Join date : 2011-04-18

javascript values back to python? Empty
PostSubject: Re: javascript values back to python?   javascript values back to python? EmptyWed Jun 29, 2011 4:46 am

I've never used Ajax. is there anywhere you can point me to such that I can actually learn how to use Ajax calls for this ? (or post some code snippet?) Thanks a million.
Back to top Go down
Sponsored content




javascript values back to python? Empty
PostSubject: Re: javascript values back to python?   javascript values back to python? Empty

Back to top Go down
 

javascript values back to python?

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Python error handling
» Submit values using other than <input>
» Create Multiple Date Values
» Are nonbelievers responsible for following Christian values?
» Javascript HashChange

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: javascript values back to python? Edit-trash Useless :: Trash-