fongka2's Forum Posts

  • This is one of APP i made for my client

    Just like another Skout APP

    You can make friends here

    (Only available in HK store Nov2014 )

    http://youtu.be/xVBCJDbSfsQ

    APPS:

    ios:C2 in webview

    android:C2 in crosswalk

    Server:

    websocket IO:Java

    Server Logic:C2 in NodeWEbkit

    FTP admin: .net

  • 1:Really Ctrl+F(Highlight etc...)

    2:Ctrl+H for replace some of text/value

    3:OSX Support

  • > Will file plugin (read not dowload) add a function like Ajax plugin's Tag?

    > I wanna to read a lot of file

    > but if there is no tag , it will make me confusion

    > thx

    >

    Added Tag to Phonegap File plugin's Read text action like Ajax plugin's Tag.

    Thanks

    Thankyou so much!!!!

  • I don't know why NavigationBar will make my app cannot run all of mobile(Android browser,crosswalk,safari)

    it show black screen

    i hv using chrome mobile to debug and found this plugin issue

    anyone same?

    (C2 loading logo can't display)

  • goddamn intelXDK

    every when i type in textbox it auto scroll my app

    Any idea i can fix it back normal or disable auto scroll(And get keyboard size?)

    UTUBE:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If your input string is "name(id):hello!" ?

    Not entirely sure I understand your question. :>

    I'm making a chatroom app

    here is i use mid&find

    mid(Function.Param(0),find(Function.Param(0),"(")+1,find(Function.Param(0),"):")-find(Function.Param(0),"(")+1)

    function.param(0)=username(userid):xxxxxx (eg:fongka2(fongka2):hello!)

  • fongka2

    Wow wonderful app.

    Want to see your app soon.

    If you are happy, I also happy.

    Thanks

    God let me become your friends, is my grace

  • C2 use Javascript syntax for its Regex. Delimiters are "^" to match the beginning of a string (or line for multiline) and "$" for the end.

    Be aware though that "^www\.(.*)\.com$" won't find a match in "http://www.google.com", since the string doesn't begin with "www".

    Regex works great with C2, but it lacks one important thing, there is no capture group support, so "www\.(.*\.com)" will actually match "www.google.com" and not only "google.com" in the string "http://www.google.com". It would be great to be able to do something like RegexMatchAt(0).Groups(0) or something...

    if = "name(id):hello!"

    may i ask,if i wanna to take "id"

    what should i do C2 please?

  • fongka2

    Added Phonegap InAppBrowser as you want.

    After finish your game/app,

    reply the post: Games/Apps with phonegap related plugins (+Crosswalk), then I'll add your game/app to the list

    Thanks

    Sure i will

    my App is just like "Skout"

    (for my client,he paid)

    You will see how a lot of your plugin save my life

  • Please add In-App browser As soon as possible...I really need this right now

  • Please make update for this plugin

    (like iScroll5)

  • iriane

    You just use Phonegap Capture plugin to capture camera picture into not cache (not erased).

    See doc/example_phonegapcapture_advanced.capx

    fongka2

    Added "copy and move file" features to Phonegap File plugin.

    Added "upload file to server" feature to Phonegap FileTransfer plugin.

    Thankyou

    you are my life saver

    I hope there are more Node webkit like function

    like AppFolder(where am i?) and ListFile etc...

  • >

    > but...can you please make a screen shot for me?

    > i know how to use Regex now but not in C2

    > this not working

    >

    RegexMatchCount("http://www.google.com http://www.yahoo.com http://www.scirra.com","www\.(.*)\.com","")
    >  [/code:yfxjdn64]
    >  
    > Thankyou sososooss much again
    > 
    
    I haven't used it in C2 yet, its on my todo list   
    
    Your using RegexMatchCount which is a count method, so with the example, it should return int 3.
    
    If that doesn't work can u try using "@www\.(.*)\.com@"? Not sure if C2 needs the delimiters, in this case i am using "@" just to keep it simple, i won't go too much into it
    
    Note: RegexMatchAt and RegexReplace would be more useful than RegexMatchCount
    
    With RegexMatchAt, it only would return one result so you should do each website one at a time. For example, a list of website urls in a loop
    
    One last thing i forgot in my last post is the brackets (). inside is what you want to capture. so if you had "www.google.com" with regex pattern "www\.(.*\.com)" RegexMatchAt will return "google.com"
    

    Its working

    i forgot add "Flag"

    but for now i only can add Flag*1

    I don't know how to use Flag>1

  • Regex aka Regular Expressions. Its a big topic. So I'll just give you a small example of the power of what it can do. Google should help if you want to know more

    You want to extract the website names from these website addresses, but you don't know what to expect but you know that there is a pattern of "www." and ".com"

    http://www.google.com http://www.yahoo.com http://www.scirra.com

    So you can use regex!

    with a pattern like "@www\.(.*)\.com@"

    @ is the delimiter, it tells you where the pattern starts and ends (you can add flags at the end for matching new lines, ignore case sensitivity etc), but this may only apply to php

    \. is escaping full stop

    . is match any character

    * is match 0 or more any characters

    You can test and learn with this tool: http://regexpal.com/

    In the top box, enter this:

    www\.(.*)\.com[/code:2qdnas4l]
    In the second box, enter this:
    [code:2qdnas4l]
    http://www.google.com
    http://www.yahoo.com
    http://www.scirra.com
    [/code:2qdnas4l]
    

    but...can you please make a screen shot for me?

    i know how to use Regex now but not in C2

    this not working

    RegexMatchCount("http://www.google.com http://www.yahoo.com http://www.scirra.com","www\.(.*)\.com","")
     [/code:2qdnas4l]
     <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes">  <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes">  <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes">
    Thankyou sososooss much again
  • Regex aka Regular Expressions. Its a big topic. So I'll just give you a small example of the power of what it can do. Google should help if you want to know more

    You want to extract the website names from these website addresses, but you don't know what to expect but you know that there is a pattern of "www." and ".com"

    http://www.google.com http://www.yahoo.com http://www.scirra.com

    So you can use regex!

    with a pattern like "@www\.(.*)\.com@"

    @ is the delimiter, it tells you where the pattern starts and ends (you can add flags at the end for matching new lines, ignore case sensitivity etc), but this may only apply to php

    \. is escaping full stop

    . is match any character

    * is match 0 or more any characters

    You can test and learn with this tool: http://regexpal.com/

    In the top box, enter this:

    www\.(.*)\.com[/code:2x5tn8ln]
    In the second box, enter this:
    [code:2x5tn8ln]
    http://www.google.com
    http://www.yahoo.com
    http://www.scirra.com
    [/code:2x5tn8ln]
    

    seems very complex but powerful

    thankyou for your demo!!!!!!