Hi,
I've build two select boxes. Onchange method on the first selectbox I
fill with ajax the second one using the selected value as a parameter.
It works.
function loadElements(groupID){
$("#secondSelectDiv").load("${h.url_for(controller='ajax',
action='getElements', id='')}"+groupID);
}
The problem is that an url is generated to my method.
for example http://localhost:5000/ajax/getElements/1
And it can be called directly from the browser.
How can I hide or block that.
If I'll use from pylons.decorators.rest @restrict('POST') on the
method then it will also be blocked for the jquery load method.
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---