Hi Thierry,
When I launch this console command under FireFox, the text is correctly modified. When I run it from FIC, it does not work and freezes the screen.
jQuery('#annexes_scx-pageframe1-page1-commentaire div.panel-heading').text("ùmùlùmlmùl");
From FIC: Refresh()
THISFORM.wcScriptJSadd(TEXTMERGE([jQuery('#<<THIS.wcID>> div.panel-heading').text('blabla');]))
What's wrong ?
Debug:
Error: Syntax error, unrecognized expression: # div.panel-heading
EUREKA: When I lauch the refresh method, wcId is not yet defined
From which baseClass.method
do you call .refresh()
in this case?
From editbox.refresh_()
In fact, I'm having a special character problem when I want to edit (refresh) text with jQuery (.text()
).
The delimiter must not be in the text (like ' " ou [
) and I can not use Escaped ()
.
JavaScript has an escape character: \
eg. copy and paste this in the browser console: 'FoxInCloud is great, isn\'t it?'
In VFP you can just use this FoxInCloud function cLitteralJS()
:
_cliptext = cLitteralJS(["FoxInCloud" is great, isn't it?]) && '"FoxInCloud" is great, isn\'t it?'