We're using ReadSpeaker component for the web.
We have a button for start to read, we call it to a function of Readspeaker called readpage()) the problem starts when we make click on this button the whole web it breaks, is as if the web changes to pdf file without CSS and the button disappear.
Know What is happen? Sorry for can't explain it well I don't know what'sh happen exactly.
Just find the solution!
http://hldev.readspeaker.com/?faq=how-can-i-prevent-javascript-from-breaking-when-readspeaker-is-active
If you have Javascript content inside the reading area these objects can break when ReadSpeaker is active.
This is because we add temporary HTML code to be able to highlight the content that is going to be read.
Related
So currently Im trying to make Google Chrome extension using Visual Studio Code and JavaScript. I havent worked with JS before. So I have this part right now, Im taking some info from the first page and then I open the second one and try to click button on it, but its still working only on the first one. Ive tried .focus and setTimeout but nothing works.
window.open("https://somesite");
setTimeout(1000)
document.querySelector(".submitButton").click()
JavaScript only works on page when you code it.
If you want to create javascript on new page - you need to write all code again.
On PAGE 2 button will not works , becuse JS is not shared on all pages. You needs to write again JS function to click that button
I have developed a set of code that allows for content to be loaded in, without changing pages, however I've got a problem, I need the links to change as well, but they don't.
My code:
I don't really understand what's going on with it, but if you make any changes, would you mind commenting them on the code please?
This is a little hard for me to explain as i am not much of a coder. So here we go.
I have script that is mostly encoded with ion cube. Not i have an addon that is also encoded. The addon is loading in a tab number 5. The problem is that every time i click on a function in the tab that complete page reloads, and you have to navigate back to tab 5 to see the results.
So this is what i am thinking. As i can't edit code and the make of the code doesn't know when they are adding tab support to their little piece of code. i figured that there are two options
1 Force the following variable to the end of the url #tab5 so that when people click a function they will not have to navigate back to the tab. How do i do this coding wise, javascript or something else and what would code be or where would i look to code something like that. I have looked everywhere but nothing really applies to my situation
2 I think it would also work if each function which is called just reloads that section of the page in an ajax field so that not the full page is being reloaded.
Who can help find the right solution.
thanks
I am wanting to find a way I can have others edit a html webpage (found locally) and allow them to save the changes they have made.
I know this is an odd request, I have a very specific idea in mind, which I will include below as an optional read for those interested.
I found that this code in the address bar works for the editing: document.body.contentEditable='true'; document.designMode='on'; void 0
Then I found that just adding:
<div id="columns" contentEditable="true">
gets the job done since I can edit the html.
The problem is that I cannot save the changes. I have tried saving the page in several different formats, including webpage/complete, HTML only, TXT file.
Is there anyway to save these edits whether by saving the HTML or using some other kind of simple storage?
Reasoning:
I have a simple local html page I will be using with other co-workers. These co-workers are not very tech-savvy (even less than me). The very mention of trying to explain how to edit the html and make changes to the text created blank stares, and an unwillingness to work on the project. I would very much prefer for them to be able to edit the text of this HTML page from the front end and not mess up any of the coding.
Also, I have installed a Xampp server, and wordpress - this has become a bit overkill for the purpose and again, has confused the others.
Thanks,
Go into JavaScript. Select and right-click on . Click copy as html. Then save into a .txt file somewhere. If you want to restore the website, right-click on and select Edit as html. Copy/paste the code in. Then it's back to normal.
You can use localStorage to save the data in the user's browser.
I know this is a problem I could solve with a huge list in "innerHTML", but there's got to be a better way.
I'm making a webpage with a "search" and "browse" section, both are big buttons at the top of the index page. I have search.html and browse.html, but I want their contents to load in my "main" div on the index page rather than open their own pages. I should be able to quickly click between "search" and "browse" and have their different pages load back and forth inside the index page. Hopefully that makes sense. I was trying a solution with frames before, but it wasn't working for me.
Any advice would be greatly appreciated.
Thanks!
You can use tabs or something like that: http://jqueryui.com/demos/tabs/
Most JavaScript AJAX libraries such as jQuery have this built-in - in case of jQuery the load method.
However keep in mind, "tricks" like this destroys the browser usability for your users (broken back button, not possible to set bookmarks, etc.). It's possible to work around, but that makes extra work.