لماذا http request دلفى قليلة المصادر والشروحات ؟
#4
(18-11-2017, 07:36 PM)Houdini كتب : لاادري ما يستدعي الشرح اصلاا، فكلها سطر او سطرين
اطرح ما تريد ان تفعله ب http request  وسيتم اجابتك من الاعضاء

ايضاا استخدم help دلفي فكل شي مشروح هنالك و بالامثلة
مثلأ عندما استدعى class او id كنت بستعمل هذا
كود :
procedure GetInnerElementById(const Doc: IDispatch; const Id: string; inner:string); var  Document: IHTMLDocument2;     // IHTMLDocument2 interface of Doc  Body: IHTMLElement2;          // document body element  Tags: IHTMLElementCollection; // all tags in document body  Tag: IHTMLElement;            // a tag in document body  I: Integer;                   // loops thru tags in document body begin  // Check for valid document: require IHTMLDocument2 interface to it  if not Supports(Doc, IHTMLDocument2, Document) then    raise Exception.Create('Invalid HTML document');  // Check for valid body element: require IHTMLElement2 interface to it  if not Supports(Document.body, IHTMLElement2, Body) then    raise Exception.Create('Can''t find <body> element');  // Get all tags in body element ('*' => any tag name)  Tags := Body.getElementsByTagName('*');  // Scan through all tags in body  for I := 0 to Pred(Tags.length) do  begin    // Get reference to a tag    Tag := Tags.item(I, EmptyParam) as IHTMLElement;    // Check tag's id and return it if id matches    if AnsiSameText(Tag.className, Id) then    begin      Tag.innerText:= inner;      Break;    end;  end; end;

فى الويب بروزر 
كود :
GetInnerElementById(wb1.Document,'test','nameclass'); كيف استدعى هذا الاجراء فى request ...
> مبرمج مبتدئ < سبحان الله بحمده... سبحان الله العظيم
الرد


الردود في هذا الموضوع
RE: لماذا http request دلفى قليلة المصادر والشروحات ؟ - بواسطة karika2 - 19-11-2017, 12:48 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم