Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. Can you provide a brief example of your problem that can be viewed without downloading files?
  3. From the manual: u (PCRE_UTF8) This modifier turns on additional functionality of PCRE that is incompatible with Perl. Pattern and subject strings are treated as UTF-8. An invalid subject will cause the preg_* function to match nothing; an invalid pattern will trigger an error of level E_WARNING. Five and six octet UTF-8 sequences are regarded as invalid since PHP 5.3.4 (resp. PCRE 7.3 2007-08-28); formerly those have been regarded as valid UTF-8.
  4. Today
  5. Not sure what kind of sorcery is this, but it works now. Thank you!
  6. Add the u modifier to your pattern: /[^A-Za-z0-9!\"#%£&()=@\s]/u
  7. There's not enough code there to suggest much. What does the form look like? What data is sent in $_POST?
  8. <form role="search" id="searchform siq_searchForm" action="/search" method="get" class="radius-xl"> ??????? The console shows 4 errors and 1 warning, 1 error with undefined '$' and possible misplaced '}', unless you fix these it's unlikely any corrected code will work as it should.
  9. I tried it like this: jQuery('#search > form > .input-group > input[type="search"]').focus(); }); Still no luck.
  10. Original string returns 2 unicode blocks (straight from $_GET): �(194) �(164). Where ¤ is.
  11. Its the wrong way round, img selector top that becomes default (without !important), .logo below will make it have precedence over just img selector.
  12. In a webpage I have the following HTML code: <img class="logo" src=....>...</img> with the corresponding CSS: .logo { width: 12rem; .... } img { width: auto !important; ... } As you can see there are two somehow contradicting width values. Ok, since the width in IMG has an !important postfix it has a higher priority. And this is the problem. How can I disable the width value/key in IMG CSS specification and let the width value for .logo become active? How can I delete a CSS key? Since "auto" is already the default value overwriting it with the default value makes no sense. I have no access to the original html/CSS code but must apply it afterwards Thank you Peter
  13. Jayteez

    Panel Problems

    Thanks Ingolme Its all new to me so struggling to make sense of it all.
  14. Ingolme

    Panel Problems

    If window and document are not defined, either you're not running this code in a browser or you've overwritten the window and document objects. "$" not defined would usually be caused by not including jQuery, or by having loaded jQuery further down the document than your code.
  15. Hello, You can give multiple styles using semicolons(;) to a single element. Following is the example of the same as an inline CSS. <h1 style="color:blue; text-align:center"> Your Text </h1> In case you want to apply internal CSS then your code will be as follows: <h1 id="header1">Your Text</h1> #header1 { color:blue; text-align:center }
  16. I am using the W3 schools code to make a panel that slides open at the bottom of my webpage for a uni assignment due tonight and I keep getting error messages in the Javascript saying "ERROR document is not defined "window is not defined " "$ is not defined". can any one help with this?
  17. what i am asking is a inserting multiple values of looped table, above is is just inserting the last value of looped table
  18. What about the original string? Is the 194 part of a code point that only gets partially replaced?
  19. Yesterday
  20. 8OO

    Accordion Issue

    Got it! I'll make sure to do that then. Hopefully I won't have any more issues with any more things I would like to take from W3. Once again, thanks @justsomeguy and @dsonesuk, your help on this has been truly appreciated!
  21. The unicode block symbol returned value of 194 via ord() function, got any idea what might be the cause to create that unicode block? Source code of tester below, string too. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> #kool { width:800px; border:groove; margin:0 auto; padding:25px; } .mid { margin:0 auto; max-width:800px; text-align:centeR; margin-top:10px; } #preg_input { width:300px; } </style> </head> <body> <?php /* Test preg_replace function */ // #%&()=@£\$€\[\]_\-,.:? $basic = "A-Za-Z0-9"; $preg_pattern = "/[^A-Za-z0-9!\"#%£&()=@\s]/"; $func_preg_replace = preg_replace($preg_pattern,"",$_GET['preg']); if (isset($_GET['preg'])) { echo "<div id='kool'>"; echo "<b>Original string: </b> " . $_GET['preg']; echo "<hr>"; echo "<b>Preg pattern: </b> " . $preg_pattern; echo "<hr>"; echo "<b>Result: </b> " . $func_preg_replace; echo "<hr>"; echo "<b>Rawurl: </b> " . rawurlencode($_GET['preg']); echo "<hr>"; echo "<b>Ord: </b> "; for ($i=0;$i<strlen($func_preg_replace);$i++) { echo $func_preg_replace[$i] . "(" . ord($func_preg_replace[$i]) . ") "; } echo "</div>"; } ?> <div class="mid"> <form method="get" action="preg_test.php"> <input type="text" id="preg_input" name="preg" <?php if (isset($_GET['preg'])) { echo " value='" . $_GET['preg'] . "'"; } ?>> <input type="submit"> </form> </div> </body> </html> And the string without What is love 0-9, Specialcharacters: !"#¤%&/()=? Does it reproduce for you guys? ---- Also tried to UTF-8 encode string via php, the preg_replace string, 2 new unicode blocks appeared with �(195) �(130). $func_preg_replace = utf8_encode ($func_preg_replace);
  22. Thank you Funce ! I will study this until I understand every 'jot and tittle' . You moved me to start a Folder for w3schools-Examples . http://vmars.us/w3schools-Examples/Draggable-Div-Elements-w3Schools-FUNCE.html Thanks again
  23. <form role="search" id="searchform siq_searchForm" action="/search" method="get" class="radius-xl"><div class="input-group"> <input id="searchbar" value="" name="s" type="search" placeholder="Type to search" autofocus="autofocus" /> <span class="input-group-btn"><button type="button" class="search-btn"><i class="fa fa-search"></i></button></span></div> </form> jQuery('#search > form > input[type="search"]').focus(); }); input with type="search" does not directly follow form elelment , a div with "input-group" class is before it, so it is first direct child it is not input type search so focus is not applied. '>' is first direct child, not including any children of that child.
  24. You can use a case expression: https://docs.oracle.com/cd/B19306_01/server.102/b14200/expressions004.htm SELECT CASE bool_field WHEN 0 THEN 'No' ELSE 'Yes' END ...
  25. Thanks for the replies! Well, autofocus="autofocus" attribute is working in Chrome but not FF or Edge. I found some info on others having the same issue, but am having a hard time getting any solution to work for me. Ugh!
  26. I have site http://www.kaprifol.com beeing edited for several years with SitooWeb a sort of editing and publishing tool. Now the project in SitooWeb is corrupt but The site is still working but I feel the need for cleaning up html pages from irrelevant coding. Enclosed please find a sample file Heim.html renamed to Heim.html.txt Appreciate advise or best availability of a tool helping me out in this matter Heim.html.txt
  27. I'm pretty new to SQL so forgive me if this is extremely easy--I couldn't find an answer by searching the forum or Google. I have a binary variable that I want to recode to make it more user-friendly to my client. The column is essentially saying, "Did the customer make a purchase?" and the variables are either 0 for no or 1 for yes. What I want to do is write into SQL that 0 displays as No and 1 displays as Yes. How would I do this? I'm using Oracle SQL Developer.
  1. Load more activity
  • Create New...