1
chetan
Re: Ajax in Xoops Template
  • 2008/5/20 14:28

  • chetan

  • Just popping in

  • Posts: 6

  • Since: 2008/2/25


PLEASE CAN ANYONE TELL ME HOW TO UPLOAD FILES USING XAJAX IN XOOPS
Am not able to collect the $_FILE['filename']['tmp_name']
for uploading whilst i saw the $arg array in the functions registered and it contains no such parameter it has only file name.
please help

jus let me know how do u upload files in xajax
thank u evr be grateful:)



2
chetan
Re: Ajax in Xoops Template
  • 2008/5/14 7:28

  • chetan

  • Just popping in

  • Posts: 6

  • Since: 2008/2/25


hi, am using xajax inside xoops..
i have a problem as in.. i use a javascript called menuswapper.js to swap contents from left combo box to right
the combobox defined as :

<form id="testplan" name="testplan" method="post" action="devtest_testplan.php">
<select multiple size="10" name="list1">
<input type="button" onClick="move(this.form.list1,this.form.list2)" value=">>">
<select multiple size="10" name="list2">

and i submit using xajax as
<input type="button" value="submit" onclick="xajax_processFormData(xajax.getFormValues('testplan'));" />
</form>



and in the function which looks like this am unable to retrieve the combobox multiple values


function processFormData($arg)
{
global $xoopsTpl;
global $xoopsDB;
$myts = myTextSanitizer::getInstance();
$testplan_name=$myts->addslashes($arg['testplan_name']);
$testplan_file=$myts->addslashes($arg['testplan_file']);
$list2=$myts->addslashes($arg['list2']);


//$query = "Insert into ".$xoopsDB->prefix("tutorial_myform")." (name, address) values ('$testplan_name', '$testplan_file')";
$res=$xoopsDB->query($query);

if(!$res) {
$msg="error: $query".$arg['list2'].$list2[0];
} else {
$msg="Data was correctly inserted into DB!".$arg['list2'].$list2[0];
}


$newContent=$msg;


// Instantiate the xajaxResponse object
$objResponse = new xajaxResponse();

// add a command to the response to assign the innerHTML attribute of
// the element with id="SomeElementId" to whatever the new content is
$objResponse->assign("divcalculate","innerHTML", $newContent);

//return the xajaxResponse object
return $objResponse;
}





PLEASE LET ME know how do we get about multiple values combobox and how to retrieve the same at the php function



3
chetan
Re: Tutorial- How to build an Ajax Module
  • 2008/5/12 10:52

  • chetan

  • Just popping in

  • Posts: 6

  • Since: 2008/2/25


ERROR: ResponseReceived: Invalid response XML: The response contains an unexpected tag or text: {data}.

i get this error what do i do



4
chetan
updation fails for templates on new module
  • 2008/3/6 12:22

  • chetan

  • Just popping in

  • Posts: 6

  • Since: 2008/2/25


hi,
i have installed my own module in xoops.
problem is whenever i make changes to templates folder in my module and update it,the update doesnt reflect onto my page.
rather i have to delete the template_compiled files from templates_c ,deactivate and uninstall the module and then reisntal the module then it works.

its a buggy process for every small changes i make in templates
isnt there any simpler way or is it that am goin wrong?

neone please help



5
chetan
yogurt _tpl_vars and xoops_options[]
  • 2008/2/25 13:12

  • chetan

  • Just popping in

  • Posts: 6

  • Since: 2008/2/25


am using yogurt ported on to the XOOPS platform
i need to modify it to make sure that am able to create new tabs for the yogurt page and also new links on the sidebar.
i checked the /xoops/templates_c/def-def-#$%mainmenu.html.php
and it seems to be using the _tpl_vars array to import the links. how do i add a new link say google.com by USING THE _TPL_VARS and not directly using <a href... and pasting it into the mainmenu.html.php file.

and also i need to create a new page for ex when i click on the home button after loggin in i want to make sure i have 3 empty frames one below the other defined with all the look of profile page with tabs and community and frens col to right but fully empty 3 frames.
am not able to relate as to how the
$xoopsOption['template_main'] = 'yogurt_index.html';
works and where this xoopsOption array is being set.

please guide me.
i wod ever be thankful u.




TopTop



Login

Who's Online

183 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 183


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits