Chrome Extension Option Page

Jun 5, 2010

I've been working on a Google Chrome extension that reads the feed from URL... and it works perfectly. I published it already, but now I'm trying to create an options page to change the feed between TheOatmeal and TheOatmeal's Twitter feed. Eventually I'll add badges so people know when a new update occurs, but that's beside the point.The current problem I'm having now is an if this, do this statement, I believe. I really don't know all that much about Javascript, but once I get both feeds working correctly, I won't have to.My option.html and option.js files are both attached in the .zip.

Inside my manifest.json file has "popup": 'popup.html' which is TheOatmeal site's RSS feed. 'popup2.html' is only in the folder of the extension, but it contains the JS script for the Twitter RSS feed.As for research, yes, I have. I've been looking through w3school tutorials and searching around for example options pages. The current option page I have came from a tutorial that I chopped up and added my own stuff to.

View 3 Replies


ADVERTISEMENT

Chrome Extension Not Recognizing Function

Jan 6, 2011

I'm writing a Chrome extension and using the local storage functions written here However the log in Chrome keeps complaining that:

[Code]...

View 1 Replies View Related

Create A Chrome Extension That Can Pass Text From A Text Box To A Webpage Text Box

Feb 19, 2010

I am trying to create a chrome extension that can pass text from a text box to a webpage text box. Basically my company has an intranet site where you can search for an employee. The url does not display the search terms so i cant just append to it. Since I cant really work on this outside of work (its an intranet site) i have tried replicating it from home using the let me google that for you (www.lmgtfy.com) site.

View 2 Replies View Related

Onclick Option Value Not Working In IE Chrome Safari?

May 4, 2011

I have been developing a code for changing currency on onclick

here is a demo code

<form id="setCurrency" action="{$request_uri}" method="post">
<select name="language" class="language">
<option value="">Select Currency</option>

[code]...

It works fine for firefox but not for all browser

View 1 Replies View Related

Extension Stops Executing After Reaching Some Page?

Sep 21, 2011

I have written a chrome extension which will redirect to all hrefs for a given source urls in current tab.. But i don't know why all of a sudden it stops executing after reaching some page. I am attaching my code as attachment.

View 1 Replies View Related

Writing Firefox Extension - Detecting New Page?

Mar 18, 2010

I am writing a firefox extension and I need to execute a YQL query everytime the user changes webpage on their browser.For now, all i am concerned with is detecting if their is a webpage change.For example. User is on [URL] then switches to [URL] At this point i need to call a function.So far all i can find is an onload=function()Which is only working once when the browser opens up.

View 1 Replies View Related

JQuery :: Select Option Not Catching Mousedown Event In IE And Chrome

Jul 2, 2009

This is the code I am using to test this. In FF and Op. When I click on an option in the select box, the alert pops up. In IE and Chrome, it doesn't seem to catch it at all.
$('.clickopt').mousedown(function(){
alert("test");
});

View 2 Replies View Related

ComboBox - New Option - Option With Popup Input To Add Option

Nov 19, 2010

I am searching a solution to change a ComboBox by popup I have found this script on the web. Is it also possible to select the newVendor just after adding? Is this script ok or are there better solutions?

<script type="text/javascript">
<!--
function message(value){
if(value=="newVendor"){// New Vendor is selected
var vendor = prompt("Vandor's Name","");
var elementSelect = document.getElementById('vendor');
try{
[Code]....

View 2 Replies View Related

JQuery :: Chrome Will Not Run On Page Requested Via Fine In IE/FF?

May 24, 2010

I am using the following code to to make an ajax request for a page and then injecting the response into a div in the current page

$.ajax({
type: "GET",
url: 'test.htm',

[code]....

View 8 Replies View Related

Error - Page Not Showing In Safari Nor Chrome

Aug 1, 2011

Its showing perfectly in FF but its not displaying the main content on chrome nor safari.

im not a developer but i enjoy the time i spend figuring out this kinda stuff.

View 2 Replies View Related

Setting The Page Title Of Chrome Window.open?

Feb 14, 2011

I have some JavaScript that is being used to open a new window and display a PDF file. This is working fine apart from the title of the new window being open. I am using the window.open function and I have set the title of the page using the document.write function (see code below). The code works fine for FF and IE but for some reason Google Chrome just displays 'Untitled - Google Chrome'

<body>
<a href="javascript:openNewWindow();">Click Here</a>
<script type="text/javascript">
function openNewWindow()

[Code]....

Note: I have also tried adding - pdfWindow.document.title="Title"; - to the JavaScript, with no luck.

Is there anything specific that is required for Chrome or am I just missing something??

View 1 Replies View Related

Chrome And Firefox Reloads The Page On Back Event?

Jul 23, 2011

We are developing an application with ASP.Net and C#. We have a back button (html link) on few pages, by clicking on back button it triggers the browser back event. So user will be able to see his last viewed results (by going only one level back).

We are calling "window.history.back();" function of Javascript to achieve this, but the problem is that its working fine in IE but not in Chrome and Firefox. Whenever user clicks on the back button, Chrome and Firefox reloads the page from server and execute all the server side events.

What we need is simply go to one step back without reloading or refreshing the page.

View 1 Replies View Related

Imagemap Image Flip Works In Chrome Only On CSS/HTML Valid Page?

Jan 5, 2010

this page (http://users.rcn.com/**************/test72.html) will display new images when you mouseover the red and orange arrows on the menu on the right side in chrome, but not ff, ie, opera, and safari. Any ideas as to why these other browsers aren't running the code like chrome? guessing this is javascript related

View 3 Replies View Related

Iframe Inside A Page - Function Call Is Not Working In Safari And Google Chrome?

Jan 2, 2009

i have an iframe inside a page(main). In that iframe, i am calling a java script function that is in the main page.This function call is working in Mozilla , IE but not in Safari and google chrome?? Is there any specific reason for that? when i add the function in the iframe it works.

View 2 Replies View Related

JQuery :: Redirect To Another Page On Selected Option Value?

Jun 22, 2009

[code]...

on the click of the input=Submit, if is selected "Insert New User",

how can I redirect the user to another page (.aspx, .ascx, .html, etc) where he can insert the new values?

View 1 Replies View Related

JQuery :: Multi Option Post In The Same Page?

Aug 3, 2011

I'm trying to display a record in a div(message) based on a user selecting the corresponding button.

Basic syntax is:
<button value=1>Review</button>
<button value=2>Review</button>
<button value=3>Review</button>
<div id="message" name="message"></div>

I'm using the code below but for some reason when I click a button nothing happens.

[Code]...

View 2 Replies View Related

Disable Goto Back Page Option?

Sep 11, 2007

I want to disable all the option, which inlcude:

using right click and select back,

pressing the backspace button on keyborad

and the back option on above menu to be disabled.

and other ways of going back to previous page.

Is there a way to do that using JS.

View 7 Replies View Related

PNG Background - Page Works Fine In Other Browsers (Chrome - Firefox - Opera - Safari) But Not Good In IE8

Feb 8, 2011

This page [URL] works fine in other browsers(Chrome, Firefox, Opera, Safari), but not good in IE8

View 1 Replies View Related

Disable Right Click And View Page Source Option?

Jun 17, 2011

I'll make this short and simple.

1. Disable right-click in my webpage,

2. Disable "View Page Source" option.

I've seen point no.1 implied in many websites, but haven't seen point no.2 anywhere.

View 4 Replies View Related

Files With The .js Extension

Jul 20, 2005

I have recently bought the book: JavaScript & DHTML Cookbook. As I
opened the .js files with note pad, I asked myself why was the code
formated in such a way. The code looks as if it had been produced by
some kind of programs instead of a person. I also noticed a lot of
little squared zeros; what are those all about?

I have also noticed code formated in a similar way, when viewing some
of the source code of the web pages on the MSN web site. If someone
knows anything about this machine-like formating, I would love to hear
from you.

View 3 Replies View Related

Getting Name Of File WITHOUT Extension?

Jun 3, 2009

I've been doing some research on url names. The problem is, I need this code to return like say "index.php", it would return "index". But idk where I went wrong..

The code:
<script>
var sPage;
var sPath = window.location.pathname;
//var sPage = sPath.substring(sPath.lastIndexOf('\') + 1);

[Code]...

View 28 Replies View Related

Run Program - .js Extension ?

May 5, 2011

How to run ajavascrpt prgram...i.e .js extension........

Is it to be run in dreamweaver...or any other simple way is there......or it is to be embedded in html code...and then run as .html extension...

View 1 Replies View Related

File Extension?

Jan 1, 2007

I allow people to upload images onto my web server. I want to verify each image is less than 50Kb and is an image type, this is what I came up with Verifying the files extension Code:

View 7 Replies View Related

Little JS Help For Firefox Extension

Nov 8, 2007

This might be more of a firefox extension development question but it has to do with JS so i'll ask here in hopes of finding someone with experience in this.

My extension requires the URL of the image that was right clicked. Meaning I have added a new option in the right-click menu when an image is right-clicked that calls a function in my JS file


JavaScript Code:
imgSrc ();

This function requires the URL of the image that was right clicked to be passed into it. Does anyone know how I would do that?

View 2 Replies View Related

JQuery :: Cycle Plugin - Multiple Containers On Same Page With Same Option

Jul 17, 2011

Using Jquery Cycle Plugin i have multiple containers on the same page. they have a next and prev button. the problem is, when i click the next button it will cause the containers on the pageadvance simultaneously, same goes for the previous button. it works fine when i click just on the images (they will go to the next image) but not with the prev. and next. button. i know i have to add some kind of var. to it. and i tried it but with no luck.

Here is my code.

$('div[id^=slide]').each(function(index) {
$('#slide'+ (index+1)).cycle({
fx: 'fade',
speed: 'fast',

[Code].....

View 1 Replies View Related

Reload Page And Display A Particular Iframe Based On Option Choice?

Aug 2, 2010

What I would like to do is have a page with a dropdown menu, and depending on which option the user chooses from the dropdown, reload the page and display a particular iframe below the dropdown, based on the users choice. Also, a default iframe would load (the one connected to the default choice in the select box). I was trying to make this work with PHP (without having the user having to click a submit button) but I couldn't find a way to make it happen.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved