Skip navigation

Sign up | Lost password? | Help

What would be better in Opera !

Posts tagged with "javascript"

How to disable Javascript for a specific website ? - shortcut issue

, , ,

I'm trying to disable Javascript for a particular website.
So I used the menu "Tools", "Quick Preferences", "Edit site preferences" and I disabled javascript for the website.
But javascript is automatically re-enabling itself when opening a new tab.
Maybe it's because I'm using a shortcut checkbox for controlling Javascript in my address bar.
I thought this checkbox would first check if javascript is activated to appeared checked or unchecked.
Actually, it seems to be always checked.

I removed this shortcut and the problem disappeared.

I think I will have to get rid of this wonderful shortcut ...

Impossible subscription on myspace.com

, , , ...

I was unable to complete my suscription on MySpace with Opera. Ajax issue ?

PHP + MySQL + Ajax : a jukebox on your browser !

, , , ...

Why ?
- Multimedia players are two heavy
- I always have an internet browser opened
- Give each music file a status (normal,hatred,loved)
- Plugging or not external hard drives with media content
- I will be able to save all the status' of the files

Requirements ?
- EasyPHP
- Media Player Classic
- An internet Browser

How ?
With m3u playlists (configure Opera to open it directly, it is fast 'n easy).

You put a marker on the different roots of your different music folders. Each subfolder will be scanned.

The program scans the root and its subolders (needs a long time). It calculates the checksum and the size of files with a known extension (mp3,wma,wav,ogg,...).

Here is the main page's screenshot :
http://www.serv-dep.com/bouzin/project1.PNG

By the way, a marker is an empty file without extension named with three letters. As sometimes, when you plug a drive on a different port, the path is changed, the marker permits to avoid the problem of changing paths attributed to external devices.

"Lancer la moulinette" is to scan the roots (here : d: because I placed an abc-called file on d:/) but if I plugged my external drive, it should have appeared because I placed a marker on it.


"Rien ne va plus !" generates a random playlist of 15 (or more) songs with a ratio of loved tracks and without any hatred track.

The smileys are used to ban or love a track and an heart means : "beloved song".

The project will soon be avilable for download.

In the future : create and save playlists thanks to a search field all in ajax + PHP !

I am seeking for someone who could help me. To identify the files, CkeckSum + Size is not good (imagine you changes the tags).

I know on http://musicbrainz.org/ you'll find interessant infos. I search a php function to calculate a TRM audio fingerprint : am I dreaming ?

Bug with GET method in Ajax requests on Opera.

, , , ...

I let this post. Some of you may be searching for ajax examples. Don't be afraid of asking questions !

I experienced a little "bug" with a request made through Ajax. There may are solutions to fix it but I don't know them up to now.

I put two pages on my server (http://www.serv-dep.com/bouzin).

The first uses the GET method and didn't worked as expected : http://www.serv-dep.com/bouzin/opera-ajax-get-method.php

Finally, I found a trick to overcome this problem : http://www.serv-dep.com/bouzin/opera-ajax-post-method.php

But I'm still waiting for other solutions from the community.

Special thanks to dAEk and gdb for their enlightments.

Yves.

Opera Bug With CSS

, , , ...

Problem with cursor: hand; and cursor: pointer;
exemple of html,CSS and javascript code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Experiencing some bugs with my beloved Opera ...</title>
  <script language="javascript" type="text/javascript">
   function change_style_on(){
    document.getElementById("cell_a").className="cell_on";
    document.getElementById("cell_b").className="cell_on";
   }
   function change_style_off(){
    document.getElementById("cell_a").className="cell_off";
    document.getElementById("cell_b").className="cell_off";
   }
     function change_style_on2(){
    document.getElementById("cell_a2").className="cell_on";
    document.getElementById("cell_b2").className="cell_on";
   }
   function change_style_off2(){
    document.getElementById("cell_a2").className="cell_off";
    document.getElementById("cell_b2").className="cell_off";
   }
  </script>
  <style type="text/css">
   .cell_on{
    background-color:red;
    cursor: pointer;
   }
   .cell_off{
    background-color:#ABCDEF;
   }
  </style>
 </head>
 <body>

  <h3>Point on the table and move from right to left</h3>
  <h4>The apparition of the pointer is really randomized</h4>
  
  <table>
   <tr>
    <td id="cell_a" class="cell_off" onmouseover="change_style_on()" onmouseout="change_style_off()">test text</td>
    <td id="cell_b" class="cell_off" onmouseover="change_style_on()" onmouseout="change_style_off()">test text</td>
   </tr>
  </table>
  
  <h3>A start of explanation !</h3>
  <h4>Whithout cell spacing, we see that when you change of cell, the cursor become a pointer.
  Come back on the former cell and the pointer is there !</h4>
  
  <table border="0" cellspacing="0" cellpadding="0">
   <tr>
    <td id="cell_a2" class="cell_off" onmouseover="change_style_on2()" onmouseout="change_style_off2()">test text</td>
    <td id="cell_b2" class="cell_off" onmouseover="change_style_on2()" onmouseout="change_style_off2()">test text</td>
   </tr>
  </table>
   <br />
  <h4><a href="http://www.serv-dep.com">Back to root</a></h4>

 </body>
</html>

You can see a "demo" of this bug here.
December 2009
M T W T F S S
November 2009January 2010
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31