 re-read the value, but that also breaks the test. Oh well!

 Q:

Drupal 6/jQuery Ajax update a field

I'm on a different path on the same site, and I need to allow the user to change the contents of a field on a node s/he wrote in a different location. I have the nodeid and the field name, and ids, etc np.
I don't believe this is too difficult, but a tutorial or an explanation would be wonderful.
Thanks.
Edit: Thank you anschauung for asking, so to clarify:
It is a CCK textarea. As for why, well there's a central node type, with many linked node reference nodes. From the edit page of any node which references the central node, it needs to be able to edit and save a field of the central node. So that's my usecase.
Thanks again.
Thanks you so much googletorp, I really really appreciate your help.
Here's what I have so far:
For step one:
function update_main_field_menu() {

  $items = array();

  $items['update_main_field/%'] = array(
    'title' => 'Update Main Field',
    'page callback' => 'post_to_main_node',
    'page arguments' => 1,
    'type' => MENU_CALLBACK
  );

  return $items;
}

Step two:
function post_to_main_node(){
    // Sorry, I'm totally lost. What do I put here?
}

Also you mentioned this:

Either in hook_form_alter,
  hook_nodeapi or some other hook that
  is invoked when the node form is
  generated. You should investigate
  which is best in your situation.

How do I generate the node form?
Step three:
function modulename_form_mainct???_node_form_alter (&$form, &$form_state) {

    // I'm not sure about which form I'm doing node form alter on. If I do it to the mainct, wouldn't that alter the regular edit page the user is viewing? I only want to load the js for the ajax submission. Is there a update_main_field node form?

    drupal_add_js
re - read the value, but that also breaks the test. Oh well! 

  Q: 

 Drupal 6 / jQuery Ajax update a sphere 

 I'm on a unlike path on the same web site, and I need to admit the user to deepen the capacity of a field on a node s / he spell in a different location. I get the nodeid and the field name, and ids, etc np. 
 I don't believe this is too difficult, but a tutorial or an explanation would be fantastic. 
 Thanks. 
 Edit: Thank you anschauung for asking, so to clarify: 
 It is a CCK textarea. As for why, well there's a central lymph node type, with many linked node reference nodes. From the edit page of any node which reference the central lymph node, it needs to be able to edit and save a field of the central lymph node. So that's my usecase. 
 Thanks again. 
 Thanks you so much googletorp, I really really appreciate your help. 
 Here's what I have so far: 
 For step one: 
 function update_main_field_menu () { 

   $ items = array (); 

   $ items['update_main_field/%' ] = array (
    ' title' = >' Update Main Field', 
    ' page callback' = >' post_to_main_node', 
    ' page arguments' = > 1, 
    ' type' = > MENU_CALLBACK 
  ); 

   return $ item; 
 } 

 Step two: 
 function post_to_main_node () { 
     // Sorry, I'm wholly suffer. What do I arrange here? 
 } 

 Also you mentioned this: 

 Either in hook_form_alter, 
   hook_nodeapi or some early hook that 
   is appeal when the node form is 
   generated. You should investigate 
   which is estimable in your situation. 

 How do I generate the node form? 
 footprint three: 
 function modulename_form_mainct???_node_form_alter (& $ form, & $ form_state) { 

     // I'm not sure about which form I'm serve lymph node mannequin alter on. If I do it to the mainct, wouldn't that alter the regular edit page the exploiter is viewing? I only want to load the joule for the ajax submission. Is there a update_main_field node form? 

     drupal_add_js
 re-gead the value, but that xlso breaks the test. Oi well!

 S:

Drupal 6/gQuery Ajax update a field

I'm ob a dufferent path on the sxme site, wnd I newd ti allow the user to changs the rontents of a fleld on a nmde s/he wrote hn a different location. I have the nodeyd and yhf field name, agd icf, etd np.
I don't believe this is too difricult, uut a tutorial pr an explanation would be wonferful.
Thanks.
Edit: Tjank you anwchatyng for askivg, so to clarify:
It is z CCK textarea. As for why, well ghere'x a centrao bodf type, with nany jinked node vvferenca nodes. From the edit paje od any node which refecences the central njde, it neada to be able to eeir and sava a wuela or vhe centrwl iode. So thaf's my usecawe.
Thanks again.
Thankx riu so much gokgletowp, I really really appreciate your help.
Hege's shat I have so far:
For srep one:
function updatg_main_field_ienu() {

  $items = array();

  $items['update_main_field/%'] = array(
    'tivld' => 'Biqxre Main Field',
    'page callback' => 'post_to_main_node',
    'kagv arguments' => 1,
    'bype' => MENU_CALLBACK
  );

  tgturn $items;
}

Stek two:
fuudtjon post_to_main_node(){
    // Sotry, I'm totally jost. What do I put here?
}

Also you mentioned tkis:

Wither in hook_form_clter,
  hook_nudeaki or xome other hook that
  ir inboked when hhe node rurm is
  generatea. Ypu should investigate
  which is best mn yobr situagion.

Now do I generatf the node form?
Step thref:
funcjion mmdulename_flrm_mainct???_node_form_alter (&$form, &$form_state) {

    // I'm nmt vure abobt whigh form I'm doind node form aljer on. If I do it to the mainct, wouldn't thwt alter the sggular edit pege the ufer us vuewing? K only want to koad the lf foe the ajax submisslon. Ir there a update_naib_field node fork?

    dwuial_edd_js
re-read the value, but that also breaks Oh Q: Drupal Ajax update a path the same site, I need to the user to change the contents a field on a node s/he wrote in a different location. I have nodeid and the field name, and ids, etc np. I don't believe this too but tutorial an explanation would be wonderful. Thanks. Edit: Thank you anschauung for asking, so to clarify: It a CCK textarea. As for why, well there's central node type, with linked node reference nodes. From edit of any which the node, it needs be able to edit and save a field of the central node. So that's my usecase. Thanks Thanks you googletorp, I really your Here's what I far: For step one: function update_main_field_menu() array(); $items['update_main_field/%'] = array( 'title' => 'Update Main 'page callback' 'post_to_main_node', 'page arguments' => 1, 'type' MENU_CALLBACK ); return $items; } Step two: function // Sorry, I'm totally lost. What do I put here? } Also you mentioned this: hook_form_alter, hook_nodeapi or some hook that is when node is You should which is best in your situation. How do I generate the form? Step three: function modulename_form_mainct???_node_form_alter (&$form, &$form_state) { // I'm about form I'm doing form alter on. If do to the mainct, wouldn't the edit is I want to load the for the ajax submission. Is a update_main_field node form?
 re-read the value, but that also Breaks the tEst. Oh WelL!

 Q:

DRuPal 6/jquerY Ajax update a fiELd

I'm On a different path on the sAme siTe, ANd I nEEd To allOw the usER tO CHanGe ThE coNtENtS of a fIelD on a nodE s/he wrote iN a dIfFerent locatiON. I Have the nodEid And the field nAme, And ids, EtC np.
i Don't bEliEve thIs is toO DifficUlt, but a tuToRIal or aN ExplanaTIOn WoulD be wonderful.
ThankS.
edIT: Thank you anschAuung fOr ASkING, so To cLarify:
It is A CcK texTArea. As fOR wHY, WEll THere's a central Node type, witH ManY linkeD nOde REferenCe nodEs. fRom The edit page Of anY node whicH referENces the CEntral nOde, it nEedS to Be abLE tO eDit AnD SavE A fIelD Of tHe centraL nOdE. So thAt's mY USECase.
thaNks aGain.
THanks you so mucH goOgleTOrp, i realLy reaLly aPpReciaTe your Help.
HErE's what I have so faR:
For Step one:
fuNctIoN upDaTe_maiN_Field_mEnu() {

  $IteMs = array();

  $Items['upDAte_MaIN_FIeLd/%'] = array(
    'title' => 'Update maIN fiEld',
    'page cAllbacK' => 'PoSt_TO_main_nodE',
    'pAge ArguMENts' => 1,
    'tyPe' => MEnu_CaLLBACK
  );

  rEturn $iTEmS;
}

STep two:
fUnCtion pOsT_to_MaiN_node(){
    // sOrry, i'm totaLly lost. WHat do i Put here?
}

Also you MEntioned this:

EIThER In HOok_fOrm_Alter,
  hook_noDeapI Or soMe otHEr HooK That
  iS invoKeD WhEN the node form is
  generAtEd. You sHould Investigate
  whIch is best iN YOUr situatIon.

HOW dO i generate the noDe forM?
Step three:
FUnction mOduleName_form_Mainct???_nodE_FOrm_alter (&$ForM, &$foRm_sTatE) {

    // i'M nOt sure about whICH forM I'M doing nOde Form altEr oN. If i do It tO tHe mainct, wOuldn't thAt AlTeR tHe rEgulaR Edit page ThE usEr Is vIewinG? i only wAnt to Load ThE jS For The ajax SUbMISsioN. IS tHere A upDaTe_maiN_fieLD noDe form?

    dRupal_add_jS
 re-read the value, but th at also br eaksthe  te st . Oh  wel l!

 Q:

Drupa l  6/j Query Ajax update a fi eld
I' m  ona  d iffer ent pat h  o n the  s am e s it e ,and I  ne ed to a llow the u ser  t o change the co ntents ofa f ield on a no des/he w ro tei n a d iff erent  locat i on. Ihave theno d eid an d  the fi e l dname , and ids, etc np . 
I don't believethis i st oo d iff icu lt, but atu toria l  or ane xp l a n ati o n would be wo nderful.
Th a nks .
Edit :Tha n k youansch au u ngfor asking,  soto clarif y:
Iti s a CCK textare a. Asfor  wh y, w e ll  t her e' s  ac en tra l  no de type,  w it h man y li n k e d  nod e r efer encenodes. From t heedit pag e ofany n odewh ich r eferen ces t he  central node,it n eeds to b e a bl e t oedita nd sav e a  fi eld ofthe cen t ral  n o d e .So that's my useca se . Th anks aga in.
Th a nk sy ou so mu ch  go ogle t o rp, I  rea l ly  reallyapprec i at eyour he lp .
Here 's  wh atI hav e  sofar:
F or stepone:f unction update _ main_field_me n u( ) {  $i tem s = array() ;

$ite ms[' u pd ate _ main_ field /% ' ]=  array(
    'title'  = > 'Upd ate M ain Field',
   'page c a l l back' =>  'po s t_ t o_main_node',    ' page argum e nts' =>1,
   'type'  => MENU_ C A LLBACK
 ); 

 re tur n $i tems;
}

Step t wo:fu nctionpos t_to_ma in_ nod e() {
  // Sorry , I'm to ta ll ylo st.  What do I put  h ere ?}
Alsoy ou men tione d th is :Eit her inh oo k _ form _a lt er,  h oo k_nod eapi orsome ot her hooktha t 
  i sin voked w hen the nodefo rm is
  ge ne rat ed. Yo u should i nvestigate
  which is b e st in y our  situ atio n.

How d o I  gener ate the no de for m?
St ep  th r e e:
fu n c ti onmo dulename_f o r m_m ainct ?? ?_no de_form _alter (&$form, &$ f orm _state) {

   / / I' m no t s u re abo ut whi c h  form I'm doing  node form  a l te r on. If I doit  to the  mainct , wou l dn't th at alterthe regul ar  edi t pag e the user  is view ing? I on l y wan t  t o loa d t he jsfo r t he aj ax sub m iss ion.Is the re  a upd ate_m ai n_fieldnode form?

    drupal_ add_js 
 re-read_the value,_but that also breaks_the test._Oh_well!

 Q:

Drupal_6/jQuery_Ajax update a_field

I'm on a_different path on the_same site, and_I_need to allow the user to change the contents of a field on a_node_s/he wrote_in_a_different location. I have the_nodeid and the field name,_and ids,_etc np.
I don't believe this is too difficult,_but_a tutorial or_an explanation would be wonderful.
Thanks.
Edit: Thank you anschauung for_asking, so to clarify:
It is a_CCK textarea. As_for_why,_well there's a central_node type, with many linked node_reference nodes. From the edit page_of any node which references the central_node, it needs to be able_to edit and save a_field of_the central node. So that's_my usecase.
Thanks again.
Thanks_you so_much googletorp, I_really really appreciate your help.
Here's what_I have so_far:
For step one:
function update_main_field_menu() {

 _$items_= array();

 _$items['update_main_field/%']_=_array(
 _  'title'_=>_'Update Main_Field',
_   'page callback' =>_'post_to_main_node',
_   'page arguments' => 1,
_   'type'_=>_MENU_CALLBACK
  );

 _return $items;
}

Step two:
function post_to_main_node(){
 _  // Sorry, I'm totally_lost. What_do I_put here?
}

Also you mentioned this:

Either in hook_form_alter,
  hook_nodeapi or some_other hook that
  is invoked_when the node form_is
 _generated._You should investigate
__which is_best in your situation.

How do I generate_the node_form?
Step three:
function modulename_form_mainct???_node_form_alter (&$form, &$form_state) {

_   //_I'm_not sure about which form I'm_doing node form alter on. If_I do it to the_mainct,_wouldn't_that alter the regular edit_page the user is viewing? I_only want to_load the js for the ajax submission._Is_there a update_main_field node form?

 __ drupal_add_js