| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 1598 online users. » 0 Member(s) | 1594 Guest(s) Applebot, Bing, Google, Internet Archive
|
| Latest Threads |
Strict CSP Implementation
Forum: IntraWeb General Discussion
Last Post: Mario Villalba
10-29-2026, 06:32 PM
» Replies: 0
» Views: 107
|
Form doesn’t resize with ...
Forum: IntraWeb General Discussion
Last Post: BathDragonfly
10-29-2026, 09:48 AM
» Replies: 0
» Views: 91
|
Rerendering CG Tab Contro...
Forum: IntraWeb General Discussion
Last Post: MikeComb
10-29-2026, 07:38 AM
» Replies: 5
» Views: 577
|
Simply replacing the IW i...
Forum: IntraWeb General Discussion
Last Post: DidierMenant
10-28-2026, 10:31 AM
» Replies: 0
» Views: 170
|
Simply replacing the IW i...
Forum: IntraWeb General Discussion
Last Post: DidierMenant
10-28-2026, 10:30 AM
» Replies: 0
» Views: 162
|
IWDevTools
Forum: IntraWeb General Discussion
Last Post: AndreasK
10-26-2026, 01:19 PM
» Replies: 0
» Views: 190
|
SSL Revisited
Forum: IntraWeb General Discussion
Last Post: rlebeau
10-19-2026, 09:24 PM
» Replies: 3
» Views: 780
|
SpinBox Button Size
Forum: IntraWeb General Discussion
Last Post: MikeComb
10-19-2026, 06:12 PM
» Replies: 0
» Views: 298
|
CSS in CGDevTools
Forum: IntraWeb General Discussion
Last Post: MikeComb
10-13-2026, 04:12 PM
» Replies: 2
» Views: 762
|
Help with TIWPaintBox
Forum: IntraWeb General Discussion
Last Post: EmoPal
10-13-2026, 08:44 AM
» Replies: 0
» Views: 423
|
|
|
| IntraWeb Bootstrap and TFrame |
|
Posted by: jindrich.volek - 08-20-2022, 09:59 AM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
Hi
I am at the start of developing intraweb bootstrap application. It should have about 8 pages with the same menu in the header. Do you think that it's good idea to use one frame with menu for each page, so the menu its going to be same for each page (it loads to TFrame)?
Thanks, Jindrich
Menu = IWBSNavBar+IWBSNavBarHeader+IWBSNavBar+IWBSNavBarCollapse
|
|
|
| adding Access-Control-Allow-Origin header |
|
Posted by: Boba TC - 08-20-2022, 04:37 AM - Forum: Indy
- Replies (2)
|
 |
Dear All;
with TIdHTTPServer, how do I add the "Access-Control-Allow-Origin" header?
My intuitive move with VCL was:
Code: TIdHTTPServer *IdHTTPServer;
//...
void __fastcall
TForm1::IdHTTPServerHeadersAvailable(TIdContext *AContext, const UnicodeString AUri,
TIdHeaderList *AHeaders, bool &VContinueProcessing)
{
AHeaders->Add("Access-Control-Allow-Origin: *");
VContinueProcessing = true;
}
but when I test it with simple HTML in web browser:
Code: <!DOCTYPE HTML>
<HTML>
<BODY>
<BUTTON onclick="myFunction()" type="button">TEST</BUTTON>
<SCRIPT>
function myFunction(){
let o = new XMLHttpRequest();
//the IdHTTPServer is bound to "http://127.12.34.56:7890"
o.open("GET", "http://127.12.34.56:7890/qwe", false);
o.send();//No 'Access-Control-Allow-Origin' header is present ...
};
</SCRIPT>
</BODY>
</HTML>
browser throws "No 'Access-Control-Allow-Origin' header is present...". The TIdHTTPServer server does get this request with no complains of any kind.
BTW, if I insert my URL "http://127.12.34.56:7890/qwe" into the browser's address bar and press Enter - everyone is happy even if the server does not add an extra header.
TIA/Boba
|
|
|
| Datatables with Ajax |
|
Posted by: matija - 08-16-2022, 06:00 AM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
I have rawtext (IWLabel.Caption) for my json data.
'{ "data": [ .... ] }'
I want this rawtext include in define of datatables (HTML template).
WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA('$(''#examples'').DataTable( { "ajax": ' + rawtext + ',} );');
How? Recipe?
|
|
|
| TIdHTTP error details |
|
Posted by: Boba TC - 08-16-2022, 01:23 AM - Forum: Indy
- Replies (4)
|
 |
Dear All; when TIdHTTP::Get method throws out an EIdHTTPProtocolException, where do I find details of the error?
For instance:
Code: TIdHTTP *IdHTTP;
AnsiString strURL="https://....";
//...
try{
TMemoryStream *m = new TMemoryStream;
IdHTTP->Get(strURL,m);
m->SaveToFile("tst.txt");
delete m;
}catch(EIdHTTPProtocolException &e){
ShowMessage(e.Message);//shows "HTTP/1.1 400 Bad Request"
}
Thanks in advance. Boba.
|
|
|
| need HTML editor component |
|
Posted by: iwuser - 08-16-2022, 12:35 AM - Forum: IntraWeb General Discussion
- Replies (3)
|
 |
Is there anything built-in into IW, or any external compatible components that can offer rich text HTML editing functionality on IW served pages?
Or has anyone been using any external JS libraries in IW apps with any success, like "editor.js"?
I basically need to serve HTML documents to users from an IW application, in some kind of editor, allowing the users to edit them free-hand and then get the edited HTML back, so it can be saved on the server.
|
|
|
| gSession.Lookup vs gSession.Execute |
|
Posted by: tasnim - 08-15-2022, 07:22 AM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
hi everyone
After checking SessionList, SessionLookup151 in demo some question arises
what is the difference between gSession.Lookup and gSession.Execute
it appear that both achieve the same result
are they different in session lock mechanism?
when should we use each of them?
thanks.
|
|
|
| Issue with TIWBSTabControl since 15.2.61 |
|
Posted by: oystein.jakobsen@sas.no - 08-11-2022, 07:53 PM - Forum: IntraWeb General Discussion
- Replies (3)
|
 |
Since 15.2.61 I get an EReadError exception when executing apps containing TIWBSTabControl components. Rolling back to 15.2.60 fixes the issue.
Happens in D10.4.2. Not in D11.
Error details:
Exception message : Error reading IWBSTabControl1.ActiveTabFont.PxSize: Property PxSize does not exist
Depending on the error condition, it might be possible to restart the application.
Exception class : EReadError
|
|
|
|