|
I am looking for a way to dynamically send php variables into the 'content' section of the ajax call for a container. For example a user enters two items into a form and clicks send, a function appends user input onto a php url like so: any ideas? thank you |
|
There's a method to change the container content dynamically via Ajax:
where url is your php page and data the params you can pass. For example: you have a container with an ID="myContainerPlus"
This should load your page passing the params. Matteo, thank you for your prompt response, the params are passed and loaded however the window container disappears ...so only the passed params are displayed (text) floating on the page with no means to dock close or re-size. I am able to drop and drag the text and there seems to be a hidden frame around it. Any ideas? thank you
(Jan 20 '10 at 15:16)
denelius
|
|
Hi guys, Matteo, i have the same problem. when i use :
the page "_intro_negocio.php" make an "insert into a DB", and then returns :
The DB is affected, one row with the parameters is inserted, but.. the container closes itself insantly. may you help me ? Thanks so much. (sorry for my english, im from Honduras) Hi Dennis, I don't know why the container is closing... do you have any error on console? the function you are using makes an ajax call and return the result into the ".mbcontainercontent:first" of the container... nothing else... you should have "Insert ok" as content of your container... Do you have a public URL where to see your behavior?
(Sep 18 '10 at 16:45)
Matteo Bicocchi ♦♦
|
|
The above mentioned problem of the container 'disappearing' seems to be related to the Ajax call replacing the entire container params I have come up with a work around in the following:
If anyone has any comments or is able to clarify my understanding on any of the aforementioned methods I would be most grateful. thank you |
|
It's my fault...
the function you have to use to change the content is:
the complete code is:
Sorry :-) |


