I have json string below, I want to convert $$ string to input text box, which I did with the function written below
Var formEntryJSONElement = {
catalog: "N",
formEntryName5714: "comp17726cpv5714",
rank: "20",
predefValue: "5714",
label: "$$$$",
type: "V",
formEntryName: "comp17726cpv",
hasCustomValue: true
},
I Have created javascript object from this json
[login to view URL]
[login to view URL] = FormEntryWebPreview;
function FormEntryWebPreview(formEntryJSONElement) {
[login to view URL] = removeEsterick([login to view URL]);
[login to view URL] = [login to view URL];
if(!![login to view URL] && [login to view URL])
[login to view URL] = replaceSpecialCharWithTB([login to view URL]);
}
function replaceSpecialCharWithTB(labelTxt){
var i, labelTxtVal, count =0 , textLength= [], textboxLength, formattedText='';
var labelTxtArray = [login to view URL]("");
for(i=0;i<[login to view URL] ; i++){
if(labelTxtArray[i] != '$'){
if(count > 0){
textboxLength = [login to view URL](50*count-50,50);
formattedText += '<input style="border: 1px solid black; width:'+textboxLength+'px;" type="text" ng-blur="emitTextBoxValue([login to view URL]);" ng-model=”[login to view URL]”/> ';
}else{
formattedText += labelTxtArray[i];
}
count = 0;
} else {
count++;
}
}
if(count > 0){
textboxLength = [login to view URL](50*count-50,50);
formattedText += '<input style="border: 1px solid black; width:'+textboxLength+'px;" type="text” ng-blur="emitTextBoxValue([login to view URL]);" ng-model=”[login to view URL]” />';
}
return formattedText;
}
But problem here is ng-blur and ng-model is not working for those dynamically generated input types, is there any angular way of doing this and making ng-model work?
I have almost 2+ years of solid excellent experience in building Single Page Apps and Hybrid Apps with sufficient Search Engine Optimisation (SEO) using React, React-Native, Redux, Angular 1.x, 2.x, 4.x, 5.x, Vue, Vuex, BackboneJs etc ...
I am interested in this job and wanted to work i will make sure i will do more then your expectation
Thanks
$25 USD σε 1 ημέρα
5,0 (2 αξιολογήσεις)
4,4
4,4
5 freelancers δίνουν μια μέση προσφορά $92 USD για αυτή τη δουλειά
Hello deepsk2011. I am available right now, how are you?
I am interested in your project and would like to discuss the project with you.
I always deliver on time and on budget feel free to check my feedbacks and portfolio.
I understand that you require Angular.js, CSS, HTML5, Javascript, jQuery / Prototype .
Please Send me a message so that we can discuss more about this project.
Over 50 projects successfully completed.
Satisfaction Guarantee and Quality Work, Support 24/7.
Cheers,
Dimitrije.
I am a software developer with more than 8 years experience in .Net, Java Springboot and Angular.
I have worked on Angular projects from scratch with spring boot on server side and also worked on migrating angularJs to Angular 2. Along with these I have also worked on more other projects also.
So I think I will be able to solve your issue.
By the way a suggestion, why don't you add the field to form and use the ng-show or ng-hide based on your requirement.
I will try my best to meet your expectation if selected. Looking forward to work with you.
Thank You