back soft

مطالب مرتبط با «javascript using» در back soft | نویسنده: استخدام کار

How to print scraped data in head tag using Ajax/Javascript

امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...

ادامه مطلب

Javascript tests using poltergeist and capybara accessing internal api

امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...

ادامه مطلب

Jquery AJAX request will not show JSON retrieved using "dataType": "json", but will retrieve JavaScript object

امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...

ادامه مطلب

how to make avoid user entering numbers for first two chars(but rest all chars must be numbers only) using javascript

امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...

ادامه مطلب

How to set one selected logo on existing image using Canvas and Javascript

Vote count:
 0I need some help. I am setting some text on image using canvas but this time my requirement is I have to set one logo on that image using Canvas/ Javascript. I am explaining my code below.Here I can set the text on the image...

ادامه مطلب

Need help to turn all white background to black using javascript on all websites

Vote count:
 0I need help to make a userscript to target all white background and tu them black and all black text to silver using javascript for all websites, all other elements should stay original. The color range for background is from silver to black and dark gray to black for tex...

ادامه مطلب

Javascript - Using promise for post PHP, get undefined result

Vote count: 0 I'm a newbie in JS and have a little to no knowledge about asynchronous program and promise. I have a problem in getting result from post PHP as written in this code: showModalLink = function(d, i) { $('#myModalLabel').text(d.source.name + ' - ' + d.target.name); $('#modalJum').text(d.jumlahlelangsama); var lelang = d.daftarlelangsama.split(", "); var lelangmodal = []; var promises = []; for (var i = 0; i < lelang.length; i++) { querystring = "select pemenang from lelang where id = " + lelang[i]; console.log(querystring); var queryobj = { query: querystring }; promises.push($.post('indikasi3modal.php', queryobj)); } Promise.all(promises).then(function(results) { if (results[i] ...

ادامه مطلب

How to create a new document from the current document using Javascript and Lotusscript

Vote count: 0 I am trying to create a new document wherein some of the field values would come from the current document. Note that current document is not in edit mode. There are three buttons in the current document: Edit Document //Validate inputs myForm = window.document.forms[0] myForm.Refresh.click() myForm.Edit.click() Add Guest //Validate inputs myForm = window.document.forms[0] myForm.AddGuest.click() Close myForm = window.document.forms[0] myForm.Close.click() Once the Add Guest button is clicked, it must be able to access the lotusscript agent which can be found in another hidden button, "AddGuest". @Command([ToolsRunMacro]; "AddGuests") Once the Add Guest button's clicked, there ...

ادامه مطلب

Replace XML element with text wrapped in CDATA using JavaScript

Vote count: 0 I am trying to replace some text in an XML element with new text which I need to wrap in CDATA. asset = request.responseXML; asset.getElementByTagName("url").textContent = newUrl; newUrl needs to be wrapped in CDATA since it can contains special characters. How is this possible? I have tried the following but it doesn't work asset.getElementByTagName("url").textContent = ""; asked 38 secs agokittels Let's block ads! بخوانید...

ادامه مطلب

Javascript function to php using parameters

Vote count: 0 Good evening, I have this piece of PHP code : Is there a means in my javascript code to call the function and to pass the two parameters? Many thanks for your help. asked 19 secs agoLaurent Let's block ads! بخوانید...

ادامه مطلب

javascript to wrap specific text using regex capture but excluding html tag attributes

Vote count: 0 I've got Regex targeting alpha-numeric strings that are product numbers (all will be CAP/number combinations of various lengths) wrapping these product numbers in bold tags for hundreds of generated HTML emails. This worked great to bold product numbers, but also captures random parts of URLs and hex colors in my HTML email's tags attributes. I've tried to exclude hex colors, and only include text after ">" and before "...

ادامه مطلب

C++ server to serve local web files (html/css/javascript) using http

Vote count: 0 I'm writing a C++ desktop application with An embedded webview to show the UI written in html/css/js. A C++ backend to handle all logic and core operations. In order to show the web UI in the embedded webview without problems, I need to server those files from a local directory that will be part of the application. So I need to embed an http server as part of the application as well. So I'm looking to do something like this: web_view.ShowUrl("localhost:8080"); And this should automatically open index.html in /path/to/my/ui/directory/ that the embedded http server is set up to serve. Then it should be able to handle any includes of other scripts, html/css files, resource files l...

ادامه مطلب

Javascript code (using google tag manager) not executed

Vote count: 0 I have a page in which I am pushing some javascript using google tag manager. The javascript code has a function which executes on DOM ready and modifies certain elements on the page if it is being accessed from a mobile device. The code works fine when the page directly open in the browser but if we move out from the page by clicking a link and come back again by using the browser back button the page does not get modified that is either the code from the tag manager is not getting push into the page or somehow the code is not executed. asked 41 secs agodevkaustav Let's block ads! بخوانید...

ادامه مطلب

How to make line chart using asp.net mvc4 with dynamic data without javascript?

Vote count: 0 I would like to make line chart in my project. i was already make pie chart using datavisulazation dll but now want to make line chart with dynamic data so how can i make it? asked 1 min agoUrvish Patel Let's block ads! بخوانید...

ادامه مطلب

How to create image file in android from dataURL which is generated using JavaScript

Vote count: 0 How to create image file in android from dataURL which is generated using JavaScript data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT.......== asked 3 mins agosaikumar Let's block ads! بخوانید...

ادامه مطلب

Download file from s3 in browser using javascript

Vote count: 0 I want to implement an auto download functionality in browser from s3. I am currently using an anchor tag(created on the fly using javascript) using the following code var link = document.createElement("a"); link.download = name; link.href = file; if(callback) callback(); link.click(function(){ document.body.removeChild(link); }); But this approach does not work in safari because instead of downloading the file, it opens it in the browser(pdf file) and hence prevents the actual html to be rendered. I researched and found that safari does not implement the download tag of html5. Is there another way to download files in the browser. Or any s3 SDK available to do the same? asked ...

ادامه مطلب

Codeception phpbrowser using javascript

Vote count: 0 Long story short, I have a web application where i have a button which triggers 2 async ajax calls. The 2 ajax calls use a parameter which is actually a javascript variable set in the application. When the two ajax calls are done, a third ajax call is performed using the result from one of the initial ajax calls. This third ajax call, when done, adds a new div in the content. So far I used CodeCeption with WebDriver, where the above functionality was easily simulated by two simple actions: $I->click(button) $I->waitForElementVisible(newdiv) I am now trying to simulate the same using PhpBrowser but I'm not certain how to approach this: Since PhpBrowser doesn't use javascript, ho...

ادامه مطلب

Calculate price and quantity using jquery or javascript

Vote count: -1 How to calculate price and quantity. I don't want to remove currency type. The price is php generated so i just want to show a calculated price when update quantity using jquery or javascript. Thank you. Here is working demo : $('input[name='quantity']').on('change keyup click', function() { var price = $('.price').text().substr(1); var quantity = $('.quantity').val(); $('.total').text(price * quantity); }); Total : $50.00 Price : $50.00 edited 58 secs agoj08691 asked 2 mins agoprotik Let's block ads! بخوانید...

ادامه مطلب

Dependency Injection with Exact Example using Angular Javascript

Vote count: 0 I am New to lea a Angular Javascript. Can anyone gave me the knowledge of Dependency Injection with Its Demo Example. So That I did lea from there. No Good and clear link I have found from Googling. asked 1 min agoSupriya Pandey Let's block ads! بخوانید...

ادامه مطلب

Input validation (JavaScript) using required attribute

Vote count: 0 I have a problem with input validation using 'patte' and 'required' attribute. The idea is that i want to use my own title, not of the browser. When I want to complete de input with characters that not correspond with the regex (numbers), message 'Only letters allowed' displays near the input. But when I complete with letters it shows me the same message that my characters are incorrect. Who knows want is the problem? Thank you. function validation (textbox) { var regex = /^[a-zA-Z]+$/; if (textbox.value == '') { textbox.setCustomValidity('Required field'); } else if(!regex.test(textbox.value)){ textbox.setCustomValidity('Only letters allowed'); } else { textbox.setCustomValidi...

ادامه مطلب