Jump to content

IwnfuM

Members
  • Posts

    58
  • Joined

  • Last visited

    Never

Posts posted by IwnfuM

  1. hello,

     

    I have ajax search function which call to the function with the element 'onkeyup' ,

    Now , the problem that if someone want to start to search something and he start to write the word he was thinking about ,

    while he write the word the search can be actived few time and for nothing.

     

    what i'm trying to say , if someone want to search for 'program' so the search will search 6 times , which I want to prevent..

    the question is how ?

     

    I was thinking about , to create a function that waits 2 seconds after the last char entered

     

    maybe can someone help me?

    regards ,Mor.

  2. Hey all.

     

    few questions.

    1.is there editor that is free to use and it's completing the syntax? like if i start tag like that '<a' so it will offer me a closing tag for it. is there a free editor like that the support that?

     

    2.while I'm using notepad++ it does not know that I'm scripting in php so it will coloring things if it need to do.

     

    3.how i can coloring things?

     

    that's it , thanks for helping.

  3. hey ,

    I want to make a div following you , I'm not meaning the 'position:fixed' ,

    I want the div to act like that :

    when i scroll down the page , and i can't see the div , the divs follow you with a little delay , so it will come down after 1 , 2 ,3 seconds.

    how can I do that?

    thanks.

  4. hi , here is what I want to do.

     

    i have div wich  hold text , now I want this div to change hes size by how much text he hold.

    for example :

     

    If the div hold 50 words so it's div size will be 50px on 50px wich is max size and if it hold 10 words it's size will be 10px on 10px.

     

    Something like the text-align:justify element but with max value that he can widen.

    thanks for helping , Ixcese.

  5. hello , I'm starting to use mysqli and i have few questions.

     

    is there a guide for mysqli?

     

    and how do i use this functions at mysqli ?

    mysql_num_rows

    mysql_query

    mysql_fetch_assoc

    mysql_fetch_array

     

    thanks , Mor.

  6. Again it doing some problems.

    I took this string :

    $string = '<td class="alt3" style="border-top:#57a6e9 1px solid; padding: 8px 8px 8px 8px" align="center"><iframe id=a746194 ame=a7461948 
    src=http://site.com/www/delivery/afr.php?zoneid=239 frameborder=0 scrolling=no width=180 height=150><a 
    href=http:pera.co.il/www/delivery/ck.php?n=ab67277b target=_blank><img src=http://site.com/www/delivery/avw.php?zoneid=239&n=ab67277b border=0 alt= /></a></iframe></td>';

     

    and regex it , it remove everything until the <a href...

    and it left in the string the :

    <a 
    href=http:pera.co.il/www/delivery/ck.php?n=ab67277b target=_blank><img src=http://site.com/www/delivery/avw.php?zoneid=239&n=ab67277b border=0 alt= /></a></iframe></td>

    part.

     

    this regex is almost perfect , only little fix needed I think.

     

    and thanks , it's great.

    - Mor.

  7. There is a mistake , I took this string to check the regexp 

    $string = '<td class="alt3" style="border-top:#57a6e9 1px solid; padding: 8px 8px 8px 8px" align="center"><iframe id=a746194 ame=a7461948 
    src=http://site.com/www/delivery/afr.php?zoneid=239 frameborder=0 scrolling=no width=180 height=150><a 
    href=http:pera.co.il/www/delivery/ck.php?n=ab67277b target=_blank><img src=http://site.com/www/delivery/avw.php?zoneid=239&n=ab67277b border=0 alt= /></a></iframe></td>';
    

     

    and it takes all the code with the iframe , it eat all of it , not only the iframe tags.

     

    I just tested it few times and there is an other problem.

    if this code given by the file_get_contents

    code1
    <iframe id and shit> link </iframe>
    code2
    <iframe id and shit > link </iframe>
    code3
    

    it will take evrything until the last iframe close tage.

    for example it will left only the code1 and code3.

     

    hope it was clear.

    thanks , Mor.

  8. hello.

    There is a project i take and i can't handle it.

    the project goes like this.

     

    I get site code by file_get_contents function into variable.

    Than I need to find the iframe and delete it from the variable.

    for example the code i getting from the file_get_contents is looking like this :

    <html>
    <body>
    
    This is site !
    
    <iframe> LINK </iframe>
    
    </body>
    </html>
    

     

    now , simply i can track the iframe and delete it just like this.

    $str = preg_replace('/\<{1}iframe[a-zA-Z0-9=+\/\'.]/' , '' , $str);/** this is not the right regex i use , the full one contain all chars except < .**/
    

    So I can find the < symbol and than delete all iframe section.

    the problem come when I get code like this.

    <html>
    <body>
    
    This is site !
    
    <iframe> <iframe>LINK </iframe></iframe>
    
    </body>
    </html>
    

    So , from here I can't handle it since I don't know where the iframe ends since there is many < symbols.

     

    Second question is maybe with regex i can handle something like this?

     

    looking for start , than get everything between and stop at the end.

    $reg ='/^\<{1}iframe .+\<{1}iframe\>{1}/i';
    

    Is that possible to do something like this with regex?

     

    any suggestions how to make it done?

    hope i was clear.

    thanks , Mor.

  9. hi.

    when i get into some function manual and there is a note says.

    This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.
    .

    is that meaning that after 5.3.0 version this function will not be supported?

    thanks , Mor.

  10. Hi , how i can search the char - \ - with regex? i have a little problem with find it in some text with preg_match.

    Ive tried something like that .

    $regex = '/\\{1}/';
    

    Simply it was about to search the char /.

    Thanks , Mor.

  11. hello , I'm in middle of building my site and that's why i can't learn ajax from 0 right now , so i hope you don't care.

    anyway , I'm trying to find a piece of ajax code that will active a function in php.

    if this code can be unlimited used , i mean only change the php function name it will be really cool.

    thanks , Mor.

  12. hello , i want to do something like that but im not really sure how to make it done.

    
    mysql_query("INSERT INTO `table` (`field1`) WHERE `field2`='".$variable1."' VALUES ('".$variable2."')");
    
    

    in short , i want to insert something to 1 field only if in the other field equals to some variable.

    thanks , Mor.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.