How can I edit javascript in a browser [closed] - javascript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 2 years ago.
Improve this question
I'm trying to modify a webpage I access that has a table with a bunch of rows. I'd like to loop through and compare a name in that row with a name on another list I have, if it's there make that name in the table red. I don't have any code yet, but I'm lost when it comes to figuring out how to run this code when I run the webpage in my chrome browser. Does anyone have an example or tutorial about how to do this? Most posts on this topic are many years old and it's been hard to find this info. I appreciate your help!

It sounds like what you're trying to do is modify the structure of a webpage you don't own the code to. While you can use the developer tools to run arbitrary JS, that becomes tedious to do every single time.
I think what you want is a browser plugin. Check out the resources below:
Chrome: https://developer.chrome.com/extensions/getstarted
Firefox: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension
There may also be specific browser plugins already that let you run arbitrary JS code on certain pages, but I am not aware of any myself.

Related

Similar and simplified examples (newbie questions) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm currently studying about web development, I still don't know about jquery, but I've a little knowledge about javascript, html and css (basic).
I've been looking at some examples in github to improve my skills, and I've found this content;
https://github.com/stewilondanga/editables
I perfectly understand the theory, but I do not know how to put it into practice, I would like for any similar examples (simplified alternatives) and how to convert the exported code generated by javascript into a html5 table?
Any example would be appreciated! thanks for your attention!
First of all, jQuery does not generate code. It's a framework, you load it into a web page, and then you can use it from within Javascript code in that page.
I suggest you start by looking at the source of https://stewilondanga.github.io/editables/, if an editable tables is what you need. There are more general frameworks to do this, e.g. Aloha
To try it yourself, I'd suggest you bite the bullet equip yourself with some kind of web server, be it on a server somewhere, or on your local machine, so you can easily try out things like this, copy the sources, alter the code etc.., and quickly hit reload on your browser.
While it may seem easier to run a local server and point your browser at http://localhost/something, IMHO it also takes more tinkering to get browsers to embrace that fully. You don't need the extra grief while already learning all those new concepts. If you want to tackle this seriously, consider getting a hosting service or small VPS somewhere. If you don't know how to do that, get help for that first, but get it out of the way. It'll save you much grief.

Creating a webpage with JavaScript that updates automatically with new information [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
I would like to create a webpage using JavaScript and HTML that allows for users to insert new information as it becomes available to them and to preform calculations while keeping the given information the same. As well it needs to update the output given to them without requiring the entire page to refresh. A table style format would be preferable, but the easier to code the better. What would be the 'easiest' way to go about this?
Edit:
I apologize for not stating this earlier, I intend to just launch this page on my desktop by using a web browser it is not intended for a server application.
Edit2:
I would like to thank everyone for their help with my request! You have given me great pointers and i will definitely start with these. Thanks again!
What you need is AJAX. It's very useful, because you can do things as:
Update a web page without reloading the page
Request data from a server
Receive data from a server
Send data to a server
You can find some good JavaScript tutorials:
Tutorialspoint
W3 Schools
Mozilla Developer Network (MDN)
LearnToProgram
or a jQuery one here.

Having issue in JavaScript and PHP Code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have a issue in my website (http://www.unlockgsmcodes.com/unlock-samsung/). My website was working fine few days ago then suddenly javascript is not working on my website. And php code is displayed in textboxes.
I developed my website in wordpress.
For php code i am using plugin "Allow PHP in Posts and Pages"
I am giving you couple of suggestions, have a look into them-
If any page template, then check the PHP code. Mainly, start and end.
If your page in page (dashboard>pages). I mean value printed using
any plugin, then you deleted that plugin which was printing the value
in your input field.
If your page created using any form plugin. Then check the form plugin. Is it deactivated or not?
Open console in Chrome and you will see: Uncaught TypeError:
jQuery(...).on is not a function - is the reason, why javascript is
not working (I am adding #deniskoronets comment here)
Also use $.noConflict() or jQuery.noConflict() in your scripts
BTW, If you want best answer then you need to post more clue/information.
Thanks

Canviz example don't work [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I've downloaded Canviz (it's a Javascript library for drawing graphs). I've unzipped the archive. I open, with Chrome, index.html, which is supposed to be an example. A "loading" message appears... and never disappears.
What am I supposed to do please ?
I worked with this library a few months ago.
You also need to have graphviz installed in order to create the graphs canviz will draw.
When you have installed, you have to use the function load with the url parameters in order to create the graph.
WebBrowsers have an option to enable javascript or not. make sure your browser enable it.
here's an example for Mozilla : Mozilla example

Does google crawl javascript? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Does Google crawl content loaded/created via Javascript? Traditionally I know the answer was no, but I'm having trouble finding up-to-date sources on this.
Google understands some parts of the code and can render thumbnails of javascript pages, but I would never rely on this for my pages to be indexed.
The best is to create number of html pages just as google webmaster suggests.
Dont forget to put sitemap as well.
I can't write just one word or it would be "NO", the reason being, a crawler can't execute events like a "mouseover" on every element to change the DOM and wait for ajax responses etc... Think about all the work the crawler would have to simulate to read DOM changes that may or may not happen. This would produce different content for the same URL, so it assumes to never do that so your content appears to be the same from an SEO standpoint. Does that help a little more?

Categories

Resources