This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » symfony projects » Other » php action links passing javascript (jquery) generated variables
php action links passing javascript (jquery) generated variables [message #56250] Tue, 15 July 2008 18:10
tatanajllo  is currently offline tatanajllo
Messages: 13
Registered: July 2008
Junior Member
Hi I really need your expertise on this.

I'm trying to link to an action but before going to the action I need to get the variables from a javascript.

To better explain:

in my module success:

<div class = 'navigation_select'><a onClick="createadNzone()" href="#">Create</a></div>

in my .js file:

function createadNzone()
var load_week = $("#navigation_week").selectedValues();

type: "POST",
URL: "/navigation/addadNzones",
data: "load_week="+load_week+""


in my action:

public function executeAddadNzones($request)

$newAdhere = new Ad();


Nothing is happening here the ajax does post the values, but it does not redirect to the action... it stays the current page loaded.

Pls help.

Previous Topic:Asterisell modification: migration from MySQL to pgsql - help needed
Next Topic:Eco symfony site
Goto Forum:

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software