[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Web Development

74K

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.

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

Sign up to Post

Dear Experts
We revamped our website  with word press CMS  and we are live with new website on google cloud platform but the old website was joolma and it was hosted in godaddy. The issue is already indexed and available in search engines on the search results when click on it shows page not found , these are of old websites links, please suggest the measures and steps to be taken to ensure all old website links does not end up in page not found. Please suggest the best practice to handle this, should we have to take migrate the old website also to the new web hosting server I am not having clear idea on what is the best practice. Please help
0
Microsoft Azure 2017
LVL 12
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

I'm trying to figure out how I dynamically attach event listeners to an element? I read a little about event delegation but not sure how that works. Here is my issue, I'm working with a dynamically created form. Depending on the selections a user makes, the form will dynamically modify itself. Certain elements may/may not exist.  For example, I have the below code:
var startCurrentJobInput = document.getElementById('mainForm:cont_appRequest_customers__0_records_ichabod_fields__0_columns_start_job:decoin:appRequest_customers__0_records_ichabod_fields__0_columns_start_job');
startCurrentJobInput.addEventListener('blur',(event) => {
    var scjVal = event.target.value;
    console.log(" event.target.value ==> " + event.target.value);
    if(scjVal != ""){
        console.log("startCurrentJobInput ==> " + event.target.value);  
    } else {
       console.log("startCurrentJobInput will not report");
    }
}, {passive: true});

Open in new window

The issue is this input field doesn't exist on page load until someone makes a particular selection on the very first select (drop-down). That means that I get the following error: Uncaught TypeError: Cannot read property 'addEventListener' of null when the page loads. on this line:
startCurrentJobInput.addEventListener('blur',(event) => {

Open in new window

How do I handle dynamic elements like this? *** I can't modify the code on the web page. I can only modify my injected code via a Tag Management system, so think of it as working in the confines of a JS include ***
0
I get very regular text messages from people that I have yet to speak with.

I need to develop a way to have a single record row show up on a web page that is only visible to me for now on a websitepage/status. The resulting list should be sorted by the date/time of the message and the number of the party that texted.

Suggestions on how to accomplish this are greatly appreciated.
0
i have a Javascript listener issue. Is there a way to tell how many listeners are attached to an element (by ID would be best) from the dev. console? If so, how? Or by any other means?
0
I'm still having issues with the below code. When I test the page, the top code will run as expected. Once I invoke the bottom code which is attached to a text input field, the event listeners still seem to not be removed as each time I test the field, it will proportionately run the code that many times. So for the bottom code I should get only 2 console logs each time (which happens the first time) but if I change the text in the input field a second time, the function runs twice and I get 4 console logs. If I test again then the code runs 3 times and I get 6 console logs. If I then go back to the top piece of code and test that one again it will then run 4 times and I'll get 8 console logs?  I'm totally confused as to how to fix this? The code is invoked each time someone focuses on one of the elements in the code. I have to inject this code via a Tag Manager (DTM) using an event based rule.
var employmentStatusSelect = document.getElementById('mainForm:cont_appRequest_customers__0_employmentStatus:decoin:appRequest_customers__0_employmentStatus');

employmentStatusSelect.removeEventListener('change', trackEmploymentStatusSelect);
employmentStatusSelect.addEventListener('change',trackEmploymentStatusSelect);

function trackEmploymentStatusSelect (){
    var esSelVal = event.target.value;
    console.log(" event.target.value ==> " + event.target.value);
    if(esSelVal != ""){
        console.log("employmentStatusSelect ==> " + event.target.value);  
    } else {
   

Open in new window

0
Hi,

I have a user who ask how to modify the "FROM" email address in SharePoint Designer 2017. User is doing like a "Client feedback" from workflow... I'm not familiar with SharePoint Designer but I'm sure this is just a setting somewhere that we can change easily. Is someone can guide me?

Thanks
0
I have the following code which I'm trying to attach an event handler to a text input. It works but each time I go back to this input field it adds an extra iteration so the second time I change the input the below code runs twice (I'll get 4 console.logs from single change). Each time I change the value the code runs that many times. So for example, if I change the value of the input text for the 5th time then the code will run 5 times in a row (I'll get 10 console.logs for the single change) as if each time it is attaching an additional event listener to the input. How do I fix this?
var startCurrentJobInput = document.getElementById('mainForm:cont_appRequest_customers__0_records_ichabod_fields__0_columns_start_job:decoin:appRequest_customers__0_records_ichabod_fields__0_columns_start_job');
startCurrentJobInput.addEventListener('blur',(event) => {
    var scjVal = event.target.value;
    console.log(" event.target.value ==> " + event.target.value);
    if(scjVal != ""){
        console.log("startCurrentJobInput ==> " + event.target.value);  
    } else {
       console.log("startCurrentJobInput will not report");
    }
});

Open in new window

Thanks!
0
Hello, so I have this customer who has come up with a math formula and he doesn't want anybody to see it. But he also wants me to create a web app which uses the formula.

Now, I have a decent knowledge of Javascript, but I've dabbled very little with php.

So, if I use js exclusively, the code will always somehow be visible, as obfuscated as it may be.

I was wondering, is there a way to use php? The app would be very simple: the user inputs some values into a form and the app needs to make some calculations with those values and spit out some results. Since I am near zero with php, I have no idea if this can be done with it, easily or otherwise.

The app would be mostly identical to this one: http://www.laconfraternitadellapizza.net/calcolapizza/
I made that in js though.

I hope someone can help me, I don't need the details but I'd just like to know if it's doable and maybe some hints on how to handle the data.

Thanks.
0
I have the below test javascript code which works:
var EmploymentStatusSelect = document.getElementById('mainForm:cont_appRequest_customers__0_employmentStatus:decoin:appRequest_customers__0_employmentStatus');
EmploymentStatusSelect.onchange = (event) => {
    var esSelVal = event.target.value;
    console.log(" event.target.value ==> " + event.target.value);
    if(esSelVal != ""){
        console.log("EmploymentStatusSelect ==> " + event.target.value);  
    } else {
       console.log("EmploymentStatusSelect will not report");
    }
}

Open in new window

The issue is it prevents the form on the page from functioning properly. There is existing logic on the web app for the onchange event in the form so when certain selections are made, the form dynamically displays other questions. When I introduce my code (above) , the existing dynamic field display breaks. Is there a way to rectify this in my code? I am injecting code via a tag management system so I can't touch the code on the page, I can only change my injected code. Is there a way to fix my code so it won't impact the other onchange logic?

Thanks!
0
Add the image like (img/big/red.jpg) etc. to mySQL, and retrieve the images.
0
HTML5 and CSS3 Fundamentals
LVL 12
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

Hi experts,  I have a page, where I want to display the images of the products. I do not want to restore the images in the database, but in the folder.
Currently I have a problem. Since some of the products have one or two images, and some of the products have more than 2. Per the code below,  if the products have less than 5 images, the image folder which do not have 5 image will be displayed as X (no image).  How to fix it? Thank you!


<ul id="carousel" class="jcarousel jcarousel-skin-tango">
				<li><a href="#" rel="p1"><img src="images/<%=idProduct%>/1.jpg"></a></li>
				<li><a href="#" rel="p2"><img src="images/<%=idProduct%>/2.jpg"></a></li>
				<li><a href="#" rel="p3"><img src="images/<%=idProduct%>/3.jpg"></a></li>
                          <li><a href="#" rel="p3"><img src="images/<%=idProduct%>/4.jpg"></a></li>
  <li><a href="#" rel="p3"><img src="images/<%=idProduct%>/5.jpg"></a></li>
				

				
			  </ul>

Open in new window

1
Add the compare checkbox in the product category page. When users check the checkbox under the item, the item image will be added like the following link. How to accomplish it?

Thank you!
https://www.costco.com/CatalogSearch?dept=All&pageSize=96&keyword=computerhpf1127
1
I have come across this page per the following link.  A button "Add to List" is at the right side of the image. When the user clicks Add to the list button, it will be added to the My List.

The button turns to Remove from the list once Add to List has been clicked.  How to accomplish it? Thank you!

https://www.pcna.com/leeds/en-us/leeds-mobiletech-power/product/7121-50_reg-
0
Hi experts, I  have scroll  thumb images,  and when user scrolls and selects the thumb image,  it will be displayed in a big image and  it works fine. Now I want to add a button at the bottom of the displayed image. When the user clicks the button, it will go to the next page (third party site) displaying the same image as the user scrolls.
Below is the code. How to accomplish it?

Thank you!
        <div class="row"> 
                                            
                     <img src="img/img2.jpg" width="100" height="100" alt="" mylink="img/img2.jpg">
                        <img src="img/img3.jpg" width="100" height="100" alt="" mylink="img/img3.jpg">
                        <img src="img/img4.jpg" width="100" height="100" alt="" mylink="img/img4.jpg">
                        <img src="img/img5.jpg" width="100" height="100" alt="" mylink="img/img5.jpg">
                        <img src="img/img6.jpg" width="100" height="100" alt="" mylink="img/img6.jpg">
                         
                        <img src="img/img6.jpg" id="selected" width="100" height="100" alt="">
            </div>
        <input id="btn" type="button" value="select" />
   

Open in new window

1
microsoft-net-redwerk
Commonly, converting numeric string may seem to be not so difficult or complicated task. However, there are some cases, when you can get strange exceptions, that can perplex and confuse you. One of such cases is converting the string representation of a double value to a numeric value.
0
technology experience

Getting a job isn’t always easy. It can be especially intimidating if you’re going after your dream job—and you don’t have years of experience to back up your enthusiasm. Tech jobs are growing faster than ever, but it can be challenging to get hands-on experience that you can put on your resume. If you want to break into the tech industry but you don’t have direct work experience, you’re not necessarily out of luck. It is possible to get a job in the industry even if you have a lot to learn. Here are some tips for how to get a tech job when you don’t have much (or any) tech experience.


Effectively Market and Sell Yourself


You need to effectively market and sell yourself to land any job, but especially when you lack direct work experience. When it comes to your resume, every word counts. Mention the work experience that you do have, and explain how those skills are relevant to what you’ll need for the tech job you’re applying for. Bring up soft skills like communication, adaptability, and ability to learn. You should also emphasize your work ethic and your enthusiasm for working in tech.


You can put a positive or negative spin on anything, and when many people apply for jobs, they’re not used to selling themselves. They’re used to downplaying their accomplishments and aren’t able to market themselves and highlight their best qualities. Resist the urge to be humble—highlight your accomplishments and show potential employers why they’d be lucky to have you on their team.


Consider How and Why Companies Hire


If you’re trying to figure out how to get a tech job, try reverse-engineering the process. How and why do companies hire? Well, they hire because they either have more work to do than their current team can handle, or they lack specific skills on the team. With each job posting you look at, think about your resume, cover letter, and application through that lens. How will they make hiring decisions?


The good news is that these days, many companies are focused more on personality, skills, and ability then they are on degrees or number of years of experience. They want people with interpersonal skills who are passionate, resourceful, and will take action. Even in tech, teamwork is important, so be sure to highlight your experience working with others.


Take on Tech Projects and Develop your Skills


You may not have experience working for a tech company, but that doesn’t mean you have to go into an interview empty-handed. Create your own experience! Immerse yourself in the tech scene and get connected with people who are working on projects. Find a mentor or see how you can get involved. Consider going back to school and getting a masters degree in some aspect of technology. If you’re able to, getting an internship, learning new skills via online courses, or tinkering with your own projects can help you get valuable experience you can talk about.


Get a Tech Job by Highlighting Your Personality Strengths


There are a lot of stereotypes about people in tech, and one of the most persistent is that people who code or work with computers have terrible people skills. The truth is, companies need people with those all-important “soft skills” too. Knowing your value and your personality strengths can help you get a job in tech, even if you’re still a newbie on the technical side.


Some of the skills that employers look for are leadership and emotional intelligence. You might take these for granted, but they take a long time to develop and can help a company become more productive and create a stronger culture. Still not convinced? A global study showed that 67% of the qualities and skills that companies were hiring for were emotional intelligence skills. Understand the power of your personality and leverage it when you’re looking for a job.


It’s Never Too Late to Jump In


If you think it’s too late for you to get into the tech industry and become successful, think again. It’s a fast-moving industry that rewards people who jump in with both feet, take risks, and show that they’re adaptable and confident. It’s never too late to learn, update your resume, and take a shot at getting a tech job so you can grow your career!


0
I have two tables:

userlogin  AND  users

The following query returns all records from the userlogin table, but some of the records do not have a matching record in the 'users' table. So because I am using a left join some records return a NULL value
How can I DELETE the records in the 'userlogin' table that don't have a matching record in the 'users' table.  ?  

SELECT a.UserLoginId, b.UserType, a.UserId, b.UserId AS usersuserid
FROM dbo.UserLogin a
LEFT JOIN users b ON b.UserId = a.UserId

Open in new window


This way I end up only with records that match one to one.

This is the list of records I want to delete:

SELECT a.UserLoginId, b.UserType, a.UserId, b.UserId AS usersuserid
FROM dbo.UserLogin a
LEFT JOIN users b ON b.UserId = a.UserId
WHERE b.userid IS NULL

Open in new window

0
I am getting an error with the following query, what is wrong in the syntax?

INSERT INTO UserRole
(
    userloginid,
    RoleId
)
SELECT b.UserLoginId,
       1
FROM Users a
INNER JOIN dbo.UserLogin AS b ON b.UserId = a.UserId
WHERE UserType = 'superuser';
0
Hi,

I have a web-based application and I have been using the app to maintain the front website. The front website is more for troubleshooting and marketing.

I haven't spent much time with the front other than getting it working.

I was thinking of using WordPress to maintain the front as it allows me to install plugins and management the development of the front site better than I can(id rather spend time elsewhere)

My concern is i would use an external premade theme as well as implement some custom pages

Do you think it is a good idea to switch to wordpress to handle the front facing website or maintain it within my application

Thanks
0
C++ 11 Fundamentals
LVL 12
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

I need to know how to get two email fields from the woo commerce checkout page to be passed to the following code by having the customer just check a checkbox.  This saves them having to retype their name and address in an opt-in email form.

This is the form code

echo '<form action="https://www.thefrugallife.com/sendy/subscribe" method="POST" accept-charset="utf-8">
        <label for="name">Name</label><br/>
        <input type="text" name="name" id="name"/>
        <br/>
        <label for="email">Email</label><br/>
        <input type="email" name="email" id="email"/><br/>
        <div style="display:none;">
        <label for="hp">HP</label><br/>
        <input type="text" name="hp" id="hp"/>
        </div>
        <input type="hidden" name="list" value="ACx7638vw5sGEHFDzym5VW0Q"/>
        <input type="hidden" name="subform" value="yes"/>
        <input type="submit" name="submit" id="submit"/>
</form>';

}

Open in new window


I know their input type would be hidden but not sure how to get the values from the checkout page into the form.

Here is part of the checkout page

https://gyazo.com/ee34e78751a7dd8036fbf31faeccc5f9

Open in new window

0
Hi

I have created a web page using Microsoft WebMatrix.

I am having a problem passing a value to a variable.

I would like to pass to the company variable.


From my function RequestInformation() I would like to do something like company = result["AbEntry"]["Data"]["0"]["FullName"]

Is this possible or is there another way I can do this?

@using WebMatrix.Data;



@{

    Page.Title = "Sage info";

    var company = "";
    var db = Database.Open("Sage200Demo");
    var selectQueryString = "SELECT * FROM SLCustomerAccount where CustomerAccountNumber = '" + company + "'";

}




<!DOCTYPE html>
<html>
<head>
    <title>Sage info</title>
    <style>
        table, th, td {
            border: solid 1px #bbbbbb;
            border-collapse: collapse;
            padding: 2px;
        }
    </style>
</head>
<body>

  <script type="text/javascript" src="../../ClientScript/jquery/jquery.js"></script>
            <script type="text/javascript" src="../../ClientScript/MaxPage/maximizer.Events.js"></script>
    <script type="text/javascript" src="../../ClientScript/jquery/jquery.js"></script>
    <script type="text/javascript" src="../../ClientScript/MaxPage/maximizer.FollowingTabManager.js"></script>



    <script type="text/javascript">


              var tab = new maximizer.FollowingTab();
              //Subscribe to parentRecordChange event and define event handler
              tab.on("parentRecordChange", function …
0
Hi Guys,

Excuse the web ignorance, we are looking to get a developer to integrate a solution for us on our website

We need to have a form on the left where people input data (Name,Height etc) and the results they type in will display on an image to the right of it

Only example i can find of this is what my nephew wanted for his birthday - see site below

https://wefut.com/player/card-creator/15949

Is it a javascript web form is it an app what is it ?

HELP
1
Struts 1
how to update a bean property.  I have something like this:
<bean:size id="accountProgramListSize" name="CommissionRateForm" property="accountProgramList"/>
                <bean:define id="accountProgramList" name="CommissionRateForm" property="accountProgramList"/>

                <logic:iterate id="accountProgramElement" name="accountProgramList" indexId="index">
			       	<tr>
						<td class="${index % 2 == 0 ? 'tablecelllight' : 'tablecelldark'}"><bean:write name="accountProgramElement" property="masterAccountName"/></td>

Open in new window


So, how can I set the value of masterAccountName in the current "accountProgramElement" bean?
I've tried many different ways and read everything I can find but no luck.
0
I need to set up a easy-to-remember URL like www.mycompany.com/PRODUCTX
However, the actual location of PRODUCTX may change.
1. What is this called:  The process of setting up a easy-to remember URL which leads to an actual URL whose address may contain a bunch of letters and numbers, etc.
2. Is it called a primary URL?  Destination URL?
1
I need to find Java Developers to use https://github.com/knowm/XChange for a few common tasks. Apart from UpWork, where can I find them? The answer should mention some online platform for hiring freelancers.
0

Web Development

74K

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.