For some odd reason the part where objects are shown and hidden in my script doesn't seem to be working. I'm not sure if its the fact firefox doesn't like that or whether its the function-based code I have (to save duplicating lines of code)?
There is a working example here and the javascript is here
** Here is the jquery **
$(documen...
I have an HTML5 application that requires offline support. I am using a local Apache server for the application, and am trying to figure out what the best way is to simulate offline mode (currently, in Firefox I disable my Air-Port to simulate offline mode, but this is a pain). Any suggestions? I am open to using other browsers if a meth...
I need to find out what variables and values are being POSTed to a script that I'm debugging. It's doing something strange to them, and it needs to start a session so I can't ouput them right at the beginning. I'm hoping to find a plug-in for Firefox that will show me what they are directly from the browser. Does anyone know of such a th...
I am using the Console² Firefox addon, which has the helpful Domain Blocker feature so that I don't have to see messages about outside issues that I have no control over. But the log is still littered with gobs of messages from javascript libs that I develop with, like jQuery.
Is there any way to hide error messages on say a per-file ba...
I've been doing front end development for a long time, and I have NEVER come across a bug like this before...
Save the following HTML to a file and view it in Firefox (mine is 3.6.3):
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
body { font-family: Helvetica, Sans-Serif;}
h2 {font-weight: no...
Hi, I want to create a MSWindows Python program that would launch a new Firefox window with multiple tabs each time it is run. For example if I want to search "hello", a new window pops out (even if a Firefox window is already open) and then launches a Google and Bing tabs searching for "hello". If I change the keyword to "world", a new ...
I'm working on a fairly large site and am having trouble managing z-indexes. Is there a Firefox add-on that will look at a page and give me an ordered list of every element with a z-index declared? That would save a ton of times for the cases where a z-index was wrong or hard to find.
...
I have an application which uses ActiveX controls. I want to automate this using Selenium IDE. But when i launch the application i end up in an error message "Turn on you ActiveX control". Is there any way to enable ActiveX in FireFox?
Note: I am using User Agent Switcher(as IE7) Addon of firefox to run my application.
...
I have this little problem.
My client wanted two distinct swf on a web page: a viewer on top and a slideshow of images at bottom.
Clicking a link on the slideshow make the viewer load a movie, by means of LocalConnection api.
The slideshow has a default, so when the page is loaded a default movie start.
This works nice on all browser....
I have a web page containing something like this:
<div onclick="location.href = 'AnotherPage';">
This page also uses asynchronous XMLHttpRequests for some ajax updating.
I have found that while an asynchronous XMLHttpRequest is in progress, clicking on this div does not load the new page. If I cancel my request first then it works fi...
I have a Rails application, and when I have Javascript errors they are not showing in the Firebug console. I have 'Show javascript errors' and 'Show javascript warnings' selected.
When I insert javascript errors in a basic html file, the errors show as expected.
In the javascript of the Rails app, it only shows errors in rare cases.
F...
I am working on a legacy ASP.NET web site that is highly dependent on Internet Explorer. I would like to migrate it to non-IE browsers. I know there are a large amount of differences (as detailed at quirksmode.org, etc.), so I'm searching for a javascript library that can help minimize the amount of source I'd have to change.
I'm hopi...
I'm got a site that has a long list of tweets, and as you scroll down the right column follows you down, showing stats on the tweets. (See it in action at http://www.grapevinegame.com . Click 'memorise', then 'skip' to get to the list page. Works in Safari and Chrome).
I'm using jQuery to update the top-margin of the right column, incre...
I want to change hidden input value on div click, so i do following:
$('#gallery').click(function(){
if ($('input[name=isgallery]').attr('value') == '0') {
$('input[name=isgallery]').attr('value', '1')
}
else {
$('input[name=isgallery]').attr('value', '0')
}
$('#filterform...
Well this is a really weird issue, I really didn't find anything on this elsewhere so I thought I'd address it here.
Say I have an "image.jpg" and accidentally reference it in the CSS like so:
url(imag.jpg)
Note the missing "e". Now for me, Firefox is so incredibly clever that it will still find the correct image, but not spit out a ...
i got this css stylesheet code
#nav li ul {
position: absolute;
visibility: hidden;
float: none;
top: 42px;
left: 0px;
width: 150px;
margin: 0;
padding: 5px 10px 6px 10px;
z-index: 10000;
border: 1px solid #C0ACB2;
border-bottom-width: 2px;
border-bottom-color: #AF9DA3;
border-top: 0;
...
I'm looking for a way to programatically control a browser on a Mac (i.e. not IE) using Python.
The actions I need include following links, checking if elements exist in a page, and submitting forms.
Which solution would you recommend?
Thanks!
...
Any ideas?
In [1]: from selenium.firefox.webdriver import WebDriver
In [2]: d=WebDriver()
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
/usr/local/selenium-read-only/<ipython console> in <module>()
/opt/local/Library/Frameworks/P...
I have a problem whit cross browser output, I'm trying to get the top and left css attribute of a div, but firefox gives me the exact pixel position and Chrome give me the percentage.
Example:
http://web.cinaird.se/pdf/test.htm
CSS
#mix{
position:absolute;
top: 10px;
left: 45%;
background-color:#f0f;
}
jQuery
css ...
I have a <div> element with position: absolute and z-index something big. I would like to cover the entire screen with this div with javascript.
This is what I do and it works:
document.getElementById('mydiv').style.top = 0;
document.getElementById('mydiv').style.left = 0;
document.getElementById('mydiv').style.width = '100%';
document...