FoxInCloud
difference jQuery console / FIC
Gravatar is a globally recognized avatar based on your email address. difference jQuery console / FIC
  Vincent H.
  All
  Jul 31, 2018 @ 01:21pm

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 ?

Gravatar is a globally recognized avatar based on your email address. re: difference jQuery console / FIC
  Vincent H.
  Vincent H.
  Jul 31, 2018 @ 01:34pm

Debug:

Error: Syntax error, unrecognized expression: # div.panel-heading

Gravatar is a globally recognized avatar based on your email address. re: difference jQuery console / FIC
  Vincent H.
  Vincent H.
  Jul 31, 2018 @ 01:43pm

EUREKA: When I lauch the refresh method, wcId is not yet defined

Gravatar is a globally recognized avatar based on your email address. re: difference jQuery console / FIC
  FoxInCloud Support - Thierry N.
  Vincent H.
  Aug 1, 2018 @ 12:09am

From which baseClass.method do you call .refresh() in this case?

Gravatar is a globally recognized avatar based on your email address. re: difference jQuery console / FIC
  Vincent H.
  FoxInCloud Support - Thierry N.
  Aug 1, 2018 @ 12:25am

From editbox.refresh_()

Gravatar is a globally recognized avatar based on your email address. re: difference jQuery console / FIC
  Vincent H.
  Vincent H.
  Aug 2, 2018 @ 03:11am

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 ().

Gravatar is a globally recognized avatar based on your email address. re: difference jQuery console / FIC
  FoxInCloud Support - Thierry N.
  Vincent H.
  Aug 2, 2018 @ 03:28am

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?'
Gravatar is a globally recognized avatar based on your email address. re: difference jQuery console / FIC
  Vincent H.
  FoxInCloud Support - Thierry N.
  Aug 2, 2018 @ 05:43am

Yes it is, thank's !

© 1996-2024