Web Languages and Standards

39K

Solutions

30K

Contributors

Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applications, electronic businesses, and social network services using a wide variety of languages and standards, including the familiar HTML, JavaScript and jQuery, ASP and ASP.NET, PHP, ColdFusion, CSS, PHP, Flex and Flash, but also the implementation of a broad list of standards including XML, WSDL, SSDL, VoiceXML and many more.

Share tech news, updates, or what's on your mind.

Sign up to Post

I'm using Memberpress on my Wordpress site. Both are the most recent versions, and both seem to be working well.

I need to have a fixed renewal date (Month and Year), based on the date on which the member originally purchased their subscription. Our subscription terms are always 1 year.

For example, if I join the site on Jan 1, 2020, then my first renewal date would be Jan 1, 2021, and my second would be Jan 1, 2022, and my third Jan 1, 2023, and so on.

If I renew EARLY on Dec 1, 2020, my new subscription would start on Jan 1, 2021 and run for one year to Jan 1, 2022.

If I renew LATE on Feb 1, 2021 (AFTER my subscription has expired), my new subscription would back date to Jan 1, 2021 and run to Jan 1, 2022.

So no matter when my membership is renewed, it always starts on the Month and Day of my original subscription in the year immediately following my most recent active subscription (and that sounds confusing, but hopefully you get the gist from my examples above :) )
0
I'm using a Child theme in my Wordpress site, and I want to override a line in my parent theme's Functions.php file:

If( ! current_theme_supports( 'deactivate_tribe_events_calendar' ) )
{
    // Below was removed to make single events look better:
	require_once( 'config-events-calendar/config.php' );			//compatibility with the Events Calendar plugin
}

Open in new window

I want to comment out the "require_once" line. I tried adding that to my child's Functions.php line:

If( ! current_theme_supports( 'deactivate_tribe_events_calendar' ) )
{
    // Below was removed to make single events look better:
    //	require_once( 'config-events-calendar/config.php' );			//compatibility with the Events Calendar plugin
}

Open in new window

But when the site loaded it ignored that and obviously used the line from the parent theme.

How can I do that without having to worry about updating every time my theme updates?
0
I'm looking for Wordpress plugins to replace some antiquated membership software an organization I work with is using. Essentially, we need the following:

Paid Memberships, with the ability to handle different types (like Individual, Family, Corporate, etc)
Events, with the ability to register for events
Member forum

I'm looking into Events Calendar Pro with EventBrite Tickets for the Events, and MemberPress for the membership management.

Anyone used those, or have better suggestions? The organization doesn't mind spending a little money to get what they're after.
0
Hi, I used Angular 1.6 in the old project and now moved to Angular 8 am looking for an equivalent event that triggers timeout . In the old project I had a timeout.js file where it triggers the below code

$rootScope.$broadcast('session-expiring', { seconds: expiringInSeconds });

and this timeout is consumed in the header.js file with below code

  $rootScope.$on('session-expiring', function (event, data) {
            vm.Counter = data.seconds;          
            vm.sessionExpiring = true;
        });

How do I use the similar code to trigger timer event from one file to another in Angular 8? Please help
0
I am looking of checking how to check if an element specifically input type text is visible in dom in js

Aside from checking if element is not null, or undefined

I found the following script

<script type="text/javascript">
        function isElementVisible(element) {
            if (element.offsetWidth ||  
               element.offsetHeight ||  
               element.getClientRects().length)
                return true;
            else
                return false;
        }
     
        function checkVisibility() {
            visibleObject =  
            document.querySelector(".visible");
             
            invisibleObject =  
            document.querySelector(".invisible");
     
            document.querySelector(".outputVisible").textContent
                    = isElementVisible(visibleObject);
                     
            document.querySelector(".outputInvisible").textContent
                        = isElementVisible(invisibleObject);
        }
    </script>


But is this the most efficient way to do it? Are there any other properties i can combine like

check if not null or not undefined, style.display is visible, etc


The reason I want to do this is because when the input text is available (visible in this case), I will show a clone input text to re-enter the value of the first, example is like a "reenter password "

if first input text is not visible, dont show a confirmation input…
0
Where can I find a standard or specification that identifies the minimum requirement to create a DB schema?

I would like to validate that the minimum requirement for a schema or dataset could be:

1) Element name (two or more)
2) Element type
3) Element definition
4) Cardinality being  optional parameter
0
want to develop a website with database , search , locking facilitates (view able only by members) etc
To make like this website and to maintain , how many employees required : website developer ? on which platform or language
and web graphic designer

to make like this startup , what is the best plan
0
I have started to use a popup on our website but do not know how I can format the message (font, bgcolor, position etc). Do you have any advice please. I use Dreamweaver CS6
0
Is there an easy way to set up shortcuts using your own domain (but not break or involve the existing website)?

Say the domain is mydomain.com.  People currently can type mydomain.com or www.mydomain.com and it goes to the website.

I'd like to be able to set up shortcuts / redirects so  something like time.mydomain.com would redirect to a specific website (in this case, maybe www.time.gov).

This is for someone else.  A long time ago I found a perl script that I put on my website, called it index.cgi, and it had this info:

#!/usr/local/bin/perl       
$mainpage       = "index.html";
%domains = (      
'www.mydomain.com'          =>  'https://www.mydomain.com',      
      
#enter shortcuts here      
'time.mydomain.com'         =>  'http://www.time.gov',


#end of shortucts

'www.mydomain.com'          =>  'http://www.mydomain.com/index.html'      
      
);      
$server = lc($ENV{'HTTP_HOST'});if ($ENV{'HTTP_HOST'} =~ /(\d+)\.(\d+)\.(\d+)\.(\d+)/){$t='/'}else{if ($server !~ /^www./){$server = '' . $server;}}@domains = keys(%domains);foreach $domain(@domains){if ($domain eq $server){print "Location: $domains{$server}\n\n";$match="yes";last;exit}}unless($match){print "Location:  https://www.mydomain.com/index.html\n\n";exit}exit;      
      
 
That does what I'm asking about - enter loads of shortcuts and you can enter that subdomain and it takes you to the appropriate webpage.

Are there other ways via the DNS zone record or something else?  

Are there simpler ways to do this redirect of …
0
I need a list of derogatory epithets. An epithet is an adjective expressing a quality or attribute of the person or thing mentioned.
What technology or method would you use to find a list? The list is basically like a dictionary, but a dictionary of derogatory epithets, not all adjectives. I need the dictionary or some expert advice to create it. In general, it's a subset of English. Ideally, it would be for use in web technologies.
0
I have a jQuery Mobile listview (Cordova) which I populate like this:

      /**
       * @description populates the listview with all the clients
       */
      this.populateListviewClients = function() {
        var markupHTML = [];
        for (x = 0; x < app.allClients.length; x++) {
          //create markup
          var markup = '<li><a href="#" class="modalCustomer" id="' + app.allClients[x].id + '">' + app.allClients[x].name + '</a></li>';
          $("#listviewClients").append(markup);      
        }

        $("ul#listviewClients").listview("refresh");

       
      };

Open in new window


and the HTML is this:

            <form class="ui-filterable">
                <input id="filterable-input" data-type="search" placeholder="Search clients...">
              </form>
              <div data-theme="b" data-content-theme="a"></div>
              <ul id="listviewClients" data-role="listview" data-filter="true" data-inset="true"
                data-input="#filterable-input">
              </ul>

Open in new window


Everything loads nicely, but I cannot get the callback to work - even though I assigned each <a href> a generic class name.
I would like to get the callback because I would like to know which link the user clicked.

This is the callback:

  // Update DOM on a Received Event
  receivedEvent: function (id) {
    $("#allWidgets").on("click", function (e) {
      $(':mobile-pagecontainer').pagecontainer('change', '#addItems', {
        transition: "slidefade"
      });
    });


    $(".modalCustomer").on('click', function(e) {
      alert("YES");
      goToShowAllClients();
    });

Open in new window


I checked with my debugger.. the browser does not enter the <a href> callback.

What is missing in my code - or my logic?

Thanks

Massimo
0
I am trying to integrate a carousel that can be used / controlled with swipe gestures: Swiper.

This is how the page structure looks like:

<!-- Swiper -->
  <div class="swiper-container">
    <div class="swiper-wrapper">
      <div class="swiper-slide">Slide 1</div>
      <div class="swiper-slide">Slide 2</div>
      <div class="swiper-slide">Slide 3</div>
      <div class="swiper-slide">Slide 4</div>
      <div class="swiper-slide">Slide 5</div>
      <div class="swiper-slide">Slide 6</div>
      <div class="swiper-slide">Slide 7</div>
      <div class="swiper-slide">Slide 8</div>
      <div class="swiper-slide">Slide 9</div>
      <div class="swiper-slide">Slide 10</div>
    </div>
    <!-- Add Pagination -->
    <div class="swiper-pagination"></div>
  </div>

  <!-- Swiper JS -->
  <script src="../dist/js/swiper.min.js"></script>

  <!-- Initialize Swiper -->
  <script>
    var swiper = new Swiper('.swiper-container', {
      pagination: {
        el: '.swiper-pagination',
        dynamicBullets: true,
      },
    });
  </script>

Open in new window


As I am using jQuery to retrieve the data from the server. Once the document has loaded, I collect all the items from the server using a REST API call, I generate the <img> tags with the appropriate src (location of the picture) and then I put them all into an array called allWidgetPictures[].

I use the following function to update the DOM:

      /**
       *@description Retrieves all picture URL for the carousel function
       */
      this.retrieveAllWidgetPictures = function() {
        for (i = 0; i < app.allWidgetPictures.length; i++) {
          console.log(app.allWidgetPictures[i] );
          $("#swiper-wrapper").after(app.allWidgetPictures[i] );
          
        }

      };

Open in new window


Is there anything else that I need to do in order to update the page, as the <img> tags do not appear after the <div swiper wrapper>.
The array is properly populated:

Annotation-2019-05-29-013803.png
Am I missing anything or why is the page not updated with all the <divs>?
0
I've got a weird issue where a rowspan which I've set is being changed by the browsers.  I set rowspan="3" and browser renders rowspan="4" ( which I can see when I inspect the browser code).

I'm trying to achieve a 6x6 table , where the second row (under the heading row)  and 6th row are colspan="6" (full width), and the left cell of rows 3-5 is a single row with rowspan="3" , but for some reason the browser keeps bumping it up to "4" ( and causing the bottom row to not cover the full width)

This is running inside the DNN Action Form module html template.
 here's a nippet as an example.

Thanks,

Tom

<table class="table table-bordered" id="equipTable">
 <thead>
  <tr>
   <th>Item</th>
   <th>Product Image</th>
   <th>Manufacturer</th>
   <th>Name, Catalog or Model #</th>
   <th>Description &amp; Comments</th>
   <th>Vendor</th>
  </tr>
 </thead>
 <tbody id="chairs-tbody" style="max-width: 769px;">
  <tr class="ergo-headingtr">
   <th class="singlerow" colspan="6">Chairs</th>
  </tr>
  <tr>
   <td class="checkboxColumn" id="chairsColumn" rowspan="3" style="padding:0px!important; vertical-align:top; ">[Fields:Chairs]</td>
   <td><img alt="" class="ergo-img" src="/Portals/0/County/GSD/Ergo_Form/image018.png" /></td>
   <td>Office Master</td>
   <td>YS 84</td>
   <td>Medium Mesh back, multiple adjustments, armrests optional</td>
   <td>Palace Arts</td>
  </tr>
  <tr>
   <td class="bluemobilebg"><img alt="" class="ergo-img" …
0
This question is an offshoot of:
https://www.experts-exchange.com/questions/29145624/Chrome-significantly-slower-than-Edge-when-uploading.html

The thread drifted off-topic, as to ways to possibly improve Chrome's speed, so I closed that question, and am importing the follow-ups here.

Expert Bbao commeted:
>>I know you have tried disabling all Chrome extensions, but have you tried resetting Chrome to all default settings and removing all non-Google extensions?<<

When I asked:

1. How would I reset Chrome to default settings?
2. Please clarify "non-Google" extensions?

John responded:
>>To uninstall Extensions, please see below

https://support.google.com/chromebook/answer/2589434?hl=en

If you wish to entirely reset to defaults without reinstalling Chrome, use this article below

https://support.google.com/chrome/answer/3296214?hl=en
<<

My response:
I'd rather not uninstall extensions.  (Just disable them). And your link discusses Chrome extensions, while BBao referenced disabling non-Google extensions. I'm not even sure what is meant by non-Google extensions. Could someone pleased clarify?

Thanks,
Steve
0
Our wiki is run off of this platform... Which i am totally new on this so bare with me if this is a silly question. But I hope to find someone who can tell me how to fix it or something that i can run to fix it. any suggestion would be greatly appreciated

We use a wiki in our office for a knowledgebase but as of recently it has stopped working and the main person who would work on this is no longer with my company. We dont see any info about it in notes or records anywhere.

HTTP Status 500 - java.lang.NullPointerException
type Exception report

message java.lang.NullPointerException

description The server encountered an internal error that prevented it from fulfilling this request.

exception

com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
      com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)
      com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
      com.atlassian.confluence.setup.ConfluenceEncodingFilter.getGlobalSettings(ConfluenceEncodingFilter.java:47)
      com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncodingInternal(ConfluenceEncodingFilter.java:37)
      com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncoding(ConfluenceEncodingFilter.java:29)
      com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:38)
      com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
      …
0
Does anybody recognize this behaviour?

With the following HTML, I open a new page (the same one) supplying a non-ascii form field parameter with value "&#1000;" (a backword "S", like)
The page itself is marked as "charset=iso-8859-1" so I expect that charset to be used for the request.

With "Form1" the request to the web server contains exactly "&#1000;" (however CGI-quoted: "Field1=%26%231000%3B")
With "Form2" the  request however contains the parameter in UTF-8 format (CGI-quoted: "Field2=%CF%A8")
What would be the cause of this difference?

Do note that in IE11 this behaviour is consistent , but in Chrome (ver 73)  I get the Form2 UTF-8 coding only when the Form2 window does not exist to begin with.
Keeping the opened Form2 window on screen, and then re-submitting from the main page (re-using the already opened Form2 window), then Chrome uses "&#1000;" coding also for Form2.

If I change the meta charset tags to "utf-8", then I (of course) always get UTF-8 coding for both Form1 and Form2.

So... why is UTF-8 used in the request for Form2, even though I state "iso-8859-1" as charset (my http server never specifies a charset in the http headers, so the "meta charset" info is the only one available)
Any ideas?

The file is to be named "test.htm"
<html>
<head>
<meta http-equiv="Content-Type" content="iso-8859-1">
<meta charset="iso-8859-1">
<script>
function submit1()
{
  document.Form1.submit();
}
function submit2()
{
  var win = window.open('', 

Open in new window

0
I am facing Problem when converting xml file to soap message for making a call to web service attaching my code and request  

following is the error

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:wsdl="http://xmlns.qtel.com.qa/B2B/WSDL" 
xmlns:par="http://www.tibco.com/namespaces/bc/2002/04/partyinfo.xsd">
   
   <soapenv:Header>
      <wsdl:TxInfo>
         <wsdl:Created>2018-06-10T11:07:20.953+03:00</wsdl:Created>
         <wsdl:Source>POS101</wsdl:Source>
         <wsdl:Lang>EN</wsdl:Lang>
      </wsdl:TxInfo>
      <par:PartyInfo>
         <from>
            <name>RQ</name>
         </from>
         <to>
            <name>Qtel</name>
         </to>
         <operationID>Qtel.Gateway/1.0/CheckLineStatus</operationID>
         <operationType>syncRequestResponse</operationType>
         <transactionID>RQJAV270220190000000010</transactionID>
      </par:PartyInfo>
   </soapenv:Header>


   <soapenv:Body>
      <wsdl:CheckLineStatusRequest>
         <wsdl:Request>RQ</wsdl:Request>
      </wsdl:CheckLineStatusRequest>
   </soapenv:Body>
</soapenv:Envelope>
ContentDescription >> null
Soap Header        >> [soapenv:Header: null]
Soap Part          >> com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl@37f8bb67
SOAP Body          >> [soapenv:Body: null]

Open in new window

SoapEnv.java
sample_rq.xml
0
I enter tradeview in my Google Chrome browser on www.google.com and get this website in the search results: https://www.tradingview.com/

When I click on it however, I automatically gets redirected to the national version, https://se.tradingview.com/ 
Even though I have VPN on using an American server.

Is there any way to get to the American version instead, the one displayed in the search results?
0
I'm grasping data from a web site via Excel and VBA.
It is an intranet site, so, unfortunately, it is not surfable from outside the firm.

Now, I'm in a deadlock dealing with confirmation alerts.

So, my basic question is:
How can I automatically click OK to confirm the two messages?


As you can see above, I've to click on determined rows of a report: clicking on it, in the export section of the site I will be able to download .xls files conteining any single record.

The problem is, when the macro reaches the line
 
ele.Click

Open in new window

I've to deal with two consecutive popups:
1) the first only needs confirmation (Would you like to export the records (.xls)?);
2) about the second (Request number: '" + nNum.toString() + "'.\n\n Download from Export section.");, I have to confirm it and capture in some way the number of request to refer to it when I've to download the files in the export section (I can use a sheet, i.e. "Sheet2", to store the number of requests).


Dim elements As Object
    Set elements = HTMLdoc.getElementsByClassName("Row")
Dim ele As Object
    For Each ele In elements
        
        If ele.innerText = "AZ25" Or "AZ2Z" Or "AZ28" Or "AZA0" Or _
            "AZA1" Or "AZ49" Or "AZ51" Or "AZ58" Or "ZA7Z" Or _
            "AZ27" Or "AZ50" Or "AZ59" Or "AZ52" Then
            ele.Click
            Exit For
        End If
    Next ele

Open in new window




As follows the functions in the HTML code:

function 

Open in new window

0
Looking to write a function to query an ex4 object for a value. My problem is that when I try to extract the value and the field has not been populated, JavaScript throws an error.
I can write a try/catch statement to trap the errors, but when I try to extract many values the code starts to look clumsy.

Is there some way to pass the ex4 object to a function w/o the function throwing an error when passing a ex4.location that has not been populated ?

Example:
var msh7 = msg['MSH']['MSH.7']['MSH.7.1'].toString();    // <- this throws an error if MSH|07 has not been populated. (they didn't send a date)

Why can't I do something like this ?:
var msh7 = getValue(msg['MSH']['MSH.7']['MSH.7.1']);    //  <- but this also throws an error if the location is not populated !?

function getValue(obj){
   try{
      return obj.toString();
   }catch(e){ return '';}   // just return an empty str.
}
0
Hi,

I know I have a basic question, I'm trying to follow this tutorial:
https://www.youtube.com/watch?v=71H9-MRXYOE

but I faced this issue:
Firebase: Connect to Firebase failed. Please check your internet connection and try again. If errors persist, you can connect manually at https://console.firebase.google.com

I do not want to connect manually, any help, please.
0
Is there a specific standard that says a "Create New Record" button should not be on the Edit screen or is that just a common sense thing?  The application is not one in which users are required to create hundreds of records a day, it is more like maybe a few at a time or maybe only a few a week.

A business owner requested this but I, as a developer, felt the request should be denied due to violating Coding Standards and Best Practices but the Project Manager thinks I should do it because they feel they should never say "No" to a request.

I've asked other developers on my team and they agree with me but our Team Lead wants a specific Standard to site to prove my point before saying 'no' to the request.
0
An international website that runs with Multilanguage interfaces except Arabic. Digital marketing is handled by a third-party. If we wish to create the Arabic site as completely separate website hosted somewhere else, what are the pros and cons in terms of digital marketing?
0
redis used as cache data in at some point if we want to persist to SQL/No SQL is there a straight forward way?
0
I am just looking for a simple, light jquery plugin. I want to load a popup box/window on my home page that displays this months specials/discounts. I don't want it to be intrusive, so I want to be able to control the placement. Ideally it will pop up from the bottom right portion of the screen. I also want to be able to choose the look and styling.

I cannot even believe the trouble I had with trying to google what I need. All I could find were modals or tooltips or onclick or windows that were fixed in the center of the screen. I tried several different wording on searches and went several pages deep in results, and cannot seem to find something that fulfills those requirements.

I figure someone on here might know of something off hand that they could recommend. Thanks!
0

Web Languages and Standards

39K

Solutions

30K

Contributors

Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applications, electronic businesses, and social network services using a wide variety of languages and standards, including the familiar HTML, JavaScript and jQuery, ASP and ASP.NET, PHP, ColdFusion, CSS, PHP, Flex and Flash, but also the implementation of a broad list of standards including XML, WSDL, SSDL, VoiceXML and many more.