top of page

Forum Posts

Paul Grillet
Aug 14, 2019
In Coding with Velo
Hey the Corvid community! As the title suggests I am having troubles to get a selected text by the user. I tried different ways but I don't get how (or if) window.getSelection() works on Wix. The more logical to me would have been: import wixWindow from 'wix-window'; export function text_click(event) { let selection = wixWindow.getSelction() console.log(selection) } But of course it doesn't work...wixWindow does not support "getSelection()" Any idea from the experts? Any other way? Infinite gratitude to whomever gives me a little bit of its brain matter :)
0
1
65
Paul Grillet
Aug 09, 2019
In Coding with Velo
Hello everyone! Does any wix code expert knows how to change the color of some letters (or words) in a textbox while the user is writing ? For example, every ")" should be in red while the rest is in black. Is it only possible in a text box? Many thanks to whoever try to solve this puzzle! ❤️ Cheers! Paul
0
3
1k
Paul Grillet
Feb 10, 2019
In Coding with Velo
Hi everyone! I'm struggling for days now trying to count the number of spaces (aka words) in a user input. It would works with a Key Press Event but it doesn't work when you copy and paste a piece of text... Does someone have an idea? A lead? Many thanks!
0
2
931
Paul Grillet
Dec 10, 2018
In Coding with Velo
Hi all! It's a question the wix team will probably be able to answer but I did not find the answer on the forum yet... I'm have a database with 200 dermatologists, and I was wondering with by using dynamic pages I was not going to harm my ranking. Are dynamic pages indexed by Google as normal pages or are they temporary created only when the visitor clicks on the link? If so, I'm afraid it'll be harder to rank for requests such as "dermatologists+city"... Any idea? Many thank's !! PS : I don't know about your websites but mines suddenly got much faster in the last few weeks, if it's the wix team's job : well done !
0
1
374
Paul Grillet
Nov 25, 2018
In Coding with Velo
Hello everyone! Something is bothering for hours now and I can't figure out what's wrong. As wix code doesn't have the pow() function I assumed we could use " ^ " but it seems like it doesn't work... I'm trying to make a basique tool to transform annual rates into monthly rates. Here is a piece of the code, if someone has a clue on how to do that... //growth from year n to n+1 var Aug1 //current year's profit var Rn //next year's profit var Rn1 ... Rn=$w('#input6').value Rn1=$w('#input7').value Aug1=(Rn1/Rn-1)*100 ... $w('#slider15').value=Aug1 //monthly growth needed to get the second year's profit $w('#slider17').value= ((1+Aug1/100)^(1/12))-1 Many thanks in advance ! PS : currently for a growth of 100% in 12 months it says it's 1% per month...
0
7
346
Paul Grillet
Sep 15, 2018
In Coding with Velo
Hey guys, am I the only one that noticed we can't add events to switch buttons and sliders ? That makes doing filter way much fun... Do you have any idea why we can't add code to these elements anymore ? Have a great day / night / life !
An update on sliders & switch buttons ??? content media
0
1
55

Paul Grillet

More actions
bottom of page