Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Post Timeline

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Possible Duplicate:
Call php function from javascript Call php function from javascript

can anyone help me on how can I call the php function on JS function?

Here is the event:

I have 2 selection box (e.g projects and task) when selecting on project selection box, the task selection box will be populated. values populated on the task selection box is in my PHP DAO.

Here is my javascript but it doesn't work but my idea is like that

function getProjTask()
{
 var taskList = <?php $projTask->getProjectTask("ProjectName"); ?>
 
 //values for task selection box has been populated here
}

Possible Duplicate:
Call php function from javascript

can anyone help me on how can I call the php function on JS function?

Here is the event:

I have 2 selection box (e.g projects and task) when selecting on project selection box, the task selection box will be populated. values populated on the task selection box is in my PHP DAO.

Here is my javascript but it doesn't work but my idea is like that

function getProjTask()
{
 var taskList = <?php $projTask->getProjectTask("ProjectName"); ?>
 
 //values for task selection box has been populated here
}

Possible Duplicate:
Call php function from javascript

can anyone help me on how can I call the php function on JS function?

Here is the event:

I have 2 selection box (e.g projects and task) when selecting on project selection box, the task selection box will be populated. values populated on the task selection box is in my PHP DAO.

Here is my javascript but it doesn't work but my idea is like that

function getProjTask()
{
 var taskList = <?php $projTask->getProjectTask("ProjectName"); ?>
 
 //values for task selection box has been populated here
}
insert duplicate link
Source Link

Possible Duplicate:
Call php function from javascript

can anyone help me on how can I call the php function on JS function?

Here is the event:

I have 2 selection box (e.g projects and task) when selecting on project selection box, the task selection box will be populated. values populated on the task selection box is in my PHP DAO.

Here is my javascript but it doesn't work but my idea is like that

function getProjTask()
{
 var taskList = <?php $projTask->getProjectTask("ProjectName"); ?>
 
 //values for task selection box has been populated here
}

can anyone help me on how can I call the php function on JS function?

Here is the event:

I have 2 selection box (e.g projects and task) when selecting on project selection box, the task selection box will be populated. values populated on the task selection box is in my PHP DAO.

Here is my javascript but it doesn't work but my idea is like that

function getProjTask()
{
 var taskList = <?php $projTask->getProjectTask("ProjectName"); ?>
 
 //values for task selection box has been populated here
}

Possible Duplicate:
Call php function from javascript

can anyone help me on how can I call the php function on JS function?

Here is the event:

I have 2 selection box (e.g projects and task) when selecting on project selection box, the task selection box will be populated. values populated on the task selection box is in my PHP DAO.

Here is my javascript but it doesn't work but my idea is like that

function getProjTask()
{
 var taskList = <?php $projTask->getProjectTask("ProjectName"); ?>
 
 //values for task selection box has been populated here
}
Post Closed as "exact duplicate" by Matt Ball, Robert Harvey
Source Link
Mark
  • 314
  • 1
  • 5
  • 17

calling php on js

can anyone help me on how can I call the php function on JS function?

Here is the event:

I have 2 selection box (e.g projects and task) when selecting on project selection box, the task selection box will be populated. values populated on the task selection box is in my PHP DAO.

Here is my javascript but it doesn't work but my idea is like that

function getProjTask()
{
 var taskList = <?php $projTask->getProjectTask("ProjectName"); ?>
 
 //values for task selection box has been populated here
}
default

AltStyle によって変換されたページ (->オリジナル) /