Jump to content

AJAX Basic question...


erich.wanker

Recommended Posts

Hi ..

 

i try to send Ajax to my  "Mainform.windows" from a Javascript-Library

 

post-1295-0-42945200-1511532398_thumb.jpg

 

all things are on the same Server ..

 

 

The dropzone-Thing works, but i want to handle the events with unigui ..

 

how can a function in "dropzone.js" send infos to "procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string;   Params: TUniStrings);"

 

 

 

i can not use ajaxrequest(Mainform.windows,'eventname',[variable1= ..variable2=..])

in the "dropzone.js"  because i get error: ajaxrequest not defined ..

 

 

 

 

 

Link to comment
Share on other sites

Testcase :-)

 

testcase.zip

 

 

after the alert -i want to send the infos to the Mainform.form

  • globale_usernummer
  • file.name

 

 

Please find line in dropzone.js:    "alert('User:'+globale_usernummer+'      Datei:'+file.name);

 

 

 

 

 

Hope you can find a solution ;-)

 

ThanX for your help

Erich

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...