Web Development

75K

Solutions

49K

Contributors

Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.

I'm trying to figure out why my code is not working properly?  I never get to the function _dtmSetProdType (#2 console.log) from my attempt to add the listener? You can test by going to https://apply.essexcredit.com/#blockdtm (***ensure you use the #blockdtm in the URL) and on the first page, run the code in dev. console and select the  product selectHere is my test code:
function _dtmSetProdType() {
    console.log("2 #### ====> IN  _dtmSetProdType");
    var selProdOption = event.target.value;
    console.log("3 #### ======> selProdOption : " + selProdOption);
};

function _dtmCheckProductSelect() {
    var prodSel = document.evaluate("//form/div/div/div/div/div/div/div/div/div/div/div/div/div/div/div[@class='option-selected']", document, null, XPathResult.ANY_TYPE, null).iterateNext();
    if (prodSel) {
        console.log("1 #### ====> calling  _dtmSetProdType");
        prodSel.addEventListener('change', _dtmSetProdType);
    } else {
        setTimeout(_dtmCheckProductSelect, 1000);
    }
};

_dtmCheckProductSelect();

Open in new window

What I want is each time a selection is made, to grab that value of the select. Thanks!
0
If you go to https://apply.essexcredit.com/ on the first page, you'll see a select "What type of loan are you interested in? ". I need to set an event listener on this element and grab the value being selected.(RV or Boat).  Javascript only. Please see image

Screenshot of select
*** I can't touch/change the code on the page. I have to use a TMS to inject my code. ***

Thanks!
0
How would I detect if this element is on the current page and visible? Using JavaScript and NOT jQuery.

<p><strong>Before you Start</strong></p>

Open in new window


I'm fairly sure this function will suffice with detecting if visible.

    function _dtmIsVis(elem) {
        if (elem === null) {
            return false;
        }
        return !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length);
    };

Open in new window


Thanks!
0
Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘http://themagnolia.com’) does not match the recipient window’s origin (‘https://www.themagnolia.com’).  spam-block.htm



This client recently upgraded to FTP-SSL protocol. I have reviewed the files involved and I don't see where http://themagnolia.com is referenced.

Does anyone know how to isolate this error? I've attached the files that seem to be involved.
reCaptcha-test-3.htm
reCaptcha-test-3.php
spam-block.htm
sendForm.php
0
Hi Experts,

We have a report based on Nurses table.

Then we have a table named Skilled_nursing_Visit_Notes (Nurse_Table.Nurse_UserName = Skilled_Nursing_Visit_note.Nurse_User_ID_num_SNV) where nurses enter visits and notes for patients.

Under each visit note there is a column named Browser which auto saves the browser version used for that entry.
We also have a calculated field (formula) in the Skilled_nursing_Visit_Notes  table named OutdatedBrowser set as follows.
case when ([@field:Browser] like 'Chrome%' and [@field:Browser]>='Chrome 78.0') or ([@field:Browser] like 'Safari%' and CAST((Right([@field:Browser],(Len([@field:Browser])-Charindex(' ', [@field:Browser], 0)))) as FLOAT) >= 13) or ([@field:Browser] like 'Firefox%' and [@field:Browser]>='Firefox 71.0') or ([@field:Browser] like 'InternetExplorer%' and [@field:Browser]>='InternetExplorer 11.0') then 'No' Else 'Yes' end

Open in new window


Now we would like to add to the nurses report the following.

1- Ability to filter for nurses with Outdated browser (According to latest entry in Skilled_Nursing_Visit_Notes table determined by Date_Signed field which is a timestamp field).
2- View on the report the browser field.

Thanks
0
Hi,
I'm trying to figure out how to change the current code which originally only took a single key ("offerType") and used the "addToLookupTable" function to identify and add the associated value into the existing sTags1 array. What I want to do now is have the code check my values passed via the "addToLookupTable" function and if all the values in the  "addToLookupTable"  call exist in the current values being passed in the  _dtmPixelMapping function, then it is added to the sTags1 array. Please keep in mind the amount of arguments in the "addToLookupTable" function call can vary from 1-4  key values. All the keys, in the "addToLookupTable" function call,  regardless of amount, must match in order to be added the the sTags1 array.

*** EXAMPLES***
_dtmPixelMapping("fund now", "approved", "product A", "5.00") pushes  "value1"  & "value2" to sTags1 array  -- Reason:  line with value1 has all the values & line with value2 ("fund now", "", "product A") has all of its values (2 in this case) matching.
 
_dtmPixelMapping("fund now", "review", "product C", "25.00") pushes  "value7"  & "value10" to sTags1 array  -- Reason line with value7  has all its values & line with value10  has all its values (only 1 in this case)  matching ("product C")


var sTags1 = [
    '//mj.test.com/1',
    '//mj.test.com/2',
    '//mj.test.com/3'
]

function _dtmInsertUpdatedPixels(decision, currOffers) {
    var fundingType = 

Open in new window

0
After running the Google PageSpeed Insights several times, one of the first things I get "dinged" on is "Serve images in next-gen formats".

I read the directions: I took the image into Photoshop and saved as JPEG 2000 but when I replace that image in my HTML, no images show. This is true for both my local machine and in Production.

Aside from:

  1. Changing the File format from .jpg to .jpf (in Photoshop)
  2. Replacing the HTML (e.g. image2.jpf)

Is there something I am missing?

Thanks for your help.

...
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 want to have 2 more separate lines between word "Logon Page" and user name below. How to adjust it? How to also center "Logon Page" on the line?

        <div class="container" style="background:url('./pict/ID-10028343.jpg');border: 0px solid green;background-color: C9D3DD;background-size: cover;background-repeat: no-repeat;width:1200px;height:800px;font-family:Verdana;font-size:14px;">
          <form action="page.php" method="POST">
          <div class="row" style="border: 0px solid red;">
                <div class="col" style="border: 0px solid blue;"></div>
                <div class="col"></div>
                <div class="col text-center" style="border: 0px solid orange;foreground-color: 848484;font-size:18px;"><b>Logon Page</b></div>
                <div class="col"></div>

                <div class="col" style="border: 0px solid blue;"></div>
                <div class="col text-right" style="border: 0px solid orange;"><b>Username:</b></div>
                <div class="col" style="border: 0px solid yellow;"><input type="text" name="username" style="background-color: white;" /></div>
                <div class="col"></div>

                <div class="w-100"></div>

                <div class="col" style="border: 0px solid blue;"></div>
                <div class="col text-right" style="border: 0px solid orange;"><b>Password:</b></div>
                <div class="col" style="border: 0px solid yellow;"><input type="password" name="password" 

Open in new window

0
I working in PHP, and have an array returned that looks something like this:

Event {
  ID
  URL
  Name
  etc etc
  Details {
    Description
    Location
    TotalPaid
    etc etc
    }
    Organizer{
      Name
      Address
      Etc
      }
}

Open in new window


I can get the top level data items, but how do I get data from the Details and Organizers elements? I've tried the following:

foreach($eventlist as $event) {
    echo '<br/>';
    echo sprintf("#%d - -%s -  %s - %s - %s", $event['Id'], $event['Url'], $event['Name'], $event['StartDate'], $event['Location']);
    $details = $event["Details"];    
}

Open in new window


The sprintf line works fine, but the $details line throws the error "Undefined Index: Details"

The API I'm using is from Wild Apricot, the Event model: https://app.swaggerhub.com/apis-docs/WildApricot/wild-apricot_public_api/7.7.0#/Event
0
Hello, I've found a behaviour of the ::after pseudo-element which I find strange and I'd like to ask you guys if there's an explanation and, most of all, a work-around.

Take a look here:
http://vetrina.ilgufoblu.net/test/

The two buttons are almost identical with completely identical css, but they behave differently on hover because the button on the left has an invisible span tag inside it which somehow makes the ::after pseudo-element position itself below the text instead of right after the text.

I don't understand how this is possible. The span has a "display: none;" attribute set and should not influence the layout in any way, as I understand it.

But it does, and the question I'm asking myself (and you) is why, and is there a way to avoid this?
I need that span (and more, actually) to be there to use some JS code which needs said spans to be right there (not included here because the problem is only with css).

I'll add the relevant code below, you can also check it out via your browser's dev tools.

Thanks.

HTML:
<body>
<div style="clear:both;padding:20px 0px 0px 200px;">
	<a title="Aggiungi al calendario" class="addeventatc" data-styling="none">
	    Sul Calendario
	    <span class="timezone">Europe/Rome</span>
	</a>
	<a title="Aggiungi al calendario" class="addeventatc" data-styling="none">
	    Sul Calendario
	</a>
</div>
</body>

Open in new window


CSS:
.addeventatc {
	background-attachment: scroll;
	background-clip: border-box;
	

Open in new window

0
Duplicate code removal with ReSharper?
 
I read it now helps highlight duplicate code, but at jetbrains.com I am not finding an specific feature for that.

At the moment, I care most about UI files, first and foremost HTML and Javascript.

Does anyone know if ReSharper highlight duplicate code within a file? And between different files?

IO am about to get the 30-day free trial. But, before I start the clock, I hope to nail down even if that feature exists.

Thanks
0
Hi,
I have the following and cannot show user name and password in center of lines. Please help.
<html>
    <body>
        <!--div align="center"-->
        <div class="container" style="background:url('./pict/ID-10028343.jpg') no-repeat center top; Height:780px; Width:1220px; background-size:100% 100%; margin:0 auto; ">
            <form action="page.php" method="POST">
    <script src="Scripts/jquery-3.0.0.min.js"></script>
    <script src="Scripts/bootstrap.min.js"></script>
    <link href="Content/bootstrap.min.css" rel="stylesheet" />
    <style>
        input {
            background-color: 00008B;
            width: 200px;
            display: block;
        }
        div {
            margin:10px auto;
        }
    </style>
    <div class="container">
            <div class="d-flex justify-content-center">
                <b>Username:</b><input type="text" name="username" /><br />
            </div>
            <div class="d-flex justify-content-center">
                <b>Password:</b><input type="password" name="password" /><br/>
            </div>
        </div>

                <input type="submit">
            </form>
        </div>
    </body>
</html>

Open in new window

0
Does Selenium support White Box Testing?

We developers find that sometimes a lengthy test can be truncated by us doing a particular database query during the test workflow. So, I wonder if Selenium can be configured to perform such a database query?

This seems to be White Box testing. Can Selenium  do this?

Thanks
0
I have a client who uses a company to host and update their web site.  The company does SEO, customer submissions, etc and one of the things they do is they have an online job application so those wanting to apply for a job and go online and complete the application.  The hosting company charges for this and each application has a fee.  My client wants to do away with this and asked me if there is any sort of online job application that we can use to replace it.

So, question is:

Anyone know of an online or free place we can have applicants fill out a job application and have it come to us?  

We DO have some web servers in the building and I suppose I could whip up some sort of form, but it's been years since I've done any web development and I figured this was just the sort of thing that would be available by now.

Anyone got anything?

I just need a job applicants to go to a web site, fill out an online job application and have it submitted/emailed to the HR director.

Thanks
0
Hi Experts,

I have the following code to avoid users entering "N/A" on a required field.

Now would like to add restriction of saving just space characters.

Thanks

$(":input[required]:visible").on("change", function() {
    var id = $(this).attr("id");
    var isName = id.indexOf("Last_Name")>0 || id.indexOf("First_Name")>0;
    var rgx =  isName ? /.*?N.*\/.*A/gi : /.*?N.*?A/gi;
    if($(this).val().length<6 && rgx.test($(this).val()) ) {
        $(this).val("");
        alert("N/A is not a valid input");
        var that = $(this);
        setTimeout(function(){
            that.focus();
        },350);
    }
});

Open in new window

0
Hello

I purchased a Dashboard design but I am having a few issues with it;
I require to wrap the html elements in a form tag; but styling gets screwed up like below:
wrapping all html elements in a form tag.Without wrapping the tml elements in a form tag it works like below:
without wrapping all html elements in a form tag.
For my purposes of using the template I need the elements wrapped in a form tag like in "wrapped_form_index.html", but I am unable to fix the issues or determine why the template stops working when being wrapped in a form tag.
Template site files are attached here: Template-Problem.zip
(files that applies to the website are located in /Scripts and /Styles)
- another minor issue is that the menu icons disappear in a position between full size and the mobile menu boundaries, if you have any idea where the css does this change please point it out as I would like to keep menu icons and not have three menu styling states.
0
Need Campaign Management software

What kinds of web based system can you recommend that lets me do the typical things when managing a campaign? These are the normal CRM types of things, so far as I know...

Anything specialized to campaigns?

If not, what are good ones for normal CRM kinds of activities?

I need there to be a Cell Phone version, either an iPhone App or a Responsive Web App.

Thanks
0
Hi,
Jpg file does exist in "/var/www/pict" path, but html file below is not able to show Jpg file. Why?

<html>
    <body>
        <!--div align="center"-->
        <div class="container" style="background:url('../pict/ID-10028343.jpg') no-repeat center top; Height:780px; Width:1220px; background-size:100% 100%; margin:0 auto; ">
        ...

Open in new window

0
Hi
In the ASP.net web app http://office2web.com.au/
I am trying to move a GIF that is currently to the left more to the right and higher up
so that I can put text on the left and the GIF on the right of the grey area. The image shows how I want to move it

The markup for my page is shown further down

1
<%@ Page Title="Home Page" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.vb" Inherits="Office2Web._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

   

        <div class="jumbotron">
              <h1 style="color:#003399;">Microsoft Office and Web Experts</h1>      
              <p class="lead">Microsoft Access, Excel, SQL and Web Development. Based in Australia, Consulting Internationally</p>
              <h2 style="color:darkcyan;">Call 1300 049 0499 for a free consultation</h2>
            <asp:Image ID="Image2" runat="server" Height="169px" ImageUrl="~/Resources/Web Animation GIF.gif" Width="323px" />
        </div>

    <div class="row">
        <div class="col-md-4">
            <h2 style="color:#003399;">Microsoft Office Solutions</h2>
            <p>
                We build custom solutions into your existing  Microsoft Office. Use the familiar Excel, Word, Outlook or Access environment to evolve your business.
                Get up and running quickly with database applications in Microsoft Access or SQL. Automate and …
0
Does anyone have a Windows DVD of Dreamweaver CS6 they could post a snapshot of the root folder here?
I’m having an issue with one I bought and just want to make sure I have the correct files/folders present.

Thanks!

Ben
0
I am using Coldfusion. I have used a tool to generate a report about cookies and with some of the cookies it had information like purpose and service. How do I add extra information to my cookies?

For example:
Name:      __tlbcpv
Purpose:      Used to record the cookie consent preferences of visitors
Provider:      .termly.io
Service:      Termly View Service Privacy Policy  

Country:      United States
Type:      http_cookie
Expires in:      20 years
0
Can someone please explain to me what is done to support a URL with just a pathname passed. For example, sometimes I see URLs that look something like:
www.mysite.com/products
and the website knows to display products.

My site is written using coldfusion.

How is this done? Is there a sub directory called products which has an index.cfm page?
1
I have this datatable but it goes under my footer. Does anyone have a fix? margin or padding dont seem to work.
table-mobile.PNG
0
I wanna use a bootstrap data table but i cant get it to work.
this it the code in my header:
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">
    <script type="text/javascript"  src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>>

Open in new window


What line do i need to add to get bootstarp datatable since the one i have been using does not seem to work.
0

Web Development

75K

Solutions

49K

Contributors

Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.