Welcome Guest, Not a member yet? Register   Sign In
passing javascript variable to controller
#1

[eluser]adityajoshi[/eluser]
i want to pass
Code:
function(name)
{

  var  a = "http://localhost/quiz_applet/index.php/screen"+name;
  location.href = a;
}

the value of a will some thing like
here name is the id of the button whose value we append to the string
"http://localhost/quiz_applet/index.php/screen"

to get some thing like this

http://localhost/quiz_applet/index.php/screen1


where screen1 is the controller which loads a view

i want to make the href like
http://localhost/quiz_applet/index.php/screen1?var1=1

i get the message
404 Page Not Found

The page you requested was not found.


basically i am trying to access the variable pass to view page




Theme © iAndrew 2016 - Forum software by © MyBB